24 April, 2013

CCNP T-Shoot Checking Resources And CPU Monitor


#Phase 1: Checking Resources

*To Show Info About Cards
RCS3600#show inventory
NAME: "c3660 Motherboard with Fast Ethernet", DESCR: "c3660 Motherboard with Fast Ethernet"
PID: Leopard-2FE       , VID:    , SN: JAB050304T8

RCS3600#show diag
Slot 0:
        C3600 Mother board 2FE(TX) Port adapter, 2 ports
        Port adapter is analyzed
        Port adapter insertion time unknown
        EEPROM contents at hardware discovery:
        PCB Serial Number        : JAB050304T8
        Processor type           : 34
        Top Assy. Part Number    : 800-04737-04
        Board Revision           : A0
        Fab Part Number          : 28-3234-02
        Deviation Number         : 65535-65535
        Manufacturing Test Data  : FF FF FF FF FF FF FF FF
        Unknown Field (type 00A1): FF FF FF FF
        RMA Test History         : FF
        RMA History              : FF
        Field Diagnostics Data   : FF FF FF FF FF FF FF FF
        Product (FRU) Number     : Leopard-2FE
        EEPROM format version 4
-------------------------------------------------------------

#Phase 2: CPU Monitor

RCS3600#show processes cpu
CPU utilization for five seconds: 3%/0%; one minute: 2%; five minutes: 2%
 PID Runtime(ms)   Invoked      uSecs   5Sec   1Min   5Min TTY Process
   1           4         3       1333  0.00%  0.00%  0.00%   0 Chunk Manager
   2        8828      2537       3479  0.00%  0.06%  0.07%   0 Load Meter
   3          16       440         36  0.00%  0.00%  0.00%   0 CEF Scanner
   4           4         1       4000  0.00%  0.00%  0.00%   0 EDDRI_MAIN
***---Lines Omitted--***

*Only shows utilized processes
RCS3600#show processes cpu | exclude 0.00%__0.00%__0.00%
CPU utilization for five seconds: 2%/0%; one minute: 3%; five minutes: 3%
 PID Runtime(ms)   Invoked      uSecs   5Sec   1Min   5Min TTY Process
   2        8852      2545       3478  0.00%  0.05%  0.07%   0 Load Meter
   5       10392      1530       6792  0.24%  0.06%  0.06%   0 Check heaps
  11        8328     12706        655  0.00%  0.04%  0.05%   0 IPC Periodic Tim
***---Lines Omitted--***

***Note: Make Alias
RCS3600(config)#alias exec cpu show processes cpu | exclude 0.00%__0.00%__0.00%
(Where cpu Is Name of Alias)
Example:
RCS3600#cpu
CPU utilization for five seconds: 2%/0%; one minute: 3%; five minutes: 3%
 PID Runtime(ms)   Invoked      uSecs   5Sec   1Min   5Min TTY Process
   2        9720      2786       3488  0.00%  0.06%  0.07%   0 Load Meter
   5       11416      1680       6795  0.08%  0.10%  0.09%   0 Check heaps
  11        9364     13908        673  0.24%  0.07%  0.06%   0 IPC Periodic Tim
  12        1140     13908         81  0.00%  0.03%  0.01%   0 IPC Deferred Por
RCS3600#show processes cpu | include IP Input
  65        2836      4732        599  0.00%  0.00%  0.00%   0 IP Input
***Note:
Key: 1) upper-case and lower-case have effects 
Example:
Wrong: ip input 
Correct: IP Input