Difference between revisions of "Cisco processes and load"
| (8 intermediate revisions by the same user not shown) | |||
| Line 38: | Line 38: | ||
    31           0           3          0  0.00%  0.00%  0.00%   0 Transport Port A  |     31           0           3          0  0.00%  0.00%  0.00%   0 Transport Port A  | ||
<tt>17.43%   0 TTY Background</tt>   | A line with '''PID 28''' shows high cpu utilization <tt>17.43%   0 TTY Background</tt>  due to <tt>ssh debugging on</tt> and <tt>terminal monitor</tt> enabled on ssh console.  | ||
= CPU history graph =  | = CPU history graph =  | ||
| Line 103: | Line 103: | ||
                     CPU% per hour (last 72 hours)  |                      CPU% per hour (last 72 hours)  | ||
                    * = maximum CPU%   # = average CPU%  |                     * = maximum CPU%   # = average CPU%  | ||
; Enable %CPU utilization history table  | |||
Sets the process entry limit and the size of the history table for CPU utilization statistics.  | |||
•In this example, to generate an entry in the history table, a process must exceed 10 percent CPU utilization.  | |||
•In this example, the duration of time for which the most recent history is saved in the history table is 300 seconds.  | |||
 r1(config)#process cpu statistics limit entry-percentage 10 size 300  | |||
 r1#sh proc cpu history table  | |||
 CPU utilization for five seconds: 11%/5% at 25w3d  | |||
 CPU utilization for five seconds: 12%/5% at 25w3d  | |||
 CPU utilization for five seconds: 8%/1% at 25w3d  | |||
= Network connections =  | = Network connections =  | ||
| Line 144: | Line 155: | ||
  tcp 81.133.111.222:61214 10.0.10.46:61214 178.33.44.55:443  178.33.44.55:443  |   tcp 81.133.111.222:61214 10.0.10.46:61214 178.33.44.55:443  178.33.44.55:443  | ||
  tcp 81.133.111.222:49163 10.0.10.47:49163 64.4.18.55:80      64.4.18.55:80  |   tcp 81.133.111.222:49163 10.0.10.47:49163 64.4.18.55:80      64.4.18.55:80  | ||
== Other show commands ==  | |||
<code>show ip port-map</code> is showing the current port mapping on your Cisco device  | |||
 #show ip port-map  | |||
 Default mapping:  snmp                 udp port 161                        system defined  | |||
 Default mapping:  echo                 tcp port 7                          system defined  | |||
 Default mapping:  echo                 udp port 7                          system defined  | |||
 Default mapping:  telnet               tcp port 23                         system defined  | |||
 Default mapping:  wins                 tcp port 1512                       system defined  | |||
 show ip cache flow  | |||
 show ip traffic  | |||
= DNS translations =  | |||
To display the default domain name, the style of name lookup service, a list of name server hosts, and the cached list of hostnames and addresses specific to a particular Domain Name System (DNS) view or for all configured DNS views. The <code>show hosts</code> command lists the name servers and their corresponding IP addresses. It also lists the hostnames, their corresponding IP addresses, and their corresponding aliases (if applicable) in a host table summary.   | |||
 r1#'''show hosts'''  | |||
 Default domain is home.geteway  | |||
 Name/address lookup uses domain service  | |||
 Name servers are 62.6.11.111, 194.72.22.222  | |||
 Codes: UN - unknown, EX - expired, OK - OK, ?? - revalidate  | |||
        temp - temporary, perm - permanent  | |||
        NA - Not Applicable None - Not defined  | |||
 Host                      Port  Flags      Age Type   Address(es)  | |||
 bbc.co.uk                 None  (temp, OK)  0   IP    212.58.253.67  | |||
                                                       212.58.251.195  | |||
 host81-133-111-222.in-add None  (temp, OK)  0   IP    81.133.111.222  | |||
 l.doubleclick.net         NA    (temp, EX) 12  SOA      ns1.google.com dns-admin.google.com  | |||
                                                    1537818 21600 3600 1209600 300  | |||
 Host                      Port  Flags      Age Type   Address(es)  | |||
 nsatc.net                 NA    (temp, EX) 24  SOA      admin.nsatc.net dl-cdn_infrastructure.level3.com  | |||
                                                    1363134183 10800 2700 3600000 900  | |||
= Access point =  | |||
This section is based on Cisco AIR-SAP1602E-E however the troubleshooting commands used should work on any other platform with minimum IOS version 15.  | |||
 ap1#'''show dot11 ?'''  | |||
   aaa                Authentication, Authorization, and Accounting  | |||
   activity-timeout   Default/Maximum activity timeout values  | |||
   adjacent-ap        Display Fast Secure Roaming adjacent AP list  | |||
   antenna-alignment  Display recent antenna alignment results  | |||
   arp-cache          Arp Cache  | |||
   associations       association information  | |||
   band-select        Display band select output  | |||
   bssid              show SSID to BSSID mapping  | |||
   cac                Admission Control Statistics  | |||
   carrier            Display recent carrier test results  | |||
   directed-roam      Directed Roaming Clients/APs  | |||
   ids                Intrusion Detection System  | |||
   lbs                Display LBS configuration and status  | |||
   linktest           Display recent linktest results  | |||
   mac-authen         MAC authentication details  | |||
   neighbor-ap        Display neighbor ap  | |||
   network-map        Network Map  | |||
   offchannel         Dot11 RM Offchannel  | |||
   statistics         statistics information  | |||
   traffic-streams    Admitted WMM Traffic-Streams  | |||
   vlan-name          Display VLAN name to ID map(s)  | |||
;Show connected clients  | |||
 '''show dot11 associations'''  | |||
 802.11 Client Stations on Dot11Radio0:  | |||
 SSID [WL-Wireless] :  | |||
 MAC Address    IP address      Device        Name            Parent         State  | |||
 6817.1122.aa5d 10.0.10.100     ccx-client    ap1             self           Assoc  | |||
 6c88.2233.bb30 10.0.10.119     ccx-client    ap1             self           Assoc  | |||
 6c88.3344.cc28 10.0.10.131     ccx-client    ap1             self           Assoc  | |||
 6c88.5566.ddf8 10.0.10.118     ccx-client    ap1             self           Assoc  | |||
;Show SSID to MAC address (BSSID) mapping  | |||
 '''show dot11 bssid'''  | |||
 Interface      BSSID         Guest  SSID  | |||
 Dot11Radio0   e8ed.f3dd.aa30  No   WL-MGM  | |||
 Dot11Radio0   e8ed.f3dd.aa31  Yes  WL-WIRELESS  | |||
[[Category:cisco]]  | |||
Latest revision as of 14:56, 26 August 2014
This page provides how to get general info about your Cisco device.
Processes
ap3#show processes cpu CPU utilization for five seconds: 0%/0%; one minute: 1%; five minutes: 18% PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process 1 76 1464 51 0.00% 0.00% 0.00% 0 Chunk Manager 2 8 68954 0 0.00% 0.00% 0.00% 0 Load Meter 3 196 266 736 0.15% 0.17% 0.05% 1 SSH Process 4 0 1 0 0.00% 0.00% 0.00% 0 RO Notify Timers 5 841172 81225 10356 0.00% 0.16% 0.21% 0 Check heaps 6 0 38 0 0.00% 0.00% 0.00% 0 Pool Manager 7 0 1 0 0.00% 0.00% 0.00% 0 DiscardQ Backgro 8 0 2 0 0.00% 0.00% 0.00% 0 Timers 9 0 62 0 0.00% 0.00% 0.00% 0 WATCH_AFS 10 0 1 0 0.00% 0.00% 0.00% 0 AAA_SERVER_DEADT 11 0 1 0 0.00% 0.00% 0.00% 0 Policy Manager PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process 12 0 1 0 0.00% 0.00% 0.00% 0 Crash writer 13 0 1 0 0.00% 0.00% 0.00% 0 Exception contro 14 4 10759 0 0.00% 0.00% 0.00% 0 SNTP 15 0 1 0 0.00% 0.00% 0.00% 0 RMI RM Notify Wa 17 0 1 0 0.00% 0.00% 0.00% 0 Net Input 18 4 53 75 0.00% 0.00% 0.00% 0 ARP Input 19 0 359613 0 0.00% 0.00% 0.00% 0 ARP Background 20 0 2 0 0.00% 0.00% 0.00% 0 Entity MIB API 21 0 1 0 0.00% 0.00% 0.00% 0 CEF MIB API 22 0 3 0 0.00% 0.00% 0.00% 0 PrstVbl 23 0 344764 0 0.00% 0.00% 0.00% 0 GraphIt PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process 24 0 1 0 0.00% 0.00% 0.00% 0 Critical Bkgnd 25 4 103457 0 0.00% 0.00% 0.00% 0 Net Background 26 0 8626 0 0.00% 0.00% 0.00% 0 IDB Work 27 2664 28191 94 0.00% 0.00% 0.17% 0 Logger 28 202052 18128190 11 0.00% 1.34% 17.43% 0 TTY Background 29 0 4 0 0.00% 0.00% 0.00% 0 IF-MGR control p 30 0 12 0 0.00% 0.00% 0.00% 0 IF-MGR event pro 31 0 3 0 0.00% 0.00% 0.00% 0 Transport Port A
A line with PID 28 shows high cpu utilization 17.43% 0 TTY Background due to ssh debugging on and terminal monitor enabled on ssh console.
CPU history graph
ap3#show processes cpu history
ap3   09:58:02 AM Sunday Nov 10 2013 UTC
                                               22222
  100
   90
   80
   70
   60
   50
   40
   30
   20
   10
     0....5....1....1....2....2....3....3....4....4....5....5....6
               0    5    0    5    0    5    0    5    0    5    0
               CPU% per second (last 60 seconds)
           668777
      22223015665 322222222222212222 22212222212222222222222222 22
  100
   90        *
   80        ****
   70        **#*
   60      *####*
   50      *#####
   40      *#####
   30      *#####
   20      ######
   10      ######
     0....5....1....1....2....2....3....3....4....4....5....5....6
               0    5    0    5    0    5    0    5    0    5    0
               CPU% per minute (last 60 minutes)
              * = maximum CPU%   # = average CPU%
      222322222733222444789887553233323232745886776555553724322377235645644447
  100
   90
   80
   70
   60
   50
   40
   30
   20
   10          *        ********          * ************ *      **  ** **    *
     0....5....1....1....2....2....3....3....4....4....5....5....6....6....7..
               0    5    0    5    0    5    0    5    0    5    0    5    0
                   CPU% per hour (last 72 hours)
                  * = maximum CPU%   # = average CPU%
- Enable %CPU utilization history table
 
Sets the process entry limit and the size of the history table for CPU utilization statistics. •In this example, to generate an entry in the history table, a process must exceed 10 percent CPU utilization. •In this example, the duration of time for which the most recent history is saved in the history table is 300 seconds.
r1(config)#process cpu statistics limit entry-percentage 10 size 300 r1#sh proc cpu history table CPU utilization for five seconds: 11%/5% at 25w3d CPU utilization for five seconds: 12%/5% at 25w3d CPU utilization for five seconds: 8%/1% at 25w3d
Network connections
Open tcp/udp ports
r1#show control-plane host open-ports Active internet connections (servers and established) Prot Local Address Foreign Address Service State tcp *:22 *:0 SSH-Server LISTEN tcp *:22 93.96.111.222:59875 SSH-Server ESTABLIS tcp *:23 *:0 Telnet LISTEN tcp *:53 *:0 DNS Server LISTEN udp *:58093 *:0 IP SNMP LISTEN udp *:53 *:0 DNS Server LISTEN udp *:67 *:0 DHCPD Receive LISTEN udp *:161 *:0 IP SNMP LISTEN udp *:162 *:0 IP SNMP LISTEN
TCP established connections
r1#show tcp brief
TCB       Local Address               Foreign Address             (state)
2AABFEA4  host81-133-111.222.in-addr.93-96-111.222.zone4.bethere ESTAB
          btopenworld.com.22          .co.uk.59875
UDP all connections
r1#show udp Proto Remote Port Local Port In Out Stat TTY OutputIF 17 10.0.10.89 18980 81.133.111.222 53 0 0 1000211 0 17 10.0.10.53 68 10.0.99.100 67 0 0 1002211 0 17 --listen-- 81.133.111.222 161 0 0 1001001 0 17 --listen-- 81.133.111.222 162 0 0 1001011 0 17 --listen-- 81.133.111.222 58093 0 0 1001011 0 17(v6) --listen-- --any-- 161 0 0 1020001 0 17(v6) --listen-- --any-- 162 0 0 1020011 0 17(v6) --listen-- --any-- 59325 0 0 1020011 0
NAT translations
r1#show ip nat nvi translations Pro Source global Source local Destin local Destin global tcp 81.133.111.222:64625 10.0.10.33:64625 178.33.44.55:443 178.33.44.55:443 tcp 81.133.111.222:49220 10.0.10.38:49220 178.33.44.55:443 178.33.44.55:443 tcp 81.133.111.222:54938 10.0.10.44:54938 178.33.44.55:443 178.33.44.55:443 tcp 81.133.111.222:61214 10.0.10.46:61214 178.33.44.55:443 178.33.44.55:443 tcp 81.133.111.222:49163 10.0.10.47:49163 64.4.18.55:80 64.4.18.55:80
Other show commands
show ip port-map is showing the current port mapping on your Cisco device
#show ip port-map Default mapping: snmp udp port 161 system defined Default mapping: echo tcp port 7 system defined Default mapping: echo udp port 7 system defined Default mapping: telnet tcp port 23 system defined Default mapping: wins tcp port 1512 system defined
show ip cache flow show ip traffic
DNS translations
To display the default domain name, the style of name lookup service, a list of name server hosts, and the cached list of hostnames and addresses specific to a particular Domain Name System (DNS) view or for all configured DNS views. The show hosts command lists the name servers and their corresponding IP addresses. It also lists the hostnames, their corresponding IP addresses, and their corresponding aliases (if applicable) in a host table summary. 
r1#show hosts
Default domain is home.geteway
Name/address lookup uses domain service
Name servers are 62.6.11.111, 194.72.22.222
Codes: UN - unknown, EX - expired, OK - OK, ?? - revalidate
       temp - temporary, perm - permanent
       NA - Not Applicable None - Not defined
Host                      Port  Flags      Age Type   Address(es)
bbc.co.uk                 None  (temp, OK)  0   IP    212.58.253.67
                                                      212.58.251.195
host81-133-111-222.in-add None  (temp, OK)  0   IP    81.133.111.222
l.doubleclick.net         NA    (temp, EX) 12  SOA      ns1.google.com dns-admin.google.com
                                                   1537818 21600 3600 1209600 300
Host                      Port  Flags      Age Type   Address(es)
nsatc.net                 NA    (temp, EX) 24  SOA      admin.nsatc.net dl-cdn_infrastructure.level3.com
                                                   1363134183 10800 2700 3600000 900
Access point
This section is based on Cisco AIR-SAP1602E-E however the troubleshooting commands used should work on any other platform with minimum IOS version 15.
ap1#show dot11 ? aaa Authentication, Authorization, and Accounting activity-timeout Default/Maximum activity timeout values adjacent-ap Display Fast Secure Roaming adjacent AP list antenna-alignment Display recent antenna alignment results arp-cache Arp Cache associations association information band-select Display band select output bssid show SSID to BSSID mapping cac Admission Control Statistics carrier Display recent carrier test results directed-roam Directed Roaming Clients/APs ids Intrusion Detection System lbs Display LBS configuration and status linktest Display recent linktest results mac-authen MAC authentication details neighbor-ap Display neighbor ap network-map Network Map offchannel Dot11 RM Offchannel statistics statistics information traffic-streams Admitted WMM Traffic-Streams vlan-name Display VLAN name to ID map(s)
- Show connected clients
 
show dot11 associations 802.11 Client Stations on Dot11Radio0: SSID [WL-Wireless] : MAC Address IP address Device Name Parent State 6817.1122.aa5d 10.0.10.100 ccx-client ap1 self Assoc 6c88.2233.bb30 10.0.10.119 ccx-client ap1 self Assoc 6c88.3344.cc28 10.0.10.131 ccx-client ap1 self Assoc 6c88.5566.ddf8 10.0.10.118 ccx-client ap1 self Assoc
- Show SSID to MAC address (BSSID) mapping
 
show dot11 bssid Interface BSSID Guest SSID Dot11Radio0 e8ed.f3dd.aa30 No WL-MGM Dot11Radio0 e8ed.f3dd.aa31 Yes WL-WIRELESS