Table Of Contents
Monitoring System Processes and Logs
Displaying System Processes
Displaying System Status
Monitoring System Processes and Logs
This chapter provides details on monitoring the health of the switch. It includes the following sections:
•Displaying System Processes
•Displaying System Status
Displaying System Processes
Use the show processes command to obtain general information about all processes (see Example 16-1 to Example 16-3).
Example 16-1 Displays System Processes
PID PPID %CPU TIME ELAPSED COMMAND
163 141 0.0 00:00:00 16:23:32 cns
164 141 0.0 00:00:00 16:23:32 ens
169 141 0.0 00:00:00 16:23:32 dlog
170 141 0.0 00:00:04 16:23:32 ds
171 141 0.0 00:00:01 16:23:32 mgmtApp
172 141 0.0 00:00:00 16:23:32 sys2swlog
173 141 0.0 00:00:00 16:23:32 fc2
174 141 0.0 00:00:00 16:23:32 nserver
175 141 0.0 00:00:00 16:23:32 mserver
176 141 0.0 00:00:00 16:23:32 util
177 141 0.0 00:00:01 16:23:32 snmpservicepath
178 141 0.0 00:00:00 16:23:31 eport
179 141 0.0 00:00:00 16:23:31 PortApp
180 141 0.0 00:00:00 16:23:31 port_mon
181 141 0.0 00:00:00 16:23:31 zoning
182 141 0.0 00:00:00 16:23:31 diagApp
241 141 0.0 00:00:00 16:23:18 snmpd
242 141 0.0 00:00:00 16:23:18 snmpmain
244 242 0.0 00:00:00 16:23:17 snmpmain
245 244 0.0 00:00:00 16:23:17 snmpmain
Where:
•PID = process ID
•PPID=arent process identification number
•%CPU=CPU utilization in percentage for the last one second
•TIME ELAPSED=elapsed time
•COMMAND=name of the process
Example 16-2 Displays Process Log Information
switch# show processes log
---------------------- ---------------
backtrace-clishco Tue Apr 26 18:45:39 2005
Where:
•Process = name of the process
•Log-create-time = when the log file was generated
Example 16-3 Displays All Process Log Details
switch# show processes log details
======================================================
Service : backtrace-clishco
Modification time: Tue Apr 26 18:45:39 2005
-------------------------------------------
fp0-3: 00000008000704e0 0000000000000000 0000000000000000 0000000000000000
fp4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
fp8-11: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
fp12-15: 0000000000000000 0000000000000063 0000000000000000 0000000000000000
fp16-19: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
fp20-23: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
fp24-27: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
fp28-31: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
r0 =00000000 sp =7fffba50 r2 =00000000 r3 =65727665 trap=00000300
r4 =1011739c r5 =1026a2f0 r6 =00000000 r7 =00000000 sr0=0faacecc sr1=0000d032
r8 =000000b8 r9 =0fb6b11c r10=7fffcbd9 r11=10030be0 dar=65727661 dsi=20000000
r12=4400286c r13=1027bdc0 r14=00000000 r15=00000000 r3*=00000003
r16=00000000 r17=00000000 r18=00000000 r19=00000000
r20=00000000 r21=00000000 r22=7fffbf28 r23=7fffbea8 lr=0fb68ed8 xer=00000000
r24=7fffbfa8 r25=7fffbcd8 r26=7fffbc58 r27=00000000 mq=c0160000 ctr=10030aac
r28=00000001 r29=00000000 r30=0fb68ed8 r31=6572765d fscr=00000000 ccr=42002860
/lib/libc.so.6(__libc_free+0x68)[0xfaacecc]
/lib/libstdc++.so.5(_ZdlPv+0x18)[0xfcdec5c]
/lib/libstdc++.so.5(_ZdaPv+0x10)[0xfcdeca4]
/itasca/lib/libMgmtapi.so(_ZN7mgmtApi8recv_msgEP11Hsb_Message+0x138)[0xff91d3c]
/itasca/lib/libswbApi.so(_ZN11Hsb_Handler4recvEP11Hsb_Message+0x94)[0xffd383c]
/itasca/lib/libswbApi.so(_ZN13Vpipe_Handler12handle_inputEi+0xc8)[0xffdaae8]
/itasca/lib/libswbApi.so(_ZN10Dispatcher12dispatch_setERi6fd_seti+0x144)[0xffcfbc0]
/itasca/lib/libswbApi.so(_ZN10Dispatcher8dispatchEi6fd_setS0_S0_+0x98)[0xffcf9cc]
/itasca/lib/libswbApi.so(_ZN10Dispatcher13handle_eventsEP7timeval+0x208)[0xffd0138]
/itasca/lib/libswbApi.so(_ZN3Hsb13handle_eventsEP7timeval+0x20)[0xffd07c4]
/lib/libc.so.6(__libc_start_main+0x19c)[0xfa5456c]
Uid: 10003 10003 10003 10003
Displaying System Status
Use the show system command to display system-related status information (see Example 16-4 and Example 16-5.
Example 16-4 Displays the System Reset Information
switch# Show system reset-reason
----- reset reason for module 1 -----
1) At 215435 usecs after Mon Apr 25 11:01:12 2005
The show system reset-reason command displays the last reset-reason code.
Example 16-5 Displays System Uptime
switch# show system uptime
System Start Time: Mon Apr 25 11:01:12 2005
System Up Time: 0 days, 10 hours, 58 minutes, 38 seconds
Active Supervisor Up Time: 0 days, 10 hours, 58 minutes, 38 seconds