HP Servers running HP-UX - getsysinfo.sh 9.22 data collection script readme and FAQ

getsysinfo.sh -sd2 -sd2opt “-d MM/DD/YY” # get only data from after that date
getsysinfo.sh -sd2 -sd2opt “hostname user password”
Note: by default, sd2collect only captures data from the last 30 days unless getsysinfo.sh option -h or -a was
given.
How to capture Service Guard related information ?
By giving either the -sw or -sginfo option the script sginfo is run.
(see https://h20628.www2.hp.com/km-ext/content-webapp/document?docId=emr_na-c03661098 )
It -sginfo was given, the output filename defaults to sysinfo+sginfo_host_date.tgz.
Without that option, getsysinfo.sh still collects by default the cmclview -v information into the file
service_guard.txt
How to automatically run crashinfo ?
ksh getsysinfo.sh -c #runs /opt/sfm/tools/crashinfo on the latest dump if present
Since version 9.18 getsysinfo.sh can call the crashinfo tool which comes with System Fault
Manager and usually is located in /opt/sfm/tools.
You can also specify another crashinfo location with the CRASHINFO environment variable, for
example :
CRASHINFO=/tmp/crashinfo ksh getsysinfo.sh -c
By default, only the last dump is analyzed. To analyze all dumps you can use:
ksh getsysinfo.sh -c all
Attention: Analyzing dumps may be a time and storage (/var/adm/crash) consuming task depending
on the size of the dump.
How can I modify the temporary directory ?
Simply set the environment variable TMPDIR which is used by mktemp to specify the location of
temporary files and directories.
For example:
TMPDIR=/var/tmp ksh getsysinfo.sh
How to run/collect additional commands/files with the -x option ?
Sometimes other information may be needed than collected by getsysinfo.sh. Instead of modifying
the script (see next chapter) the -x option can be used to collect additional files or to run additional
commands. Of course you should use this option with caution.
-x <file(s)> to capture additional file(s)
By specifying one or more files (full path needed) behind the -x option you can force getsysinfo.sh
to capture them as well (output filename will be addfile_<pathname>, all “/” are replaced by “_”).
Examples:
ksh getsysinfo.sh -x /var/adm/syslog/mail.log
=> addfile__var_adm_syslog_mail.log
ksh getsysinfo.sh -x /var/adm/sw/sw*.log
-x 'exec:command' to run additional commands
By putting an “exec:” before the -x argument getsysinfo.sh will run the command and save the