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

output to addcmds.log.
ATTENTION: Make sure you only use safe commands for that and it is highly recommended
putting the command into single quotation marks to avoid any shell replacements with the
command you intend !!! Better do not use wild-cards – it is risky.
Examples:
getsysinfo.sh -x 'exec: ls -lR /var/adm/sw'
getsysinfo.sh -x 'exec:/opt/fcms/bin/fcdutil' -x 'exec:/usr/sbin/sar -d 5 5'
Can I modify the script ?
It is safe to modify the parameters at the beginning of the script:
#!/usr/bin/ksh
# @(#)Revision: 9.22$ $by S. Stechemesser, HP$ $Date: 24.04/2014$
#
#the below construct is needed no line in getsysinfo.sh is longer than 80 chars
#for cut&paste
READMELINK="https://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public"
READMELINK="$READMELINK/kb/docDisplay/?docId=emr_na-c03800758"
export LANG=C
GETSYSINFOVERSION="9.22"
#CKSUM: 1997145323
OLDOPTIONS=$*
TDIR=` mktemp ` # temporary directory (will be created and deleted if empty)
#use the TMPDIR environment variable if needed - see man mktemp
NAMEBASE=/tmp/sysinfo #default output name prefix
#add hostname + timestamp by default
NAME=${NAMEBASE}_`hostname`_`date +%Y%m%d%H%M`
MPJAVA=0 #do not run jar file by default, only with -mp option
GETOA=0 #get OA info via telnet
SD2=0 #do not run be default
SGINFO=0 #do not run sginfo by default
MAXFILESIZE=1024 # Maximum size of some logfile in kbytes
GETFIRSTLINES=2000 # if logfiles are truncated, also the first lines are saved
MAXBACKDATE=180 # for some logfiles: get information less than 180 days old
RUNCRASHINFO=0 #1=run crashinfo on last crash
#2=run crashinfo for all crashes
SAN=0 #do not capture fcddiag by default
NET=0 #do not capture nettl and netstat logs by default
diskjn=0 #do not query all disks with diskinfo or scsimgr by default
INITDATA=0 # do not capture initdata stuff by default
PMANI=0 # do not use print_manifest by default
SASOPTION=1 # 0: run sasmgr in any case
XPINFO=0 #1: run XPINFO
NOHIST=0 #evweb -b history by default (set to 1 if it makes problems)
NMVMUNIX=0 # do not collect symbols from vmunix by default
ESCSIDIAG=0 #do not capture escsi_diag output
SWINFO=0 #higher values capture more data for SW suport
OSELOGS=1 #capturing of /var/opt/psb/oselogs
#better do not change parameters below here unless you know what you are doing
Note: when the script is modified and the CKSUM: line is not adjusted properly, a warning about the
modification will be printed and the script will pause for 15 seconds when started.
How to check if I have the official getsysinfo.sh script or a modified ?
Simply run “cksum getsysinfo.sh” and verify with the below values.
The cksum outputs of getsysinfo.sh version 9.21 official revisions are:
4140209309 53606 getsysinfo.sh
525338172 228217 getsysinfo.all.sh #with sginfo,hpmpl,sd2collect
1452274391 88095 getsysinfo.sd2.sh #with sd2collect
854995139 168810 getsysinfo.mp.sh #with hpmpl
650253825 203298 getsysinfo.ms.sh #with hpmpl,sd2collect