Documente Academic
Documente Profesional
Documente Cultură
sh
README
calc_space.sql cron-nbinfo
hitratio.sql
log
quecheck.awk
bash-3.2# more NBInfo.sh
#!/bin/sh
#
# $Id: NBInfo.sh,v 1.43 2007/08/24 15:12:22 shodler Exp $
#
REV=`echo '$Revision: 1.43 $' | awk '{print $2}'`
#
# Run NBInfo.sh -h for a useage breakdown.
#
#
frag_info.sql
PATH=/usr/bin:$PATH
PS()
{
/usr/bin/ps -ef | grep -v grep | grep $1
}
#
VP()
{
printf "Listing of all %s processes:\n" $USER >> $FILE
printf "\n" >> $FILE
printf " USER
PID PPID CPU MEM COMM\n" >> $FILE
/usr/bin/ps -efo user,pid,ppid,pcpu,pmem,comm | grep $USER | grep -v gr
ep | grep -v /bin/sh | grep -v "[- /bin/ck]sh"| grep -v telnet | grep -v xterm |
grep -v
"dt[termfilepadwmscreen ]" | grep -v more | sed -e 's/,//g' | /usr/bin/sort -r
+3 +4 >> $FILE
}
#
QUEUE()
{
printf "Queuerpc Check:\n" >> $FILE
printf "\n" >> $FILE
printf "vp found:
%s queuerpcs running\n"`PS queuerpc | wc -l` >>
$FILE
#
roccont -w | grep "^Queue" | wc -l | awk '{printf "roccont found: %s qu
euerpcs running\n", $1}' >> $FILE
printf "\n" >> $FILE
#
printf "Output comparison of roccont to vp for queuerpcs:\n" >> $FILE
printf "\n" >> $FILE
#
roccont -w | grep pid | sed -e 's/,//g' | awk '{printf ("%d\n"), $10}' |
sort -n > /tmp/roc
/usr/ucb/ps -auwx |grep -v grep |grep queuerpc |awk '{printf "%13s\n", $
2}' |sort -n > /tmp/vp
printf "Roccont PID:
VP PID:\n" > /tmp/alert
printf "------------------\n" >> /tmp/alert
--More--(6%)
paste /tmp/roc /tmp/vp >> /tmp/alert
cat /tmp/alert >> $FILE
}
#
PPID()
{
printf "\n" >> $FILE
printf "Queuerpc to Parent Process table:\n" >> $FILE
else
if [ "$CS" = "" ] ; then
printf "%-25s
is not set.
Should be set to: %-25s\n" $PNS $NS >> $FILE
else
printf "%-25s
should be
%-25s\n" $CS $NS >> $FILE
fi
fi
done
#
MEM=`prtconf | awk '/Memory size/ {print $3}'`
printf "%s * .80\n" $MEM > $HDIR/bc.cmd
PMEM=`bc<$HDIR/bc.cmd`
#
printf "%.2f * 1048576\n" $PMEM > $HDIR/bc.cmd
VALUE=`bc<$HDIR/bc.cmd`
/bin/rm $HDIR/bc.cmd
NS=`printf "shminfo_shmmax=%.0f\n" $VALUE`
#
PNS=shminfo_shmmax
CS=`sed -n "/^set.*:*$PNS/s;set.*:*$PNS;$PNS;p" /etc/sys
tem`
--More--(30%)
#
if [ "$CS" -ge "$NS" ] ; then
printf "%-25s
OK\n" $CS >> $FILE
else
if [ "$CS" = "" ] ; then
printf "%-25s is not set. Should be set
to: %-25s\n" $PNS $NS >> $FILE
else
printf "%-25s
should be
%-25s\n"
$CS $NS >> $FILE
fi
fi
;;
5.10)
# Checks the /etc/system file settings
# NS = New Setting CS = Current Setting PNS = Partial
NS PCS = Partial CS
#
printf "Compare kernel configuration settings:\n" >> $FI
LE
printf "\n" >> $FILE
for NS in maxusers\=256 seminfo_semmni=4096 seminfo_semm
sl=256 seminfo_semopm=150 ; do
PNS=`echo $NS | sed -e 's;=; ;' | awk '{print $1
}'`
CS=`sed -n "/^set.*:*$PNS/s;set.*:*$PNS;$PNS;p"
/etc/system`
if echo $CS | grep $NS 2>&1 > /dev/null ; then
printf "%-25s
OK\n" $CS >> $FILE
else
if [ "$CS" = "" ] ; then
printf "%-25s
is not set.
Should be set to: %-25s\n" $PNS $NS >> $FILE
else
printf "%-25s
should be
--More--(37%)
then
printf "%-28s OK\n" $CATUSERATTR >> $FILE
else
if [ $CATUSERATTR = "empty" ] ; then
printf "%-25s
is not set.
e set to: %-25s\n" group.dba $USERATTR >> $FILE
else
printf "%-25s
should be
group.dba $USERATTR >> $FILE
fi
fi
Should b
%-25s\n"
else
if [ $CATPROJECT = "empty" ] ; then
printf "%-25s
is not set.
Should b
>> $FILE
printf "%-25s\n" $PROJECT >> $FILE
fi
fi
;;
esac
}
#
DBINFO()
{
--More--(43%)
printf "Check DB Space:\n" >> $FILE
#
if [ "$DB" = "INFORMIX" ] ; then
$INFORMIXDIR/bin/onstat -d >> $FILE
else
# Try to determine correct DB login info:
# Manaully set username and password here (remember to uncomment
):
#ORAUSER=
#ORAPASSWD=
if [ ! -z "$ORAUSER" ] && [ ! -z "$ORAPASSWD" ] ; then
$ORACLE_HOME/bin/sqlplus ${ORAUSER}/${ORAPASSWD} << EOT 1>/var/tmp/otherdb
EOT
test -z "`grep \"invalid username\" /var/tmp/otherdb`" &
& DBADMIN="${ORAUSER}/${ORAPASSWD}"
else
$ORACLE_HOME/bin/sqlplus netboss/netboss << EON 1>/var/tmp/netbossdb
EON
$ORACLE_HOME/bin/sqlplus hnmadm/hnmadm << EOA 1>/var/tmp/hnmadmdb
EOA
test -z "`grep \"invalid username\" /var/tmp/netbossdb`"
&& DBADMIN="netboss/netboss"
test -z "`grep \"invalid username\" /var/tmp/hnmadmdb`"
&& DBADMIN="hnmadm/hnmadm"
fi
if [ -z "$DBADMIN" ] ; then
echo " " >> $FILE
echo "Sorry. Incorrect DB Login." >> $FILE
echo "Please edit NBInfo.sh lines and manually set ORAUS
ER and ORAPASSWD" >> $FILE
echo "under DBINFO() function." >> $FILE
else
$ORACLE_HOME/bin/sqlplus -s netboss/netboss @$HDIR/calc_space.sql<<EOC | sed -e
'/rows selected/d' >> $FILE
quit
EOC
$ORACLE_HOME/bin/sqlplus -s netboss/netboss @$HDIR/hitratio.sql<<EOH >> $FILE
quit
EOH
$ORACLE_HOME/bin/sqlplus -s netboss/netboss @$HDIR/frag_info.sql<<EOF >> $FILE
quit
--More--(49%)
EOF
fi
fi
# Cleanup temp files in /var/tmp:
TABS()
{
printf "Contents of /etc/vfstab:\n" >> $FILE
printf "\n" >> $FILE
more /etc/vfstab | /usr/bin/egrep -v "#/|fd|proc|swap" >> $FILE
printf "\n" >> $FILE
#
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
printf "Contents of /etc/dfs/dfstab:\n" >> $FILE
more /etc/dfs/dfstab | /usr/bin/grep -v "^#" >> $FILE
}
#
LUX()
{
/usr/sbin/luxadm display FCloop 1>&2 2>/dev/null
[ "$?" = "0" ] && FCLOOP=true || FCLOOP=false
if [ "$FCLOOP" = "true" ] ; then
/usr/sbin/luxadm display FCloop | grep SSC100 1>&2 2>/dev/null
[ "$?" = "0" ] && SSC100=true || SSC100=false
--More--(59%)
fi
if [ "$SSC100" = "true" ] ; then
printf "Output of luxadm display FCloop | grep SSC100:\n" >> $FI
LE
printf "\n" >> $FILE
/usr/sbin/luxadm display FCloop | grep SSC100 >> $FILE
fi
}
#
WHODO()
{
printf "Statistics for current users\n" >> $FILE
printf "\n" >> $FILE
whodo -l >> $FILE
}
#
SGACHECK()
{
# Snapshot the Elements directories for tracking what versions of the SM
As are on the system.
printf "Snapshot of $ANMDIR/sga/Elements directory:\n" >> $FILE
printf "\n" >> $FILE
/usr/bin/ls -l $ANMDIR/sga/Elements | grep -v "^total" >> $FILE
}
#
TTAINFO()
{
# Checking tarantella license information
if [ -f "/opt/tarantella/info/license-query.out" ] ; then
printf "Output from tarantella license query:\n" >> $FILE
cat /opt/tarantella/info/license-query.out >> $FILE
fi
printf "\n" >> $FILE
if [ -f "/opt/tarantella/info/license-list.out" ] ; then
printf "Output from tarantella license list:\n" >> $FILE
figuration."
echo "Exiting."
exit 4
fi
else
DB=ORACLE
DBPATH=`echo $ORACLE_HOME`
VER=`$ORACLE_HOME/bin/sqlplus "-?" | grep "Release"`
SID=`echo $ORACLE_SID`
if [ -f /usr/local/bin/dbhome ] ; then
ORACLE_HOME=`/usr/local/bin/dbhome`
else
echo "Unable to find ORACLE_HOME setting. Unsupported system con
figuration."
echo "Exiting."
exit 5
fi
fi
#
# This will clean up any residual from the last install or update:
if [ -f $HDIR/cleanup ] ; then
/bin/sh $HDIR/cleanup
rm $HDIR/cleanup
fi
#
test -t 1 && clear
case $1 in
-ver|-v)
printf "\n"
printf "NBInfo.sh Revision Number:
%s\n" $REV
printf "\n"
;;
-s)
printf "\n"
SYSINFO
printf "\n"
;;
#
-u)
printf "\n"
--More--(75%)
USERINFO
printf "\n"
;;
#
-q)
printf "Please Wait. Gathering System Information...\n"
#---------------------------------------------------------------------------------------------------------#
FILE=$HDIR/log/Quecheck.`date +%m-%d-%y.%H:%M:%S`
#
printf "\n" > $FILE
QUEUE
#
PPID
#
printf "\n" >> $FILE
roccont -s >> $FILE
printf "\n" >> $FILE
more $FILE
;;
#---------------------------------------------------------------------------------------------------------------debug)
# This is an undocumented feature used for debugging procedure updates/issues.
META
;;
#---------------------------------------------------------------------------------------------------------------B)
printf "Please Wait. Gathering System Information...\n"
#
FILE=$HDIR/log/Baseline.`date +%m-%d-%y.%H:%M:%S`
#
SYSINFO
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
USERINFO
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
DF
#
--More--(80%)
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
DBINFO
#
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
KERNEL
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
CRON
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
STATS
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
#
TABS
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
#
META
#
SWAP
printf "\n" >> $FILE
#
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
#
IPCS
printf "\n" >> $FILE
#
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
#
TTAINFO
printf "\n" >> $FILE
--More--(85%)
#
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
#
LUX
printf "\n" >> $FILE
#
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
#
SGACHECK
printf "\n" >> $FILE
#
more $FILE
;;
#
#---------------------------------------------------------------------------------------------------------------help|-h|-*)
cat << EOH
NBInfo.sh [-s] [-q] [-u] [-B] [-[v]er] [-[h]elp]
No Flag Gathers
-B
-s
-q
check.)
-u
-v or -ver
-h or -help
EOH
;;
#--------------------------------------------------------------------------------------------------------------*)
printf "Please Wait. Gathering System Information...\n"
#
FILE=$HDIR/log/NBInfo.`date +%m-%d-%y.%H:%M:%S`
#
A-<acl_specification>
A[number]A[number]{+|=}<acl_specification>
where <acl-specification> is a comma-separated list of ACEs
bash-3.2# pwd
/u01/app/netboss/config
bash-3.2# chmod +x setnetbossenv
bash-3.2# chown netboss:netboss setnetbossenv
bash-3.2# chmod 777 sen setnetbossenv
bash-3.2# ls -lrt s*
-rwxrwxrwx 1 netboss netboss
4415 Oct 3 2007 setnetbossenv
-rw-rw-r-- 1 netboss netboss
2420 Dec 13 2012 sb.cfg
-rw-rw-r-- 1 netboss netboss
803 Dec 13 2012 security.cfg
-rw-rw-r-- 1 netboss netboss
2919 Dec 13 2012 send2roc.cfg
-rw-rw-r-- 1 netboss netboss
3940 Dec 13 2012 snmpcycld.cfg
-rw-rw-r-- 1 netboss netboss
2443 Dec 13 2012 snmpman.cfg
-rw-rw-r-- 1 netboss netboss
3607 Dec 13 2012 snmptrapd.cfg
-rw-rw-r-- 1 netboss netboss
1786 Dec 13 2012 ss.cfg
-rw-rw-r-- 1 netboss netboss
3514 Dec 13 2012 setnetbossenv.pre4.5.bak
bash-3.2# ls -lrt s*
-rwxrwxrwx 1 netboss netboss
4415 Oct 3 2007 setnetbossenv
-rw-rw-r-- 1 netboss netboss
2420 Dec 13 2012 sb.cfg
-rw-rw-r-- 1 netboss netboss
803 Dec 13 2012 security.cfg
-rw-rw-r-- 1 netboss netboss
2919 Dec 13 2012 send2roc.cfg
-rw-rw-r-- 1 netboss netboss
3940 Dec 13 2012 snmpcycld.cfg
-rw-rw-r-- 1 netboss netboss
2443 Dec 13 2012 snmpman.cfg
-rw-rw-r-- 1 netboss netboss
3607 Dec 13 2012 snmptrapd.cfg
-rw-rw-r-- 1 netboss netboss
1786 Dec 13 2012 ss.cfg
-rw-rw-r-- 1 netboss netboss
3514 Dec 13 2012 setnetbossenv.pre4.5.bak
bash-3.2# /u01/app/netboss/NBInfo/NBInfo.sh
Not able to determine location of setnetbossenv file.
Exiting.
bash-3.2# vi /u01/app/netboss/NBInfo/NBInfo.sh
"/u01/app/netboss/NBInfo/NBInfo.sh" 685 lines, 21501 characters #!/bin/sh
#
# $Id: NBInfo.sh,v 1.43 2007/08/24 15:12:22 shodler Exp $
#
REV=`echo '$Revision: 1.43 $' | awk '{print $2}'`
#
# Run NBInfo.sh -h for a useage breakdown.
#
#
PATH=/usr/bin:$PATH
PS()
{
/usr/bin/ps -ef | grep -v grep | grep $1
}
#
VP()
{
printf "Listing of all %s processes:\n" $USER >> $FILE
printf "\n" >> $FILE
printf " USER
PID PPID CPU MEM COMM\n" >> $FILE
/usr/bin/ps -efo user,pid,ppid,pcpu,pmem,comm | grep $USER | grep -v grep | gre
p -v /bin/sh | grep -v "[- /bin/ck]sh"| grep -v telnet | grep -v xterm | grep -v
"dt[termfilepadwmscreen ]" | grep -v more | sed -e 's/,//g' | /usr/bin/sort -r
+3 +4 >> $FILE
}
#
QUEUE()
{
printf "Queuerpc Check:\n" >> $FILE
printf "\n" >> $FILE
printf "vp found:%s queuerpcs running\n"`PS queuerpc | wc -l` >> $FILE
#
roccont -w | grep "^Queue" | wc -l | awk '{printf "roccont found: %s queuerpcs
running\n", $1}' >> $FILE
printf "\n" >> $FILE
#
printf "Output comparison of roccont to vp for queuerpcs:\n" >> $FILE
printf "\n" >> $FILE
#
roccont -w | grep pid | sed -e 's/,//g' | awk '{printf ("%d\n"), $10}' | sort -n
> /tmp/roc
/usr/ucb/ps -auwx |grep -v grep |grep queuerpc |awk '{printf "%13s\n", $2}' |sor
t -n > /tmp/vp
printf "Roccont PID:
VP PID:\n" > /tmp/alert
printf "------------------\n" >> /tmp/alert
paste /tmp/roc /tmp/vp >> /tmp/alert"/u01/app/netboss/NBInfo/NBInfo.sh" 685 line
s, 21501 characters
echo "OBP Version= "`prtconf -V | grep OBP | awk '{print $2}'` >> $FILE
echo "Num of Processors
2}' | sed -e 's/)//g' | awk '{print $8, $9}' | head -1` >> $FILE
echo "Memory= "`prtconf | awk '/Memory size/ {print $3, $4}'` >> $FILE
echo "Last System Reboot
}
#
USERINFO()
{
printf "Current User Info:" >> $FILE
printf "\n" >> $FILE
printf "\n" >> $FILE
id -a | sed -e 's;=;= ;g' -e 's;(; ;g' -e 's;); ;g' | while read a b c d e f g
h i ; do
printf "User Name= %s\n" $c >> $FILE
printf "User ID= %s\n" $b >> $FILE
printf "Primary Group Name
done
#
printf "Home Directory= %s\n" $HOME >> $FILE
printf "Current Shell= %s\n" $SHELL >> $FILE
printf "DISPLAY= %s\n" $DISPLAY >> $FILE
printf "Terminal Address
echo "ManageIT Version
else
if [ "$CS" = "" ] ; then
printf "%-25s
is not set.
should be
else
printf "%-25s
fi
fi
done
#
else
if [ "$CS" = "" ] ; then
printf "%-25s is not set. Should be set to: %-25s\n" $PNS $NS >> $FILE
else
printf "%-25s
should be
fi
fi
;;
5.10)
# Checks the /etc/system file settings
# NS = New Setting CS = Current Setting PNS = Partial NS PCS = Partial CS
#
printf "Compare kernel configuration settings:\n" >> $FILE
printf "\n" >> $FILE
else
if [ "$CS" = "" ] ; then
printf "%-25s
is not set.
should be
else
printf "%-25s
fi
fi
done
USERATTR='oracle::::project=group.dba'
is not set.
>> $FILE
else
printf "%-25s
should be
fi
fi
PROJECT='group.dba:102:Oracle:oracle:dba:project.max-sem-ids=(privileged,128,den
y);process.max-sem-nsems=(privileged,512,deny);project.max-shm-i
ds=(privileged,128,deny);project.max-shm-memory=(privileged,1073741824,deny)'
else
if [ $CATPROJECT = "empty" ] ; then
printf "%-25s
is not set.
;;
esac
}
#
DBINFO()
{
printf "Check DB Space:\n" >> $FILE
#
if [ "$DB" = "INFORMIX" ] ; then
$INFORMIXDIR/bin/onstat -d >> $FILE
else
# Try to determine correct DB login info:
if [ -z "$DBADMIN" ] ; then
echo " " >> $FILE
echo "Sorry. Incorrect DB Login." >> $FILE
echo "Please edit NBInfo.sh lines and manually set ORAUSER and ORAPASSWD" >> $FI
LE
echo "under DBINFO() function." >> $FILE
else
$ORACLE_HOME/bin/sqlplus -s netboss/netboss @$HDIR/calc_space.sql<<EOC | sed -e
'/rows selected/d' >> $FILE
quit
EOC
#
}
#
STATS()
{
printf "MPSTAT:\n" >> $FILE
printf "\n" >> $FILE
mpstat 3 5 >> $FILE
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
printf "IOSTAT:\n" >> $FILE
printf "\n" >> $FILE
iostat 3 5 >> $FILE
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
printf "VMSTAT:\n" >> $FILE
printf "\n" >> $FILE
vmstat 3 5 >> $FILE
}
#
CRON()
{
if [ -f /var/spool/cron/crontabs/$USER ] ; then
printf "NetBoss' crontab:\n" >> $FILE
printf "\n" >> $FILE
crontab -l >> $FILE
else
if [ -f "/opt/tarantella/info/license-list.out" ] ; then
printf "Output from tarantella license list:\n" >> $FILE
cat /opt/tarantella/info/license-list.out >> $FILE
fi
}
#
META()
{
if [ -f /usr/sbin/metastat ] ; then
#
ANMDIR=`grep "setenv ANMDIR " $SETNETBOSSENV | awk '{print $3}'`
$ANMDIR/bin/fms -ver 2>/tmp/ver
HNMV=`/usr/bin/cat /tmp/ver | fgrep "Manage.IT version"`
SLGMS_VER=`grep Release $GMS_HOME/* | head -1 | sed -e 's/^\/[A-Za-z0-9].*:# Con
figuration File for SL-GMS //'`
HDIR=$ANMDIR/NBInfo
HOST=`/usr/bin/hostname`
ROC=`/usr/bin/du -sk $ANMDIR/bin/roc | awk '{print $1}'`
USER=`/usr/bin/logname`
#
if [ "$INFORMIXDIR" != "" ] ; then
DB=INFORMIX
DBPATH=`echo $INFORMIXDIR`
VER=`$INFORMIXDIR/bin/dbaccess -V | head -1`
INFORMIXDIR=`grep "setenv INFORMIXDIR" $SETNETBOSSENV | awk '{print $3}'`
if [ "a${INFORMIXDIR}" = "a" ] ; then
echo "Unable to find INFORMIXDIR setting. Unsupported system configuration."
echo "Exiting."
exit 4
fi
else
DB=ORACLE
DBPATH=`echo $ORACLE_HOME`
VER=`$ORACLE_HOME/bin/sqlplus "-?" | grep "Release"`
SID=`echo $ORACLE_SID`
if [ -f /usr/local/bin/dbhome ] ; then
ORACLE_HOME=`/usr/local/bin/dbhome`
else
#
-q)
printf "Please Wait. Gathering System Information...\n"
#---------------------------------------------------------------------------------------------------------#
FILE=$HDIR/log/Quecheck.`date +%m-%d-%y.%H:%M:%S`
#
printf "\n" > $FILE
QUEUE
#
PPID
#
printf "\n" >> $FILE
roccont -s >> $FILE
printf "\n" >> $FILE
more $FILE
;;
#---------------------------------------------------------------------------------------------------------------debug)
# This is an undocumented feature used for debugging procedure updates/issues.
META
;;
#---------------------------------------------------------------------------------------------------------------B)
SYSINFO
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
USERINFO
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
DF
#
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
DBINFO
#
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
KERNEL
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
CRON
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
STATS
No Flag Gathers ALL Information (Log file name begins with NBInfo.)
-BRetrieve System Baseline (Log file name begins with Baseline.)
-sDisplay System Architecture (Does not get logged)
-qOnly gather queuerpc information (Log file name begins with Quecheck.)
-uUser Environment Information (Does not get logged)
-v or -verNBInfo.sh Revision Number (Does not get logged)
-h or -helpNBInfo.sh usage information
EOH
;;
#--------------------------------------------------------------------------------------------------------------*)
printf "Please Wait. Gathering System Information...\n"
#
FILE=$HDIR/log/NBInfo.`date +%m-%d-%y.%H:%M:%S`
#
printf "\n" > $FILE
SYSINFO
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
USERINFO
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
DF
#
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
#
SWAP
printf "\n" >> $FILE
#
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
#
IPCS
printf "\n" >> $FILE
#
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
DBINFO
#
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
KERNEL
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
CRON
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
TTAINFO
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
STATS
printf "\n" >> $FILE
printf "---------------------------------------------------------------------------\n" >> $FILE
printf "\n" >> $FILE
VP