Monday, June 25, 2012

How to Collect system information

This is a tool taken from IBM performance manager suite to extract all configured system information. The script takes no parameters and output is saved in config.html. Good to have a snapshot of what is in the host.

# ls -ltr
total 40
-rwxr--r--    1 root     system        19719 Jan 27 2009  config.sh

Output of the script execution.
 
# ./config.sh
21:37:28-09/01/11 :     config.sh begins
21:37:29-09/01/11 :     BASIC_CONFIG
21:37:32-09/01/11 :     UNAME_PROCTYPE
./config.sh[14]: ./lsc:  not found
21:37:32-09/01/11 :     WHO
21:37:32-09/01/11 :     BOOTLIST
21:37:32-09/01/11 :     LSDEV
21:37:32-09/01/11 :     LSPV_DETAIL
21:37:32-09/01/11 :     LSVG
21:37:33-09/01/11 :     LSLV
21:37:36-09/01/11 :     SSA
21:37:36-09/01/11 :     LSATTR
21:37:37-09/01/11 :     FILESYSTEMS
21:37:39-09/01/11 :     LSSRC
21:37:39-09/01/11 :     PAGING_SPACE
21:37:39-09/01/11 :     NETSTAT
21:37:39-09/01/11 :     RPC
rpcinfo: 1831-256 unknownhost is unknown host
21:37:39-09/01/11 :     TUNABLES
21:37:40-09/01/11 :     SHOWMOUNT
21:37:40-09/01/11 :     RAS
21:37:40-09/01/11 :     WLM
21:37:40-09/01/11 :     AUDIT
21:37:40-09/01/11 :     SHELL_ENV
21:37:40-09/01/11 :     ERRPT
21:37:40-09/01/11 :     JAVA
java full version "J2RE 1.5.0 IBM AIX build pap32devifx-20110211b (SR12 FP3 +IZ94331)"
21:37:40-09/01/11 :     LSSLOT
21:37:40-09/01/11 :     LSCFG_VP
21:37:41-09/01/11 :     MICROCODE
21:37:42-09/01/11 :     PROCESSOR
./config.sh[14]: ./lsc:  not found
21:37:42-09/01/11 :     DUMP
21:37:42-09/01/11 :     BOSDEBUG
21:37:42-09/01/11 :     PROCESSES
21:37:42-09/01/11 :     MEMORY
./config.sh[14]: ./memdetails.sh:  not found
./config.sh[14]: ./getmempool.sh:  not found
21:37:42-09/01/11 :     FIBRE_CHANNEL
21:37:42-09/01/11 :     LOCKTRACE
21:37:42-09/01/11 :     UNIX_KERNEL
21:37:42-09/01/11 :     PCMCTRL
21:37:42-09/01/11 :     RSET
21:37:42-09/01/11 :     USERS
21:37:43-09/01/11 :     CRONTAB
21:37:43-09/01/11 :     FILES
21:37:43-09/01/11 :     LICENSES
21:37:43-09/01/11 :     VIO
21:37:43-09/01/11 :     TCBCK
21:37:43-09/01/11 :     MPIO
21:37:43-09/01/11 :     LPP_OSLEVEL
21:37:45-09/01/11 :     INSTFIX_TL_SP
21:37:45-09/01/11 :     DEVICES
21:37:45-09/01/11 :     MONITOR
21:37:45-09/01/11 :     HACMP
21:37:45-09/01/11 :     config.sh completed

     CONFIG.SH: Report is in file >>> config.html <<<

No comments: