Cisco ME 6500 Series Cisco IOS Command Reference, 12.2ZU
show cable-diag to show ip cache

Table Of Contents

show catalyst6000

show cdp neighbors

show cef interface policy-statistics

show class-map

show counters interface

show diagnostic

show diagnostic cns

show diagnostic sanity

show dot1q-tunnel

show dot1x

show dss log ip

show environment alarm

show environment cooling

show environment status

show environment temperature

show eobc

show erm statistics

show errdisable detect

show errdisable recovery

show etherchannel

show fm features

show fm inspect

show fm interface

show fm ipv6 traffic-filter

show fm nat netflow data

show fm summary

show icc

show idprom

show interfaces

show interfaces accounting

show interfaces capabilities

show interfaces counters

show interfaces debounce

show interfaces description

show interfaces flowcontrol

show interfaces private-vlan mapping

show interfaces status

show interfaces summary

show interfaces switchport

show interfaces switchport backup

show interfaces transceiver

show interfaces trunk

show interfaces vlan mapping

show ip arp inspection

show ip arp inspection log

show ipc

show ip cache flow

show ip cache verbose flow


22

show catalyst6000

To display the information about the Cisco ME 6500 series Ethernet switch, use the show catalyst6000 command.

show catalyst6000 {all | chassis-mac-address | switching-clock | traffic-meter}

Syntax Description

all

Displays the MAC-address ranges and the current and peak traffic-meter reading.

chassis-mac-address

Displays the MAC-address range.

switching-clock

Displays the failure recovery mode of the switching clock.

traffic-meter

Displays the percentage of the backplane (shared bus) utilization.


Defaults

all

Command Modes

EXEC

Command History

Release
Modification

12.2(18)ZU

Support for this command was introduced.


Usage Guidelines

The switching-clock keywords are not supported on the Cisco ME 6500 series Ethernet switch.

The Cisco ME 6500 series Ethernet switch has 64 MAC addresses that are available to support the software features. You can enter the show catalyst6000 chassis-mac-address command to display the MAC-address range on your chassis.

Examples

This example shows how to display the MAC-address ranges and the current and peak traffic-meter readings:

Router> show catalyst6000 all
  chassis MAC addresses: 64 addresses from 0001.6441.60c0 to 0001.6441.60ff
  traffic meter =   0%  Never cleared
           peak =   0%  reached at 08:14:38 UTC Wed Mar 19 2003
Router>                                                                    

This example shows how to display the MAC-address ranges:

Router# show catalyst6000 chassis-mac-address
  chassis MAC addresses: 64 addresses from 00d0.004c.1800 to 00d0.004c.1c00
Router#    

This example shows how to display the current and peak traffic-meter readings:

Router> show catalyst6000 traffic-meter
  traffic meter =   0%  Never cleared
           peak =   0%        reached at 10:21:48 PST Mon Mar 13 2006
Router# 

show cdp neighbors

To display detailed information about the neighboring devices that are discovered through CDP, use the show cdp neighbors command.

show cdp neighbors [type number] [detail]

Syntax Description

type

(Optional) Interface type that is connected to the neighbors about which you want information; the valid value is gigabitethernet.

number

(Optional) Interface number that is connected to the neighbors about which you want information.

detail

(Optional) Displays detailed information about a neighbor (or neighbors) including the network address, enabled protocols, the hold time, and the software version.


Defaults

This command has no default settings.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.2(18)ZU

Support for this command was introduced.


Examples

This example shows how to display the information about the CDP neighbors:

Router# show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
lab-7206         Eth 0              157          R        7206VXR   Fas 0/0/0
lab-as5300-1     Eth 0              163          R        AS5300    Fas 0
lab-as5300-2     Eth 0              159          R        AS5300    Eth 0
lab-as5300-3     Eth 0              122          R        AS5300    Eth 0
lab-as5300-4     Eth 0              132          R        AS5300    Fas 0/0
lab-3621         Eth 0              140         R S       3631-telcoFas 0/0
008024 2758E0    Eth 0              132          T        CAT3000   1/2

Table 2-29 describes the fields that are shown in the example.

Table 2-29 show cdp neighbors Field Descriptions

Field
Definition

Device ID

Configured ID (name), MAC address, or serial number of the neighbor device.

Local Intrfce

(Local Interface) The protocol that is used by the connectivity media.

Holdtme

(Holdtime) Remaining amount of time, in seconds, that the current device holds the CDP advertisement from a transmitting router before discarding it.

Capability

Capability code that is discovered on the device. This device type is listed in the CDP Neighbors table. Possible values are as follows:

R—Router

T—Transparent bridge

B—Source-routing bridge

S—Switch

H—Host

I—IGMP device

r—Repeater

P—Phone

Platform

Product number of the device.

Port ID

Protocol and port number of the device.


This example shows how to display detailed information about your CDP neighbors:

Router# show cdp neighbors detail
-------------------------
Device ID: lab-7206
Entry address(es):
  IP address: 172.19.169.83
Platform: cisco 7206VXR,  Capabilities: Router
Interface: Ethernet0,  Port ID (outgoing port): Gigabitethernet0/0/0
Holdtime : 123 sec

Version :
Cisco Internetwork Operating System Software
IOS (tm) 5800 Software (C5800-P4-M), Version 12.1(2)
Copyright (c) 1986-2002 by Cisco Systems, Inc.

advertisement version: 2
Duplex: half

-------------------------
Device ID: lab-as5300-1
Entry address(es):
  IP address: 172.19.169.87
.
.
.

Table 2-30 describes the fields that are shown in the example.

Table 2-30 show cdp neighbors detail Field Descriptions 

Field
Definition

Device ID

Name of the neighbor device and either the MAC address or the serial number of this device.

Entry address(es)

List of network addresses of neighbor devices.

[network protocol] address

Network address of the neighbor device. The address can be in IP, IPX, AppleTalk, DECnet, or CLNS protocol conventions.

Platform

Product name and number of the neighbor device.

Capabilities

Device type of the neighbor. This device can be a router, a bridge, a transparent bridge, a source-routing bridge, a switch, a host, an IGMP device, or a repeater.

Interface

Protocol and port number of the port on the current device.

Holdtime

Remaining amount of time, in seconds, that the current device holds the CDP advertisement from a transmitting router before discarding it.

Version:

Software version running on the neighbor device.

advertisement version:

Version of CDP that is being used for CDP advertisements.

Duplex:

Duplex state of connection between the current device and the neighbor device.


Related Commands

Command
Description

show cdp

Displays global CDP information.

show cdp entry

Displays information about a specific neighboring device discovered using CDP.

show cdp interface

Displays information about the interfaces on which CDP is enabled.

show cdp traffic

Displays information about traffic between devices gathered using CDP.


show cef interface policy-statistics

To display the per-interface traffic statistics, use the show cef interface policy-statistics command.

show cef interface policy-statistics

Syntax Description

This command has no keywords or arguments.

Defaults

This command has no default settings.

Command Modes

User EXEC

Command History

Release
Modification

12.2(18)ZU

Support for this command was introduced.


Examples

This example shows how to display the per-interface traffic statistics:

Router# show cef interface policy-statistics
POS7/0 is up (if_number 7)
Bucket    Packets   Bytes
1         0         0
2         0         0
3         0         0
4         0         0
5         100       10000
6         0         0
7         0         0
8         0         0
Router#

show class-map

To display class-map information, use the show class-map command.

show class-map [class-name]

Syntax Description

class-name

(Optional) Name of the class map.


Defaults

This command has no default settings.

Command Modes

EXEC

Command History

Release
Modification

12.2(18)ZU

Support for this command was introduced.


Examples

This example shows how to display class-map information for all class maps:

Router# show class-map 
 Class Map match-any class-default (id 0)
   Match any
 Class Map match-any class-simple (id 2)
   Match any
 Class Map match-all ipp5 (id 1)
   Match ip precedence 5

 Class Map match-all agg-2 (id 3)

Router#

This example shows how to display class-map information for a specific class map:

Router# show class-map ipp5
 Class Map match-all ipp5 (id 1)
   Match ip precedence 5

Router#   

Related Commands

Command
Description

class-map

Accesses the QoS class map configuration mode to configure QoS class maps.

show policy-map

Displays information about the policy map.

show policy-map interface

Displays the statistics and the configurations of the input and output policies that are attached to an interface.


show counters interface

To display the information about the interface counter, use the show counters interface command.

show counters interface {type mod/port} [delta]

Syntax Description

type

Interface type; the valid value is gigabitethernet.

mod/port

Module and port number; the valid value is 1/N where N is the port number.

delta

(Optional) Displays the interface counters values since the last clear counters command.


Defaults

This command has no default settings.

Command Modes

EXEC

Command History

Release
Modification

12.2(18)ZU

Support for this command was introduced.


Usage Guidelines

The show counters interface command is not supported on SVIs.

The show counters interface delta command displays a detailed list of the last-saved counter values.

Examples

This example shows how to display the information about the interface counter:

Router# show counters interface gigabitethernet 1/2
64 bit counters:
 0.                      rxHCTotalPkts = 182576
 1.                      txHCTotalPkts = 5394
 2.                    rxHCUnicastPkts = 582
 3.                    txHCUnicastPkts = 9
 4.                  rxHCMulticastPkts = 177001
 5.                  txHCMulticastPkts = 5383
 6.                  rxHCBroadcastPkts = 4993
 7.                  txHCBroadcastPkts = 2
 8.                         rxHCOctets = 13819482
 9.                         txHCOctets = 2133678
10.                 rxTxHCPkts64Octets = 167081
11.            rxTxHCPkts65to127Octets = 9868
12.           rxTxHCPkts128to255Octets = 0
13.           rxTxHCPkts256to511Octets = 11021
14.          rxTxHCpkts512to1023Octets = 0
15.         rxTxHCpkts1024to1518Octets = 0
16.                    txHCTrunkFrames = 0
17.                    rxHCTrunkFrames = 0
18.                     rxHCDropEvents = 10473

32 bit counters:
 0.                   rxCRCAlignErrors = 0
 1.                   rxUndersizedPkts = 0
 2.                    rxOversizedPkts = 0
 3.                     rxFragmentPkts = 0
 4.                          rxJabbers = 0
 5.                       txCollisions = 0
 6.                         ifInErrors = 0
 7.                        ifOutErrors = 0
 8.                       ifInDiscards = 0
 9.                  ifInUnknownProtos = 0
10.                      ifOutDiscards = 0
11.            txDelayExceededDiscards = 0
12.                              txCRC = 0
13.                         linkChange = 0
14.                   wrongEncapFrames = 0
All Port Counters
 1.                          InPackets = 182580
 2.                           InOctets = 13820100
 3.                        InUcastPkts = 582
 4.                        InMcastPkts = 177005
 5.                        InBcastPkts = 4993
 6.                         OutPackets = 5394
 7.                          OutOctets = 2133678
 8.                       OutUcastPkts = 9
 9.                       OutMcastPkts = 5383
10.                       OutBcastPkts = 2
11.                           AlignErr = 0
12.                             FCSErr = 0
13.                            XmitErr = 0
14.                             RcvErr = 0
15.                          UnderSize = 0
16.                          SingleCol = 0
17.                           MultiCol = 0
18.                            LateCol = 0
19.                       ExcessiveCol = 0
20.                       CarrierSense = 0
21.                              Runts = 0
22.                             Giants = 0
23.                         InDiscards = 0
24.                        OutDiscards = 0
25.                           InErrors = 0
26.                          OutErrors = 0
27.                    InUnknownProtos = 0
28.                              txCRC = 0
29.                      TrunkFramesTx = 0
30.                      TrunkFramesRx = 0
31.                         WrongEncap = 0
32.     Broadcast_suppression_discards = 0
33.     Multicast_suppression_discards = 0
34.       Unicast_suppression_discards = 0
35.                 rxTxHCPkts64Octets = 167084
36.            rxTxHCPkts65to127Octets = 9868
37.           rxTxHCPkts128to255Octets = 0
38.           rxTxHCPkts256to511Octets = 11022
39.          rxTxHCpkts512to1023Octets = 0
40.         rxTxHCpkts1024to1518Octets = 0
41.                         DropEvents = 10473
42.                     CRCAlignErrors = 0
43.                     UndersizedPkts = 0
44.                      OversizedPkts = 0
45.                       FragmentPkts = 0
46.                            Jabbers = 0
47.                         Collisions = 0
48.              DelayExceededDiscards = 0
49.                        bpduOutlost = 0
50.                        qos0Outlost = 0
51.                        qos1Outlost = 0
52.                        qos2Outlost = 0
53.                        qos3Outlost = 0
54.                        qos4Outlost = 0
55.                        qos5Outlost = 0
56.                        qos6Outlost = 0
57.                        qos7Outlost = 0
58.                        qos8Outlost = 0
59.                        qos9Outlost = 0
60.                       qos10Outlost = 0
61.                       qos11Outlost = 0
62.                       qos12Outlost = 0
63.                       qos13Outlost = 0
64.                       qos14Outlost = 0
65.                       qos15Outlost = 0
66.                       qos16Outlost = 0
67.                       qos17Outlost = 0
68.                       qos18Outlost = 0
69.                       qos19Outlost = 0
70.                       qos20Outlost = 0
71.                       qos21Outlost = 0
72.                       qos22Outlost = 0
73.                       qos23Outlost = 0
74.                       qos24Outlost = 0
75.                       qos25Outlost = 0
76.                       qos26Outlost = 0
77.                       qos27Outlost = 0
78.                       qos28Outlost = 0
79.                       qos29Outlost = 0
80.                       qos30Outlost = 0
81.                       qos31Outlost = 0
82.                    bpduCbicOutlost = 0
83.                    qos0CbicOutlost = 0
84.                    qos1CbicOutlost = 0
85.                    qos2CbicOutlost = 0
86.                    qos3CbicOutlost = 0
87.                         bpduInlost = 0
88.                         qos0Inlost = 0
89.                         qos1Inlost = 0
90.                         qos2Inlost = 0
91.                         qos3Inlost = 0
92.                         qos4Inlost = 0
93.                         qos5Inlost = 0
94.                         qos6Inlost = 0
95.                         qos7Inlost = 0
96.                         qos8Inlost = 0
97.                         qos9Inlost = 0
98.                        qos10Inlost = 0
99.                        qos11Inlost = 0
100.                        qos12Inlost = 0
101.                        qos13Inlost = 0
102.                        qos14Inlost = 0
103.                        qos15Inlost = 0
104.                         pqueInlost = 0
105.                           Overruns = 0
106.                           maxIndex = 0
Router#

This example shows how to display the values for the interface counters since the last clear counters command:

Router# show counters interface gigabitethernet1/2 delta 
Time since last clear
---------------------
never

64 bit counters:
 0.                      rxHCTotalPkts = 182638
 1.                      txHCTotalPkts = 5396
 2.                    rxHCUnicastPkts = 582
 3.                    txHCUnicastPkts = 9
 4.                  rxHCMulticastPkts = 177061
.
.
.
Router#

Related Commands

Command
Description

clear counters

Clears the interface counters.


show diagnostic

To view the test results of the online diagnostics and list the supported test suites, use the show diagnostic command.

show diagnostic bootup level

show diagnostic content [module num]

show diagnostic events [module num] [event-type event-type]

show diagnostic {ondemand settings}

show diagnostic {result [module num] [detail]}

show diagnostic schedule [module num]

Syntax Description

bootup level

Displays the coverage level for the configured boot-up diagnostics.

content

Displays test information including test ID, test attributes, and supported coverage test levels for each test and for all modules.

module num

(Optional) Specifies the module number; the valid value is 1.

events

Displays the event log for the diagnostic events.

event-type event-type

(Optional) Specifies the event type; valid values are error, info, and warning.

ondemand settings

Displays the settings for the ondemand diagnostics.

result

Displays the test results.

detail

(Optional) Displays the test statistics of each test.

schedule

Displays the current scheduled diagnostic tasks.


Defaults

This command has no default settings.

Command Modes

EXEC

Command History

Release
Modification

12.2(18)ZU

Support for this command was introduced.


Usage Guidelines

If you do not enter a module num, information for all modules is displayed.

In the command output, the possible testing results are as follows:

Passed (.)

Failed (F)

Unknown (U)

Examples

This example shows how to display the test suite and the monitoring interval and test attributes:

Router# show diagnostic content module 1
Module 1: Cisco ME 6524 Ethernet Switch (Active)

  Diagnostics test suite attributes:
    M/C/* - Minimal bootup level test / Complete bootup level test / NA
      B/* - Basic ondemand test / NA
    P/V/* - Per port test / Per device test / NA
    D/N/* - Disruptive test / Non-disruptive test / NA
      S/* - Only applicable to standby unit / NA
      X/* - Not a health monitoring test / NA
      F/* - Fixed monitoring interval test / NA
      E/* - Always enabled monitoring test / NA
      A/I - Monitoring is active / Monitoring is inactive
      R/* - Power-down line cards and need reset supervisor / NA
      K/* - Require resetting the line card after the test has completed / NA
      T/* - Shut down all ports and need reset supervisor / NA

                                                          Testing Interval
  ID   Test Name                          Attributes      (day hh:mm:ss.ms)
  ==== ================================== ============    =================
    1) TestTransceiverIntegrity --------> **PD****I***    not configured 
    2) TestScratchRegister -------------> ***N****A***    000 00:00:30.00
    3) TestNonDisruptiveLoopback -------> **PN****A***    000 00:00:05.00
    4) TestLoopback --------------------> M*PD****I***    not configured 
    5) TestNewIndexLearn ---------------> M**N****I***    not configured 
    6) TestDontConditionalLearn --------> M**N****I***    not configured 
    7) TestBadBpduTrap -----------------> M**D****I***    not configured 
    8) TestMatchCapture ----------------> M**D****I***    not configured 
    9) TestProtocolMatchChannel --------> M**D****I***    not configured 
   10) TestFibDevices ------------------> M**N****I***    not configured 
   11) TestIPv4FibShortcut -------------> M**N****I***    not configured 
   12) TestL3Capture2 ------------------> M**N****I***    not configured 
   13) TestIPv6FibShortcut -------------> M**N****I***    not configured 
   14) TestMPLSFibShortcut -------------> M**N****I***    not configured 
   15) TestNATFibShortcut --------------> M**N****I***    not configured 
   16) TestAclPermit -------------------> M**N****I***    not configured 
   17) TestAclDeny ---------------------> M**N****A***    000 00:00:05.00
   18) TestQoSTcam ---------------------> M**D****I***    not configured 
   19) TestL3VlanMet -------------------> M**N****I***    not configured 
   20) TestIngressSpan -----------------> M**N****I***    not configured 
   21) TestEgressSpan ------------------> M**N****I***    not configured 
   22) TestNetflowInlineRewrite --------> C*PD****I***    not configured 
   23) TestFibTcamSSRAM ----------------> ***D****IR**    not configured 
   24) TestAsicMemory ------------------> ***D****IR**    not configured 
   25) TestAclQosTcam ------------------> ***D****IR**    not configured 
   26) TestNetflowTcam -----------------> ***D****IR**    not configured 
   27) FirmwareDiagStatus --------------> M**N****I***    not configured 
Router# 

This example shows how to display the configured boot-up diagnostic level:

Router# show diagnostic bootup level 
Current Bootup Diagnostic Level = Complete
Router# 

This example shows how to display the event log for the diagnostics:

Router# show diagnostic events
Diagnostic events (storage for 500 events, 1 events recorded)
Event Type (ET): I - Info, W - Warning, E - Error

Time Stamp         ET [Card] Event Message
------------------ -- --------------------------------------------------------
03/08 21:39:36.311 I  [1] Diagnostics Passed
Router# 

This example shows how to display the settings for the ondemand diagnostics:

Router# show diagnostic ondemand settings 
Ondemand Run Iteration   = 2
Ondemand Action-on-Error = CONTINUE
Router# 

This example shows how to display the current scheduled diagnostic tasks for the specified slot:

Router# show diagnostic schedule module 1
Current Time = 07:55:30 UTC Fri August 2 2002

Diagnostic for Module 1:

Schedule #1:
        To be run on January 3 2006 23:32 
        Test ID(s) to be executed:1.

Schedule #2:
        To be run daily 14:45
        Test ID(s) to be executed:2.

Schedule #3:
        To be run weekly Monday 3:33
        Test ID(s) to be executed:all.
Router#

This example shows how to display the testing results for the specified slot:

Router# show diagnostic result module 1

Current bootup diagnostic level: minimal

Module 1: Cisco ME 6524 Ethernet Switch (Active)  SerialNo : CSJ09515511

  Overall Diagnostic Result for Module 1 : PASS
  Diagnostic level at card bootup: minimal

  Test results: (. = Pass, F = Fail, U = Untested)

    1) TestTransceiverIntegrity: 

      Port 25 26 27 28 29 30 31 32
      ----------------------------
            .  U  U  U  U  U  U  U 


    2) TestScratchRegister -------------> .
    3) TestNonDisruptiveLoopback: 

   Port  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
   ----------------------------------------------------------------------------
         .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
   Port 25 26 27 28 29 30 31 32
   ----------------------------
         U  U  U  U  U  U  U  U 


    4) TestLoopback: 

   Port  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
   ----------------------------------------------------------------------------
         .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 

   Port 25 26 27 28 29 30 31 32
   ----------------------------
         .  .  .  .  .  .  .  . 


    5) TestNewIndexLearn ---------------> .
    6) TestDontConditionalLearn --------> .
    7) TestBadBpduTrap -----------------> .
    8) TestMatchCapture ----------------> .
    9) TestProtocolMatchChannel --------> .
   10) TestFibDevices ------------------> .
   11) TestIPv4FibShortcut -------------> .
   12) TestL3Capture2 ------------------> .
   13) TestIPv6FibShortcut -------------> .
   14) TestMPLSFibShortcut -------------> .
   15) TestNATFibShortcut --------------> .
   16) TestAclPermit -------------------> .
   17) TestAclDeny ---------------------> .
   18) TestQoSTcam ---------------------> .
   19) TestL3VlanMet -------------------> .
   20) TestIngressSpan -----------------> .
   21) TestEgressSpan ------------------> .
   22) TestNetflowInlineRewrite: 

   Port  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
   ----------------------------------------------------------------------------
         U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U 

   Port 25 26 27 28 29 30 31 32
   ----------------------------
         U  U  U  U  U  U  U  U 


   23) TestFibTcamSSRAM ----------------> U
   24) TestAsicMemory ------------------> U
   25) TestAclQosTcam ------------------> U
   26) TestNetflowTcam -----------------> U
   27) FirmwareDiagStatus --------------> .
Router# 

This example shows how to display the detailed testing results for the specified slot:

Router# show diagnostic result module 1 detail
Current bootup diagnostic level: minimal

Module 1: Cisco ME 6524 Ethernet Switch (Active)  SerialNo : CSJ09515511

  Overall Diagnostic Result for Module 1 : PASS
  Diagnostic level at card bootup: minimal

  Test results: (. = Pass, F = Fail, U = Untested)

    1) TestTransceiverIntegrity: 

      Port 25 26 27 28 29 30 31 32
      ----------------------------
            .  U  U  U  U  U  U  U 


    2) TestScratchRegister -------------> .
    3) TestNonDisruptiveLoopback: 

   Port  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
   ----------------------------------------------------------------------------
         .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 
   Port 25 26 27 28 29 30 31 32
   ----------------------------
         U  U  U  U  U  U  U  U 


    4) TestLoopback: 

   Port  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
   ----------------------------------------------------------------------------
         .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . 

   Port 25 26 27 28 29 30 31 32
   ----------------------------
         .  .  .  .  .  .  .  . 


    5) TestNewIndexLearn ---------------> .
    6) TestDontConditionalLearn --------> .
    7) TestBadBpduTrap -----------------> .
    8) TestMatchCapture ----------------> .
    9) TestProtocolMatchChannel --------> .
   10) TestFibDevices ------------------> .
   11) TestIPv4FibShortcut -------------> .
   12) TestL3Capture2 ------------------> .
   13) TestIPv6FibShortcut -------------> .
   14) TestMPLSFibShortcut -------------> .
   15) TestNATFibShortcut --------------> .
   16) TestAclPermit -------------------> .
   17) TestAclDeny ---------------------> .
   18) TestQoSTcam ---------------------> .
   19) TestL3VlanMet -------------------> .
   20) TestIngressSpan -----------------> .
   21) TestEgressSpan ------------------> .
   22) TestNetflowInlineRewrite: 

   Port  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
   ----------------------------------------------------------------------------
         U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U  U 

   Port 25 26 27 28 29 30 31 32
   ----------------------------
         U  U  U  U  U  U  U  U 


   23) TestFibTcamSSRAM ----------------> U
   24) TestAsicMemory ------------------> U
   25) TestAclQosTcam ------------------> U
   26) TestNetflowTcam -----------------> U
   27) FirmwareDiagStatus --------------> .
Router# 

This example shows how to display the event logs for the diagnostics:

Router# show diagnostic events
Diagnostic events (storage for 500 events, 1 events recorded)
Event Type (ET): I - Info, W - Warning, E - Error

Time Stamp         ET [Card] Event Message
------------------ -- --------------------------------------------------------
03/08 21:39:36.311 I  [1] Diagnostics Passed
Router# 

Related Commands

Command
Description

diagnostic bootup level

Sets the bootup diagnostic level.

diagnostic cns

Configures the CNS diagnostics.

diagnostic event-log size

Modifies the diagnostic event-log size dynamically.

diagnostic monitor

Configures the health-monitoring diagnostic testing.

diagnostic ondemand

Configures the ondemand diagnostics.

diagnostic schedule test

Sets the scheduling of test-based diagnostic testing for a specific module or schedules a supervisor engine switchover.

diagnostic start

Runs the specified diagnostic test.

diagnostic stop

Stops the testing process.


show diagnostic cns

To display the information about the CNS subject, use the show diagnostic cns command.

show diagnostic cns {publish | subscribe}

Syntax Description

publish

Displays the subject with which the diagnostic results is published.

subscribe

Displays the subscribed subjects.


Defaults

This command has no default settings.

Command Modes

EXEC

Command History

Release
Modification

12.2(18)ZU

Support for this command was introduced.


Usage Guidelines

The CNS subsystem communicates with remote network applications through the CNS-event agent and follows the publish and subscribe model. An application sets itself up to receive events by subscribing to the approprate event subject name.

Examples

This example shows how to display the subject with which the diagnostic results is published:

Router# show diagnostic cns publish 
Subject: cisco.cns.device.diag_results 
Router# 

This example shows how to display the subscribed subject:

Router# show diagnostic cns subscribe 
Subject: cisco.cns.device.diag_get_results
Router# 

Related Commands

Command
Description

diagnostic cns

Configures the CNS diagnostics.


show diagnostic sanity

To display sanity check results, use the show diagnostic sanity command.

show diagnostic sanity

Syntax Description

This command has no arguments or keywords.

Defaults

This command has no default settings.

Command Modes

Privileged EXEC

Command History

Release
Modification

12.2(18)ZU

Support for this command was introduced.


Usage Guidelines

The sanity check runs a set of predetermined checks on the configuration with a possible combination of certain system states to compile a list of warning conditions. The checks are designed to look for anything that seems out of place and are intended to serve as an aid to maintaining the system sanity.

The following is a list of the checks that are run and the action taken when the condition is found:

Checks whether the default gateways are reachable. If so, the system stops pinging.

If a port autonegotiates to half duplex, the system flags it.

Trunking Checks

If a trunk port has the mode set to on, the system flags it.

If a port is trunking and mode is auto, the system flags it.

If a trunk port is not trunking and the mode is desirable, the system flags it.

If a trunk port negotiates to half duplex, the system flags it.

Channeling Checks

If a port has channeling mode set to on, the system flags it.

If a port is not channeling and the mode is set to desirable, the system flags it.

If a VLAN has a spanning-tree root of 32K (root is not set), the system flags it.

Spanning-tree VLAN Checks

If a VLAN has a max age on the spanning-tree root that is different than the default, the system flags it.

If a VLAN has a fwd delay on the spanning-tree root that is different than the default, the system flags it.

If a VLAN has a fwd delay on the bridge that is different than the default, the system flags it.

If a VLAN has a fwd delay on the bridge that is different than the default, the system flags it.

If a VLAN has a hello time on the bridge that is different than the default, the system flags it.

Spanning-tree Port Checks

If a port has a port cost that is different than the default, the system flags it.

If a port has a port priority that is different than the default, the system flags it.

UDLD Checks

If a port has UDLD disabled, the system flags it.

If a port had UDLD shut down, the system flags it.

If a port had a UDLD undetermined state, the system flags it.

Assorted Port Checks

If a port had receive flow control disabled, the system flags it.

If a trunk port had PortFast enabled, the system flags it.

The system flags it, if an inline power port has any of the following states:

denied

faulty

other

off

If a port has a native VLAN mismatch, the system flags it.

If a port has a duplex mismatch, the system flags it.

Bootstring and Config Register Checks

The config register on the primary supervisor engine (and on the secondary supervisor engine if present) must be one of the following values: 0x2 , 0x102, or 0x2102.

The system verifies the bootstring on the primary supervisor engine (and on the secondary supervisor engine if present). The system displays a message if the bootstring is empty.

The system verifies that every file is specified in the bootstring. The system displays a message if the file is absent or shows up with a wrong checksum.

If only device: is specified as a filename, then the system verifies that the first file is on the device.

Assorted Checks

The system displays a message if IGMP snooping is disabled.

The system displays a message if any of the values of the snmp community access strings {RO,RW,RW-ALL} is the same as the default.

The system displays a message if any of the modules are in states other than "Ok."

The system displays a message that lists all the tests that failed (displayed as an "F") in the show test all command.

The system displays a message if *fast is not configured on the switch anywhere.

The system displays a message if there is enough room for the crashinfo file on the bootflash:.

The system displays a message if multicast routing is enabled globally but is not applied to all interfaces.

The system displays a message if IGMP snooping is disabled and RGMP is enabled.

Examples

This example displays samples of the messages that could be displayed with the show diagnostic sanity command:

Router# show diagnostic sanity
Pinging default gateway 10.6.141.1 ....
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.6.141.1, timeout is 2 seconds:
..!!.
Success rate is 0 percent (0/5)

IGMP snooping disabled please enable it for optimum config.

IGMP snooping disabled but RGMP enabled on the following interfaces,
please enable IGMP for proper config : 
Vlan1, Vlan2, GigabitEthernet1/1

Multicast routing is enabled globally but not enabled on the following 
interfaces:
GigabitEthernet1/1, GigabitEthernet1/2

A programming algorithm mismatch was found on the device bootflash:
Formatting the device is recommended.

The bootflash: does not have enough free space to accomodate the crashinfo file. 

Please check your confreg value : 0x0.

Please check your confreg value on standby: 0x0.

The boot string is empty. Please enter a valid boot string .
Could not verify boot image "disk0:" specified in the boot string on the
slave.

Invalid boot image "bootflash:asdasd" specified in the boot string on the
slave.

Please check your boot string on the slave.

UDLD has been disabled globally - port-level UDLD sanity checks are 
being bypassed.
OR
[
The following ports have UDLD disabled. Please enable UDLD for optimum
config: