cjgetsysinfo (get OS status)

Format

cjgetsysinfo [-f path-of-OS-status-information-output-file]

Function

This command obtains information about the status of the OS. The execution results of the OS status information acquisition commands are output to the standard output or to the file specified by the -f option.

The following are the OS status information acquisition commands for Windows:
netstat -e
netstat -s
netstat -an#
set

# For versions earlier than the version 08-00, the netstat -a command is used.

The OS status information acquisition commands for UNIX are shown in the table below.

Table 2-3 List of OS status information acquisition commands

AIXHP-UXLinuxSolaris
df -k
ps -elf
ps -A -m -o THREAD
vmstat -t 1 1
vmstat -s
lsps -s
netstat -i
netstat -m
netstat -an#1
iostats
svmon -P
svmon -G
sar -A 1
instfix -i
lslpp -hac
uname -a
env
set
ipcs -a
df -kt
top -s 1 -d 1
ps -efl
vmstat
vmstat -s
netstat -i
netstat -an#1
iostat
sar -A 1
swapinfo -a
kmtune
swlist
swlist -l product
uname -a
env
set
ipcs -a
df
ps -eflm
vmstat
netstat -s
netstat -an#1
iostat#2
top -b -n 1
sysctl -a
sar -A 1 1#2
rpm -qa
rpm -qai
uname -a
env
set
ipcs
ipcs -t
ipcs -p
ipcs -c
ipcs -u
ipcs -l
df -k
ps -eflL
vmstat
vmstat -s
netstat -i
netstat -m
netstat -an#1
iostat
mpstat
swap -l
sar -A 1
sysdef
pkginfo
patchadd -p
uname -a
env
set
#1
For versions earlier than the version 08-00, the netstat -a command is used.
#2
The sysstat package must be installed.

Arguments

-f path-of-OS-state-information-output-file
Specifies the file path used to output the OS state information.
In UNIX, you cannot specify a file path that includes a single-byte space.

Output examples

An example for AIX is shown below:

[Figure]

Return values

0:
The command terminated normally.
1 or higher:
The command terminated abnormally.

Notes