HP Integrity Superdome 2 8/16 HP Servers running HP-UX - getsysinfo.sh 9.19 da - Page 7
How to capture Service Guard related information ?, How to automatically run crashinfo ?
View all HP Integrity Superdome 2 8/16 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 7 highlights
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 Can I modify the script ? It is safe to modify the parameters at the beginning of the script: #!/usr/bin/ksh # @(#)Revision: 9.19$ $by S. Stechemesser, HP$ $Date: 09/24/2013$ # #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 export UNIX95=1 GETSYSINFOVERSION="9.19" #CKSUM: 821721222 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