|
|
This section describes how to monitor the switch using a variety of commands:
Use the show system command to display global system status information for the switch.
To check the system status, perform this task in privileged mode:
| Task | Command |
|---|---|
Display system status information. | show system |
This example shows how to check the system status:
4003-ER-F1> (enable) show system PS1-Status PS2-Status Fan-Status Temp-Alarm Sys-Status Uptime d,h:m:s Logout ---------- ---------- ---------- ---------- ---------- -------------- --------- ok none ok off ok 1,19:43:11 20 min PS1-Type PS2-Type Modem Baud Traffic Peak Peak-Time ---------- ---------- ------- ----- ------- ---- ------------------------- WS-C4008 none disable 9600 0% 0% Fri Apr 9 1999, 18:54:17 System Name System Location System Contact ------------------------ ------------------------ ------------------------ 4003-ER-F1 Bldg 1 Equip Room sysadmin@bigcorp.com 4003-ER-F1> (enable)
Use the show module command to display module status information for the switch. Specify a module number to display information for that module only.
To check module status, perform this task in privileged mode:
| Task | Command |
|---|---|
Display switching module status information. | show module [mod_num] |
This example shows how to check the status of all modules in the switch:
Console> (enable) show module Mod Slot Ports Module-Type Model Status --- ---- ----- ------------------------- ------------------- -------- 1 1 0 Switching Supervisor WS-X4012 ok 2 2 6 1000BaseX Ethernet WS-X4306 ok 3 3 6 1000BaseX Ethernet WS-X4306 ok Mod Module-Name Serial-Num --- ------------------- -------------------- 1 JAB023806JR 2 JAB0240004D 3 JAB024000YY Mod MAC-Address(es) Hw Fw Sw --- -------------------------------------- ------ ---------- ----------------- 1 00-10-7b-f8-03-00 to 00-10-7b-f8-06-ff 0.1 4.4(1) 4.5(1) 2 00-10-7b-f6-b1-a8 to 00-10-7b-f6-b1-ad 0.2 3 00-10-7b-f6-b2-1a to 00-10-7b-f6-b2-1f 0.2 Console> (enable)
This example shows how to check the status of an individual module in the switch:
Console> (enable) show module 2 Mod Slot Ports Module-Type Model Status --- ---- ----- ------------------------- ------------------- -------- 2 2 6 1000BaseX Ethernet WS-X4306 ok Mod Module-Name Serial-Num --- ------------------- -------------------- 2 JAB0240004D Mod MAC-Address(es) Hw Fw Sw --- -------------------------------------- ------ ---------- ----------------- 2 00-10-7b-f6-b1-a8 to 00-10-7b-f6-b1-ad 0.2 Console> (enable)
Use the show port command to display switch port status information. Specify a module number to display information for ports on that module only. Specify a module number and port number to display information for that port only.
To check port status, perform this task in privileged mode:
| Task | Command |
|---|---|
Display switch port status information. | show port [mod_num[/port_num]] |
This example shows how to check the status of all ports on module 3:
Console> (enable) show port 3
Port Name Status Vlan Level Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
3/1 connected 10 normal full 1000 1000BaseSX
3/2 connected 10 normal full 1000 1000BaseSX
3/3 connected 20 normal full 1000 1000BaseSX
3/4 connected 40 normal full 1000 1000BaseSX
3/5 notconnect 1 normal full 1000 No GBIC
3/6 notconnect 1 normal full 1000 No GBIC
Port Security Secure-Src-Addr Last-Src-Addr Shutdown Trap IfIndex
----- -------- ----------------- ----------------- -------- -------- -------
3/1 disabled No disabled 15
3/2 disabled No disabled 16
3/3 disabled No disabled 17
3/4 disabled No disabled 18
3/5 disabled No disabled 19
3/6 disabled No disabled 20
Port Send FlowControl Receive FlowControl RxPause TxPause Unsupported
admin oper admin oper opcodes
----- -------- -------- -------- -------- ------- ------- -----------
3/1 desired on desired on 0 0 0
3/2 desired on desired on 0 0 0
3/3 desired on desired on 0 0 0
3/4 desired on desired on 0 0 0
3/5 desired off off off 0 0 0
3/6 desired off off off 0 0 0
Port Status Channel Channel Neighbor Neighbor
mode status device port
----- ---------- --------- ----------- ------------------------- ----------
3/1 connected off not channel
3/2 connected off not channel
3/3 connected off not channel
3/4 connected off not channel
3/5 notconnect off not channel
3/6 notconnect off not channel
Port Align-Err FCS-Err Xmit-Err Rcv-Err UnderSize
----- ---------- ---------- ---------- ---------- ---------
3/1 - 0 0 0 0
3/2 - 0 0 0 0
3/3 - 0 0 0 0
3/4 - 0 0 0 0
3/5 - 0 0 0 0
3/6 - 0 0 0 0
Port Single-Col Multi-Coll Late-Coll Excess-Col Carri-Sen Runts Giants
----- ---------- ---------- ---------- ---------- --------- --------- ---------
3/1 0 0 0 0 0 0 0
3/2 0 0 0 0 0 0 0
3/3 0 0 0 0 0 0 0
3/4 0 0 0 0 0 0 0
3/5 0 0 0 0 0 0 0
3/6 0 0 0 0 0 0 0
Last-Time-Cleared
--------------------------
Fri Apr 30 1999, 18:54:17
Console> (enable)
Use the show port capabilities command to display information about feature support for a specific port. Specify a module number to display information for ports on that module only. Specify a module number and port number to display information for that port only.
To check port capabilities, perform this task in privileged mode:
| Task | Command |
|---|---|
Display switch port capability information. | show port capabilities [mod_num[/port_num]] |
This example shows how to check the port capabilities of a specific port:
Console> (enable) show port capabilities 3/1 Model WS-X4306 Port 3/1 Type 1000BaseSX Speed 1000 Duplex full Trunk encap type 802.1Q Trunk mode on,off,desirable,auto,nonegotiate Channel 3/1-2 Flow control receive-(off,on,desired),send-(off,on,desired) Security yes Membership static Fast start yes Rewrite no Console> (enable)
After you assign an IP address and a default gateway, and at least one switch port is connected to the network and properly configured, you should be able to communicate with other nodes on the network.
To check whether the switch is properly connected and configured, perform this task in privileged mode:
| Task | Command |
|---|---|
Step 1 Ping another node on the network. | ping [-s] host [packet_size] [packet_count] |
Step 2 (Optional) Trace the route of packets through the network to another node (only Layer 3 devices, such as routers, will appear in the path). | traceroute [-q nqueries] host [data_size] |
Step 3 If the host is unresponsive, check the IP address, subnet mask, broadcast address, and VLAN assignment of the in-band (sc0) switch interface. | show interface |
Step 4 If the interface is properly configured, check the default gateway assignment. | show ip route |
This example shows how to check connectivity out a switch port using the ping and traceroute commands:
Console> (enable) ping 10.10.1.10 10.10.1.10 is alive Console> (enable) ping -s 5509-ER-F1 1200 4 PING 10.10.1.10: 1200 data bytes 1208 bytes from 10.10.1.10: icmp_seq=0. time=9 ms 1208 bytes from 10.10.1.10: icmp_seq=1. time=11 ms 1208 bytes from 10.10.1.10: icmp_seq=2. time=16 ms 1208 bytes from 10.10.1.10: icmp_seq=3. time=10 ms ----10.10.1.10 PING Statistics---- 4 packets transmitted, 4 packets received, 0% packet loss round-trip (ms) min/avg/max = 9/11/16 Console> (enable) traceroute 10.10.10.100 traceroute to dns-server-1.bigcorp.com (10.10.10.100), 30 hops max, 40 byte packets 1 rsm-vlan1-if.bigcorp.com (10.10.1.1) 2 ms 2 ms 1 ms 2 dns-server-1.bigcorp.com (10.10.10.100) 2 ms 2 ms 1 ms Console> (enable) traceroute dns-server-1 1400 traceroute to dns-server-1.bigcorp.com (10.10.10.100), 30 hops max, 1440 byte packets 1 rsm-vlan1-if.bigcorp.com (10.10.1.1) 1 ms 2 ms 1 ms 2 dns-server-1.bigcorp.com (10.10.10.100) 2 ms 2 ms 2 ms Console> (enable)
Spanning tree prevents the formation of network loops. The switch maintains an instance of spanning tree for every VLAN.
To display spanning-tree information for the switch, perform this task in privileged mode:
| Task | Command |
|---|---|
Display spanning-tree information. | show spantree [vlan | mod_num/port_num] [active] |
This example shows how to display spanning-tree information for VLAN 10:
Console> (enable) show spantree 10 VLAN 10 Spanning tree enabled Spanning tree type ieee Designated Root 00-10-7b-f8-03-09 Designated Root Priority 32768 Designated Root Cost 0 Designated Root Port 1/0 Root Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec Bridge ID MAC ADDR 00-10-7b-f8-03-09 Bridge ID Priority 32768 Bridge Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec Port Vlan Port-State Cost Priority Fast-Start Group-Method --------- ---- ------------- ----- -------- ---------- ------------ 2/1-2 10 forwarding 3 32 disabled channel 3/1 10 forwarding 4 32 enabled 3/2 10 forwarding 4 32 enabled Console> (enable)
Use the show cdp neighbors command to display information about directly connected Cisco devices. Specify a module number to display information for that module only. Specify a module number and port number to display information for that port only. The vlan, duplex, and capabilities keywords display different information about neighbor devices. The detail keyword shows detailed neighbor information.
To display neighbor information, perform this task in privileged mode:
| Task | Command |
|---|---|
Display neighbor device information. | show cdp neighbors [mod_num[/port_num]] |
This example shows how to display summary information for all neighboring Cisco devices:
Console> (enable) show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Port Device-ID Port-ID Platform Capability
-------- ----------------------- ----------------- ------------------ ----------
2/1 003812064 1/1 WS-C5509 T B S
2/2 003812064 1/2 WS-C5509 T B S
Console> (enable)
This example shows how to display detailed neighbor information for Cisco devices connected to a particular port:
Console> (enable) show cdp neighbors 2/1 detail Port (Our Port): 2/1 Device-ID: 003812064 Device Addresses: IP Address: 10.10.1.10 Holdtime: 130 sec Capabilities: TRANSPARENT_BRIDGE SR_BRIDGE SWITCH Version: WS-C5509 Software, Version McpSW: 4.5(1) NmpSW: 4.5(1) Copyright (c) 1995-1999 by Cisco Systems Platform: WS-C5509 Port-ID (Port on Neighbor's Device): 1/1 Console> (enable)
The switch makes forwarding decisions using a table (called the EARL or CAM table) that maps switch ports to MAC addresses. To display the contents of the table, use the show cam command.
To display the contents of the forwarding table, perform this task in privileged mode:
| Task | Command |
|---|---|
Display forwarding table entries. | show cam [count]{dynamic | static | permanent | system} [vlan] show cam {dynamic | static | permanent | system} mod_num/port_num show cam mac_addr [vlan] |
This example shows how to display all dynamically learned forwarding table entries for VLAN 10:
Console> (enable) show cam dynamic 10 * = Static Entry. + = Permanent Entry. # = System Entry. R = Router Entry. X = Port Security Entry VLAN Dest MAC/Route Des [CoS] Destination Ports or VCs / [Protocol Type] ---- ------------------ ----- ------------------------------------------- 10 00-10-0d-3e-8c-00 2/1 [ALL] 10 00-01-70-2C-75-80 3/1 [ALL] 10 00-01-70-3D-60-10 3/2 [ALL] Total Matching CAM Entries Displayed = 3 Console> (enable)
To display the current user sessions on the switch, perform this task in privileged mode:
| Task | Command |
|---|---|
Display the current user sessions. | show users [noalias] |
This example shows how to display information about user sessions on the switch:
Console> (enable) show users Console Port ------------ Inactive Telnet Sessions User ---------------------------------------- ------------------------------ sam-pc.bigcorp.com jake-nt.bigcorp.com Console> (enable)
This example shows how to display information about user sessions using the noalias keyword to display the IP addresses of connected hosts:
Console> (enable) show users noalias Console Port ------------ Inactive Telnet Sessions User ---------------------------------------- ------------------------------ 10.10.10.12 10.10.20.46 Console> (enable)
To display the version information for the switch, perform this task in privileged mode:
| Task | Command |
|---|---|
Display version information for the switch. | show version [mod_num] |
This example shows how to display version information for the switch:
Console> (enable) show version
WS-C4003 Software, Version NmpSW: 4.5(1)
Copyright (c) 1995-1999 by Cisco Systems, Inc.
NMP S/W compiled on Mar 29 1999, 15:49:45
GSP S/W compiled on Mar 29 1999, 10:56:40
System Bootstrap Version: 4.4(1)
Hardware Version: 0.1 Model: WS-C4003 Serial #: JAB023806LN
Mod Port Model Serial # Versions
--- ---- ---------- -------------------- ---------------------------------
1 0 WS-X4012 JAB023806LN Hw : 0.1
Gsp: 4.5(1.0)
Nmp: 4.5(1)
2 34 WS-X4232 JAB024100BL Hw : 1.0
3 6 WS-X4306 JAB024000YY Hw : 0.2
DRAM FLASH NVRAM
Module Total Used Free Total Used Free Total Used Free
------ ------- ------- ------- ------- ------- ------- ----- ----- -----
1 32768K 16657K 16111K 12288K 6445K 5843K 480K 90K 390K
Uptime is 1 day, 20 hours, 2 minutes
Console> (enable)
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Wed Jun 2 11:51:12 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.