HP rp7410 Anleitung zur Fehlerbehebung Seite 8

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 9
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 7
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
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.23$ $by S. Stechemesser, HP$ $Date: 10/22/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.23"
#CKSUM: 3194520570
#use the TMPDIR environment variable if needed - see man mktemp
TMPDIR=${TMPDIR:-/tmp} # set TMPDIR to /tmp if not set
NAMEBASE=sysinfo #default output name prefix
#add hostname + timestamp by default
NAME=${NAMEBASE}_`hostname`_`date +%Y%m%d%H%M`
TDIR=$TMPDIR/$NAME
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
#
Seitenansicht 7
1 2 3 4 5 6 7 8 9

Kommentare zu diesen Handbüchern

Keine Kommentare