Deploysupportconfig

From MicroFocusInternationalWiki
Jump to: navigation, search
-my other wikis

How to deploy supportconfig to many servers and collect supportconfig from many servers.


  1. download mooty.sh
  2. install mooty on one machine
    1. bash mooty.sh --install
      1. example: bash mooty.sh-09.11.19__build-17_02.19 -install
      2. when asked, go ahead and install power shell
    2. mooty.sh --upgrade
  3. scan network for ssh listening devices
    1. /root/bin/m.scan_lan 10.10.10.0
    2. cd $m to change into mooty's directory
    3. l | grep list
      1. note list: list.now.22104
    4. modify list.now and ensure you will hit only the servers you want to hit.
      1. gedit list.now.22104
    5. mv list.now to /var/lib/mooty/
    6. mv list.nov master.list
    7. /root/bin/m.copy_ids -l master.list
      1. when prompted for ssh key sig or ssh password enter that
  4. deploy supportutils
    1. m.hyper_deploy supportutilsTAB /root/
      1. example: /root/bin /m.hyper_deploy /home/minime/ifolder/novell/tools/utils/supportconfig/supportutils-1.20-12.1.noarch.rpm /root/
  5. install supportutils
    1. s.hyper_exec "rpm -ivh /root/supportutilsTAB"
      1. example: /root/bin/s.hyper_exec "rpm -ivh /root/supportutils-1.20-12.1.noarch.rpm"
    2. watch -tnl "ps ef | grep screen"
  6. to gather supportconfigs
    1. Jason added an enhancement for me to allow nts_customername_servername_date_time.tar.gz
      1. /root/bin/s.hyper_exec "supportconfig -B nvwelf%s%d%t -u ftp://ftp.novell.com/incoming/"
    2. if you desire to have the supporconfig output to all start with say, CustomerName, then modify the /sbin/supportconfig file to look like this:
      1. first change the permissions on the /sbin/supportconfig so you can modify it
      2. change from: BASE="nts_${SC_SRV}_${SC_TIME}"
      3. change to: BASE="CustomerName_nts_${SC_SRV}_${SC_TIME}"
    3. deploy out the new supportconfig script that has your hard coded CustomerName
      1. /root/bin/m.hyper_deploy /sbin/supportconfig /sbin/supportconfig
    4. /root/bin/s.hyper_exec "supportconfig -U 'ftp://ftp.novell.com/incoming'"
  7. or
    1. s.serial_exec mkdir /var/log/nts_files/
    2. s.serial_exec mv /var/log/nts*.tar* /var/log/nts_files/
    3. s.hyper_get /var/log/nts_files/
    4. topls

creating a central supportconfig repository

http://www.novell.com/communities/node/4800/creating-a-central-supportconfig-repository

tracking and restoring system changes with mooty jic

  1. http://sourceforge.net/projects/mooty/files/Documentation/usage.txt/download
  2. http://sourceforge.net/projects/mooty/files/Documentation/Mooty_HOWTO.txt/download
  3. <paste> Installs a small filesystem payload that includes the Mooty working directory, some common distributables like the Powershell Profile, and the Just In Case (jic) backup code, and other valuable Mooty framework elements. (Payload installs under /var/lib/mooty/)
  4. /usr/share/doc/packages/mooty # less README.jic.sh
  5. /var/lib/mooty/lib/freecans # ./jic.sh