|
|
Use the show counters command to display hardware counters for a port.
show counters mod_num/port_num
mod_num | Number of the module. |
port_num | Number of the port. |
This command has no default setting.
Switch command.
Normal.
This example shows how to display the counters for module 2, port 1:
Console> (enable) show counters 2/1Generic counters version 164 bit counters0 rxHCTotalPkts = 21705581 txHCTotalPkts = 25889112 rxHCUnicastPkts = 21426693 txHCUnicastPkts = 25854574 rxHCMulticastPkts = 195525 txHCMulticastPkts = 17896 rxHCBroadcastPkts = 83327 txHCBroadcastPkts = 16658 rxHCOctets = 1905138439 txHCOctets = 22742329910 rxTxHCPkts64Octets = 2099611 rxTxHCPkts65to127Octets = 473727912 rxTxHCPkts128to255Octets = 117013 rxTxHCPkts256to511Octets = 1614 rxTxHCpkts512to1023Octets = 815 rxTxHCpkts1024to1518Octets = 016 rxDropEvents = 032 bit counters0 rxCRCAlignErrors = 01 rxUndersizedPkts = 02 rxOversizedPkts = 03 rxFragmentPkts = 04 rxJabbers = 05 txCollisions = 06 ifInErrors = 07 ifOutErrors = 08 ifInDiscards = 09 ifInUnknownProtos = 010 ifOutDiscards = 011 txDelayExceededDiscards = 012 txCRC = 013 linkChange = 2Dot3 counters version 10 dot3StatsAlignmentErrors = 01 dot3StatsFCSErrors = 02 dot3StatsSingleColFrames = 03 dot3StatsMultiColFrames = 04 dot3StatsSQETestErrors = 05 dot3StatsDeferredTransmisions = 06 dot3StatsLateCollisions = 07 dot3StatsExcessiveCollisions = 08 dot3StatsInternalMacTransmitErrors = 09 dot3StatsCarrierSenseErrors = 010 dot3StatsFrameTooLongs = 011 dot3StatsInternalMacReceiveErrors = 0Flowcontrol counters version 10 txPause = 01 rxPause = 0Console> (enable)
Table 2-8 describes the possible fields in the show counters command output.
| Field | Description |
| 64-bit counters |
|
| Number of packets (including bad packets, broadcast packets, and multicast packets) received on a link. |
| Number of packets (including bad packets, broadcast packets, and multicast packets) transmitted on a link. |
| Number of packets, delivered by this sublayer to a higher (sub)layer, which were not addressed to a multicast or broadcast address at this sublayer. |
| Number of packets that higher-level protocols requested be transmitted, and which were not addressed to a multicast or broadcast address at this sublayer, including those that were discarded or not sent. |
| Number of packets, delivered by this sublayer to a higher (sub)layer, which were addressed to a multicast address at this sublayer. For a MAC layer protocol, this includes both Group and Functional addresses. |
| Number of packets that higher-level protocols requested be transmitted, and which were addressed to a multicast address at this sublayer, including those that were discarded or not sent. For a MAC layer protocol, this includes both Group and Functional addresses. |
| Number of packets, delivered by this sublayer to a higher (sub)layer, which were addressed to a broadcast address at this sublayer. |
| Number of packets that higher-level protocols requested be transmitted, and which were addressed to a broadcast address at this sublayer, including those that were discarded or not sent. |
| Number of octets received on the interface, including framing characters. |
| Number of octets transmitted out of the interface, including framing characters. |
| Number of packets (including bad packets) received that were 64 octets in length (excluding framing bits but including FCS octets). |
| Number of packets (including bad packets) received that were between 65 and 127 octets in length inclusive (excluding framing bits but including FCS octets). |
| Number of packets (including bad packets) received that were between 128 and 255 octets in length inclusive (excluding framing bits but including FCS octets). |
| Number of packets (including bad packets) received that were between 256 and 511 octets in length inclusive (excluding framing bits but including FCS octets). |
| Number of packets (including bad packets) received that were between 512 and 1023 octets in length inclusive (excluding framing bits but including FCS octets). |
| Number of packets (including bad packets) received that were between 1024 and 1518 octets in length inclusive (excluding framing bits but including FCS octets). |
| Number of events in which packets were dropped by the probe due to lack of resources. |
| 32-bit counters |
|
| Number of packets received that had a length (excluding framing bits, but including FCS octets) between 64 and 1518 octets, inclusive, with either a bad FCS and an integral number of octets (FCS Error) or a bad FCS and a non-integral number of octets (Alignment Error). |
| Number of packets received that were less than 64 octets long (excluding framing bits, but including FCS octets) and were otherwise well formed. |
| Number of packets received that were longer than 1518 octets (excluding framing bits, but including FCS octets) and were otherwise well formed. |
| Number of packets received that were less than 64 octets in length (excluding framing bits but including FCS octets) with either a bad FCS and an integral number of octets (FCS Error) or a bad FCS and a non-integral number of octets (Alignment Error). |
| Number of packets received that were longer than 1518 octets (excluding framing bits, but including FCS octets), with either a bad FCS and an integral number of octets (FCS Error) or a bad FCS and a non-integral number of octets (Alignment Error). |
| The best estimate of the total number of collisions on this Ethernet segment. The value returned will depend on the location of the RMON probe. Section 8.2.1.3 (10Base5) and section 10.3.1.3 (10Base2) of IEEE standard 802.3 states that a station must detect a collision in the receive mode if three or more stations are transmitting simultaneously. A repeater port must detect a collision when two or more stations are transmitting simultaneously. A probe placed on a repeater port could record more collisions than a probe connected to a station on the same segment would. Probe location plays a much smaller role when considering 10BaseT. |
| For packet-oriented interfaces, the number of inbound packets that contained errors preventing their delivery to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing their delivery to a higher-layer protocol. |
| Number of octets transmitted out of the interface, including framing characters. |
| Number of inbound packets chosen to be discarded even though no errors had been detected to prevent their delivery to a higher-layer protocol. One reason for discarding such a packet could be to free up buffer space. |
| Number of inbound packets with unknown protocols. |
| Number of inbound packets chosen to be discarded even though no errors had been detected to prevent their delivery to a higher-layer protocol. One reason for discarding such a packet could be to free up buffer space. |
| Number of frames discarded by this port due to excessive transit delay. |
| |
| Number of times the port toggled between a connect state to a non-connect state. |
| Dot3 counters version 1 |
|
| A count of frames received on a particular interface that is not an integral number of octets in length and do not pass the FCS check. |
| A count of frames received on a particular interface that is an integral number of octets in length but do not pass the FCS check. |
| A count of successfully transmitted frames on a particular interface for which transmission is inhibited by exactly one collision. A frame that is counted by an instance of this object is also counted by the corresponding instance of either the ifOutUcastPkts, ifOutMulticastPkts, or ifOutBroadcastPkts, and is not counted by the corresponding instance of the dot3StatsMultipleCollisionFrames object. |
| A count of successfully transmitted frames on a particular interface for which transmission is inhibited by more than one collision. A frame that is counted by an instance of this object is also counted by the corresponding instance of either the ifOutUcastPkts, ifOutMulticastPkts, or ifOutBroadcastPkts, and is not counted by the corresponding instance of the dot3StatsSingleCollisionFrames object. |
| A count of times that the SQE TEST ERROR message is generated by the PLS sublayer for a particular interface. The SQE TEST ERROR message is defined in section 7.2.2.2.4 of ANSI/IEEE 802.3-1985 and its generation is described in section 7.2.4.6 of the same document. |
| A count of frames for which the first transmission attempt on a particular interface is delayed because the medium is busy. The count represented by an instance of this object does not include frames involved in collisions. |
| Number of times that a collision is detected on a particular interface later than 512 bit-times into the transmission of a packet. |
| A count of frames for which transmission on a particular interface fails due to excessive collisions. |
| A count of frames for which transmission on a particular interface fails due to an internal MAC sublayer transmit error. A frame is only counted by an instance of this object if it is not counted by the corresponding instance of either the dot3StatsLateCollisions object, the dot3StatsExcessiveCollisions object, or the dot3StatsCarrierSenseErrors object. |
| Number of times that the carrier sense condition was lost or never asserted when attempting to transmit a frame on a particular interface. The count represented by an instance of this object is incremented at most once per transmission attempt, even if the carrier sense condition fluctuates during a transmission attempt. |
| A count of frames received on a particular interface that exceeds the maximum permitted frame size. The count represented by an instance of this object is incremented when the frameTooLong status is returned by the MAC service to the LLC (or other MAC user). Received frames for which multiple error conditions obtained are counted exclusively according to the error status presented to the LLC. |
| A count of frames for which reception on a particular interface fails due to an internal MAC sublayer receive error. A frame is only counted by an instance of this object if it is not counted by the corresponding instance of either the dot3StatsFrameTooLongs object, the dot3StatsAlignmentErrors object, or the dot3StatsFCSErrors object. |
| Flowcontrol counters version 1 |
|
| Number of control frames transmitted at the gigabit level. This counter is valid only on a Gigabit Ethernet port. |
| Number of control frames received at the gigabit level. This counter is valid only on a Gigabit Ethernet port. |
Use the show environment command to display system status information.
show environment [temperature | all | power]
temperature | (Optional) Keyword to display temperature information. |
all | (Optional) Keyword to display environmental status information (for example, power supply, fan status, and temperature information) and information about the power available to the system. |
power | (Optional) Keyword to display environment power information. |
If you do not enter a keyword, environmental status information (for example, power supply, fan status, and temperature information) only is displayed.
Switch command.
Normal.
The supervisor engine slots (one and two) will always have power allocated to them even if there is no module installed. This is because power must be reserved in case a redundant supervisor engine is installed.
This example shows how to display environmental status information:
Console> show environmentEnvironmental Status (. = Pass, F = Fail, U = Unknown, N = Not Present)PS1:. PS2:N PS1 Fan:. PS2 Fan:NChassis-Ser-EEPROM:. Fan:.Clock(A/B):A Clock A:. Clock B:.VTT1:. VTT2:. VTT3:.Console> (enable)
This example shows how to display environmental power information:
Console> (enable) show environment powerPS1 Capacity:27.46 AmpsPS2 Capacity:nonePS Configuration :PS1 and PS2 in Redundant Configuration.Total Power Available:27.46 AmpsTotal Power Available for Line Card Usage:25.46 AmpsTotal Power Drawn From the System:8.0 AmpsRemaining Power in the System:19.46 AmpsSlot power Requirement/Usage :Slot Card Type Power Required Power Allocated Card Status---- ------------------- -------------- --------------- -----------1 0.00 A 2.00 A2 WS-X6K-SUP1-2GE 2.00 A 2.00 A ok4 WS-X6224-100FX-MT 2.00 A 2.00 A otherConsole> (enable)
This example shows how to display detailed temperature information:
Console> show environment temperatureIntake Exhaust Device 1 Device 2Slot Temperature Temperature Temperature Temperature--------------- ------------ ------------ ------------ ------------1 22C(60C,70C) 25C(32C,75C) 23C(60C,70C) 27C(60C,70C)3 27C(60C,70C) 26C(32C,75C) 23C(60C,70C) 27C(60C,70C)7 22C(60C,70C) 25C(32C,75C) 23C(60C,70C) 27C(60C,70C)1 (Switch-Eng) 27C(60C,70C) 26C(60C,70C) 23C(60C,70C) 27C(60C,70C)Chassis Modules------------------VTT1:27C(60C,70C)VTT2:26C(62C,75C)VTT3:25C(60C,70C)Console>
This example shows how to display environmental status information and details about the power available to the system:
Console> show environment all Environmental Status (. = Pass, F = Fail, U = Unknown, N = Not Present) PS1: . PS2: N PS1 Fan: . PS2 Fan: N Clock(A/B): A Chassis-Ser-EEPROM: . Fan: .Intake Exhaust Device 1 Device 2Slot Temperature Temperature Temperature Temperature--------------- ------------ ------------ ------------ ------------1 22C(60C,70C) 25C(32C,75C) 23C(60C,70C) 27C(60C,70C)3 27C(60C,70C) 26C(32C,75C) 23C(60C,70C) 27C(60C,70C)7 22C(60C,70C) 25C(32C,75C) 23C(60C,70C) 27C(60C,70C)1 (Switch-Eng) 27C(60C,70C) 26C(60C,70C) 23C(60C,70C) 27C(60C,70C)Chassis Modules------------------VTT1:27C(60C,70C)VTT2:26C(62C,75C)VTT3:25C(60C,70C)PS1 Capacity: 27.46 Amps PS2 Capacity: none PS Configuration : PS1 and PS2 in Redundant Configuration. Total Power Available for Line Card Usage: 27.46 Amps Slot power Requirement/Usage : Slot Card Type Power Required Power Allocated Card Status ---- ------------------- -------------- --------------- ----------- 2 WS-X6K-SUP1-2GE 2.00 A 2.00 A ok Console> (enable)
Use the show flash command to list Flash PC card information, including file code names, version numbers, and sizes.
show flash [[m/]device:] [all | chips | filesys]
m/ | (Optional) Module number of the supervisor engine containing the Flash device. |
device: | (Optional) Valid devices are bootflash and slot0. |
all | (Optional) Keyword to list deleted files, undeleted files, and files with errors on a Flash memory device. |
chips | (Optional) Keyword to show information about the Flash chip. |
filesys | (Optional) Keyword to show the Device Info Block, the Status Info, and the Usage Info. |
This command has no default setting.
Switch command.
Normal.
A colon (:) is required after the specified device.
The following examples show how to list supervisor engine Flash information:
Console> show flash
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
1 .D 2 2D6B310A 100fc0 15 1052123 Sep 30 1998 15:43:50 cat6k_r47_1.cbi
2 .. 2 43B312DF 201ed8 15 1052608 Sep 30 1998 10:23:30 cat6k_r47_1.cbi
6283877 bytes available (2104731 bytes used)
Console> show flash chips
******** Intel Series 2+ Status/Register Dump ********
ATTRIBUTE MEMORY REGISTERS:
Config Option Reg (4000): 2
Config Status Reg (4002): 0
Card Status Reg (4100): 1
Write Protect Reg (4104): 4
Voltage Cntrl Reg (410C): 0
Rdy/Busy Mode Reg (4140): 2
COMMON MEMORY REGISTERS: Bank 0
Intelligent ID Code : 8989A0A0
Compatible Status Reg: 8080
Global Status Reg: B0B0
Block Status Regs:
0 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
8 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
16 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
24 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
COMMON MEMORY REGISTERS: Bank 1
Intelligent ID Code : 8989A0A0
Compatible Status Reg: 8080
Global Status Reg: B0B0
Block Status Regs:
0 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
8 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
16 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
24 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
COMMON MEMORY REGISTERS: Bank 2
Intelligent ID Code : FF00FF
IID Not Intel -- assuming bank not populated
COMMON MEMORY REGISTERS: Bank 3
Console> show flash all
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
1 .D 2 2D6B310A 100fc0 15 1052123 Sep 30 1998 15:43:50 cat6k_r47_1.cbi
2 .. 2 43B312DF 201ed8 15 1052608 Sep 30 1998 10:23:30 cat6k_r47_1.cbi
6283877 bytes available (2104731 bytes used)
-------- F I L E S Y S T E M S T A T U S --------
Device Number = 0
DEVICE INFO BLOCK:
Magic Number = 6887635 File System Vers = 10000 (1.0)
Length = 800000 Sector Size = 20000
Programming Algorithm = 4 Erased State = FFFFFFFF
File System Offset = 20000 Length = 7A0000
MONLIB Offset = 100 Length = C730
Bad Sector Map Offset = 1FFF8 Length = 8
Squeeze Log Offset = 7C0000 Length = 20000
Squeeze Buffer Offset = 7E0000 Length = 20000
Num Spare Sectors = 0
Spares:
STATUS INFO:
Writable
NO File Open for Write
Complete Stats
No Unrecovered Errors
USAGE INFO:
Bytes Used = 201D9B Bytes Available = 5FE265
Bad Sectors = 0 Spared Sectors = 0
OK Files = 1 Bytes = 100FC0
Deleted Files = 1 Bytes = 100DDB
Files w/Errors = 0 Bytes = 0
******** Intel Series 2+ Status/Register Dump ********
ATTRIBUTE MEMORY REGISTERS:
Config Option Reg (4000): 2
Config Status Reg (4002): 0
Card Status Reg (4100): 1
Write Protect Reg (4104): 4
Voltage Cntrl Reg (410C): 0
Rdy/Busy Mode Reg (4140): 2
COMMON MEMORY REGISTERS: Bank 0
Intelligent ID Code : 8989A0A0
Compatible Status Reg: 8080
Global Status Reg: B0B0
Block Status Regs:
0 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
8 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
16 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
24 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
COMMON MEMORY REGISTERS: Bank 1
Intelligent ID Code : 8989A0A0
Compatible Status Reg: 8080
Global Status Reg: B0B0
Block Status Regs:
0 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
8 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
16 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
24 : B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0 B0B0
COMMON MEMORY REGISTERS: Bank 2
Intelligent ID Code : FF00FF
IID Not Intel -- assuming bank not populated
COMMON MEMORY REGISTERS: Bank 3
Intelligent ID Code : FF00FF
IID Not Intel -- assuming bank not populated
COMMON MEMORY REGISTERS: Bank 4
Intelligent ID Code : FF00FF
IID Not Intel -- assuming bank not populated
download
resetswitch
show version
upload
Use the show ifindex command to display the information of the specific ifIndex.
show ifindex number
number | Number of the ifIndex. |
This command has no default setting.
Switch command.
Normal.
You can designate multiple ifIndex numbers by separating each number with commas. To specify a range of numbers, use a dash (-) between the low and high numbers.
This example shows how to display ifIndex information:
Console> (enable)show ifindex 1,2,3,4-15,40-45Ifindex 1 is mapped to interface sc0.Ifindex 2 is mapped to interface sl0.Ifindex 3 is mapped to port 1/1.Ifindex 4 is mapped to port 1/2.Ifindex 5 is mapped to port 1/3.Ifindex 6 is mapped to port 1/4.Ifindex 7 is mapped to vlan 1.Ifindex 8 is mapped to vlan 1002.Ifindex 9 is mapped to vlan 1004.Ifindex 10 is mapped to vlan 1005.Ifindex 11 is mapped to vlan 1003.Ifindex 12 is mapped to port 9/1.Ifindex 13 is mapped to port 9/2.Ifindex 14 is mapped to port 9/3.Ifindex 15 is mapped to port 9/4.Ifindex 40 is mapped to port 8/5.Ifindex 41 is mapped to port 8/6.Ifindex 42 is mapped to port 8/7.Ifindex 43 is mapped to port 8/8.Ifindex 44 is mapped to port 8/9.Ifindex 45 is mapped to FEC-1/1-2.Console>
Use the show igmp statistics command to view IGMP statistics for a particular VLAN.
show igmp statistics [vlan_id]
vlan_id | (Optional) VLAN for which to show IGMP statistics. |
The default is, if no VLAN is specified, statistics for VLAN 1 are shown.
Switch command.
Normal.
This example shows how to view IGMP statistics for VLAN 1:
Console> show igmp statistics 1 IGMP enabled IGMP statistics for vlan 1: Total valid pkts rcvd: 18951 Total invalid pkts recvd 0 General Queries recvd 377 Group Specific Queries recvd 0 MAC-Based General Queries recvd 0 Leaves recvd 14 Reports recvd 16741 Queries Xmitted 0 GS Queries Xmitted 16 Reports Xmitted 0 Leaves Xmitted 0 Failures to add GDA to EARL 0 Topology Notifications rcvd 10 IGMP packets dropped 0 Console>
Table 2-9 describes the fields in the show igmp statistics output.
| Field | Description |
|---|---|
IGMP Enabled | Status of whether IGMP snooping is enabled or disabled. |
Total valid pkts rcvd | Number of valid IGMP packets received. |
Total invalid pkts recvd | Number of invalid IGMP packets received. |
General Queries recvd | Number of IGMP general queries received. |
Group Specific Queries recvd | Number of IGMP group-specific queries received. |
MAC-Based General Queries recvd | Number of MAC-based general queries received. |
Leaves recvd | Number of IGMP leaves received. |
Reports recvd | Number of IGMP reports received. |
Queries Xmitted | Number of IGMP general queries transmitted by the switch. |
GS Queries Xmitted | Number of IGMP group specific-equivalent queries transmitted by the switch. |
Reports Xmitted | Number of IGMP reports transmitted by the switch. |
Leaves Xmitted | Number of IGMP leaves transmitted by the switch. |
Failures to add GDA to EARL | Number of times the switch failed to add a multicast entry (GDA) to the EARL table. |
Topology Notifications rcvd | Number of topology change notifications received by the switch. |
IGMP packets dropped | Number of IGMP packets dropped by the switch. |
clear igmp statistics
clear multicast router
set igmp
set multicast router
show multicast router
show multicast group count
Use the show imagemib command to display image information provided in the CISCO-IMAGE-MIB for a particular image.
show imagemib filename
filename | Name of the Flash device on the supervisor engine. |
This command has no default setting.
Switch command.
Normal.
This example shows how to display CISCO-IMAGE-MIB information for the Flash image:
Console> (enable) show imagemib bootflash:cn50 show mib info for file bootflash:cn50 CW_BEGIN$cat6000$ CW_IMAGE$bootflash:cn50$ CW_FAMILY$Catalyst 6000 Switch$ CW_MODULE$Catalyst Supervisor Module$ CW_VERSION$cat6000-sup.5.1.1.CSX.bin$ CW_MIN_DRAM$ 32 MB$ CW_MIN_BOOTFLASH$ 8 MB$ CW_MIN_NVRAM$ 512 KB$ CW_BUILDTIME$ Nov 24 1998 00:32:33$ CW_SYSDESCR$Catalyst Operating System$ CW_END$cat6000$ Console>
Use the show interface command to display information on network interfaces.
show interfaceThis command has no arguments or keywords.
This command has no default setting.
Switch command.
Normal.
This example shows how to display sl0 and sc0:
Console> show interface
sl0: flags=51<UP,POINTOPOINT,RUNNING>
slip 0.0.0.0 dest 0.0.0.0
sc0: flags=63<UP,BROADCAST,RUNNING>
vlan 1 inet 172.16.25.130 netmask 255.255.0.0 broadcast 172.16.255.255
Console>
Table 2-10 describes the fields in the show interface command output.
| Field | Description |
|---|---|
sl0 | Information on the SLIP interface. |
flags | Flags indicating the interface state (decoded in the subsequent field). |
<UP,POINTOPOINT, RUNNING> | Interface state (UP, DOWN, BROADCAST, LOOPBACK, POINTOPOINT, or RUNNING). |
slip | IP address of the SLIP interface. |
dest | IP address of the host to which the console port will be connected. |
sc0 | Information on the in-band interface. |
vlan | Number of the VLAN to which the sc0 interface has been assigned (known as the management VLAN). |
inet | IP address of the interface. |
netmask | Network mask for the interface. |
broadcast | Broadcast address for the interface. |
|
|