uCosminexus Application Server, Maintenance and Migration Guide
How to acquire the OS status information required as troubleshooting information, is described below for each OS:
You can acquire the OS status information by using the cjgetsysinfo command. If you specify the -f option, you can output the OS status information to the OS status output file.
Execute the command in the following format.
cjgetsysinfo -f OS-status-output-file-path |
The information acquired with this command and the following commands of OS is same.
netstat -e netstat -s netstat -an set
Note that the required OS status information to be acquired as troubleshooting information when the cjgetsysinfo command is not to be executed is described below. Create a directory for acquiring each information in advance and generate the file in that directory. Create the directory in any path.
Table 4-31 Required OS status information as a troubleshooting information
Information type | Default file name |
---|---|
Network information | Protocol statistical information and current TCP/IP network connection information. Acquire using the following commands in a sequence.netstat -e > netstat_e.txt netstat -s > netstat_s.txt netstat -an > netstat_an.txt |
Environment variable | Currently set environment variables. Acquire using the following command.set >set.txt |
You can acquire the OS status information by using the cjgetsysinfo command. If you specify the -f option, you can output the OS status information to the OS status output file.
Execute the command in the following format.
cjgetsysinfo -f OS-status-output-file-path |
The information acquired with this command and the commands of OS shown in the following table is the same.
Table 4-32 OS commands executed by executing the cjgetsysinfo command
In AIX | In HP-UX | In Linux | In Solaris |
---|---|---|---|
|
|
|
|
Note that the methods (commands) to acquire the required OS status information to be acquired as troubleshooting information when the cjgetsysinfo command is not to be executed, are as follows:
df -k > df_k`date +"%y%m%d%H%M%S"`.txt ps -efl > ps_efl`date +"%y%m%d%H%M%S"`.txt ps -A -m -o THREAD > ps_AmoTHREAD`date +"%y%m%d%H%M%S"`.txt vmstat -t 1 5 > vmstat`date +"%y%m%d%H%M%S"`.txt vmstat -s > vmstat_s`date +"%y%m%d%H%M%S"`.txt lsps -s > lsps_s`date +"%y%m%d%H%M%S"`.txt netstat -i > netstat_i`date +"%y%m%d%H%M%S"`.txt netstat -m > netstat_m`date +"%y%m%d%H%M%S"`.txt netstat -an > netstat_an`date +"%y%m%d%H%M%S"`.txt iostat 1 5 > iostat`date +"%y%m%d%H%M%S"`.txt svmon -P > svmon_P`date +"%y%m%d%H%M%S"`.txt#1 svmon -G -i 1 5 > svmon_G`date +"%y%m%d%H%M%S"`.txt#1 sar -A 1 5 > sar_A`date +"%y%m%d%H%M%S"`.txt#1 /usr/samples/kernel/vmtune > vmtune`date +"%y%m%d%H%M%S"`.txt instfix -i > instfix_i`date +"%y%m%d%H%M%S"`.txt lslpp -hac > lslpp_hac`date +"%y%m%d%H%M%S"`.txt uname -a > uname_a`date +"%y%m%d%H%M%S"`.txt env > env`date +"%y%m%d%H%M%S"`.txt set > set`date +"%y%m%d%H%M%S"`.txt ipcs -a > ipcs_a`date +"%y%m%d%H%M%S"`.txt |
df -kt > df_kt`date +"%y%m%d%H%M%S"`.txt top -s 1 -d 10 -f top`date +"%y%m%d%H%M%S"`.txt ps -efl > ps`date +"%y%m%d%H%M%S"`.txt vmstat 1 5 > vmstat`date +"%y%m%d%H%M%S"`.txt vmstat -s > vmstat_s`date +"%y%m%d%H%M%S"`.txt netstat -i > netstat_i`date +"%y%m%d%H%M%S"`.txt netstat -an > netstat_an`date +"%y%m%d%H%M%S"`.txt iostat 1 5 > iostat`date +"%y%m%d%H%M%S"`.txt sar -A 1 5 > sar_A`date +"%y%m%d%H%M%S"`.txt#1 swapinfo -a > swapinfo_a`date +"%y%m%d%H%M%S"`.txt#1 swlist > swlist`date +"%y%m%d%H%M%S"`.txt swlist -l product > swlist_l_product`date +"%y%m%d%H%M%S"`.txt uname -a > uname_a`date +"%y%m%d%H%M%S"`.txt env > env`date +"%y%m%d%H%M%S"`.txt set > set`date +"%y%m%d%H%M%S"`.txt ipcs -a > ipcs_a`date +"%y%m%d%H%M%S"`.txt |
df > df`date +"%y%m%d%H%M%S"`.txt ps -eflm > ps`date +"%y%m%d%H%M%S"`.txt vmstat 1 5 > vmstat`date +"%y%m%d%H%M%S"`.txt netstat -s > netstat_s`date +"%y%m%d%H%M%S"`.txt netstat -an > netstat_an`date +"%y%m%d%H%M%S"`.txt iostat 1 5 > iostat`date +"%y%m%d%H%M%S"`.txt#2 top n 5 > top`date +"%y%m%d%H%M%S"`.txt sar -A 1 5 > sar`date +"%y%m%d%H%M%S"`.txt#2 sysctl -a > sysctl`date +"%y%m%d%H%M%S"`.txt rpm -qa > rpm_qa`date +"%y%m%d%H%M%S"`.txt rpm -qai > rpm_qai`date +"%y%m%d%H%M%S"`.txt uname -a > uname_a`date +"%y%m%d%H%M%S"`.txt env > env`date +"%y%m%d%H%M%S"`.txt set > set`date +"%y%m%d%H%M%S"`.txt ipcs > ipcs`date +"%y%m%d%H%M%S"`.txt ipcs -t > ipcs_t`date +"%y%m%d%H%M%S"`.txt ipcs -p > ipcs_p`date +"%y%m%d%H%M%S"`.txt ipcs -c > ipcs_c`date +"%y%m%d%H%M%S"`.txt ipcs -u > ipcs_u`date +"%y%m%d%H%M%S"`.txt ipcs -l > ipcs_l`date +"%y%m%d%H%M%S"`.txt |
df -k > df`date +"%y%m%d%H%M%S"`.txt ps -eflL > ps_eflL`date +"%y%m%d%H%M%S"`.txt vmstat 1 5 > vmstat`date +"%y%m%d%H%M%S"`.txt vmstat -s > vmstat_s`date +"%y%m%d%H%M%S"`.txt netstat -i > netstat_i`date +"%y%m%d%H%M%S"`.txt netstat -m > netstat_m`date +"%y%m%d%H%M%S"`.txt netstat -an > netstat_an`date +"%y%m%d%H%M%S"`.txt iostat 1 5 > iostat`date +"%y%m%d%H%M%S"`.txt mpstat 1 5 > mpstat`date +"%y%m%d%H%M%S"`.txt swap -l > swap_l`date +"%y%m%d%H%M%S"`.txt#1 sar -A 1 5 > sar_A`date +"%y%m%d%H%M%S"`.txt sysdef > sysdef`date +"%y%m%d%H%M%S"`.txt#1 pkginfo > pkginfo`date +"%y%m%d%H%M%S"`.txt patchadd -p > patchadd_p`date +"%y%m%d%H%M%S"`.txt#1 uname -a > uname_a`date +"%y%m%d%H%M%S"`.txt env > env`date +"%y%m%d%H%M%S"`.txt set > set`date +"%y%m%d%H%M%S"`.txt |
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.