Hitachi

uCosminexus Application Server Maintenance and Migration Guide


4.12.1 Acquiring the OS Status Information

How to acquire the OS status information required as troubleshooting information, is described below for each OS:

Organization of this subsection

(1) In Windows

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‒28: 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

(2) In UNIX

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‒29: OS commands executed by executing the cjgetsysinfo command

In AIX

In Linux

  • df -k

  • ps -elf

  • ps -A -m -o THREAD

  • vmstat -t 1 1

  • vmstat -s

  • lsps -s

  • netstat -i

  • netstat -m

  • netstat -an

  • iostat

  • svmon -P

  • svmon -G

  • sar -A 1

  • instfix -i

  • lslpp -hac

  • uname -a

  • env

  • set

  • ipcs -a

  • df

  • ps -eflm

  • vmstat

  • netstat -s

  • netstat -an

  • iostat#

  • top -b -n 1

  • sysctl -a

  • sar -A 1 1#

  • rpm -qa

  • rpm -qai

  • uname -a

  • env

  • set

  • ipcs

  • ipcs -t

  • ipcs -p

  • ipcs -c

  • ipcs -u

  • ipcs -l

#

To execute the sar command and the iostat command, you must install the sysstat package included in the Linux.

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:

In AIX

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

In Linux

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
#1

The root permissions are required for executing the command.

#2

To execute the sar command and the iostat command, you must install the sysstat package included in the Linux.