- show diagnostic bootup level
- show diagnostic result
- show hosts
- show ip dns source-interface
- show logging console
- show logging info
- show logging last
- show logging level
- show logging logfile
- show logging module
- show logging monitor
- show logging nvram
- show logging onboard
- show logging pending
- show logging pending-diff
- show logging session status
- show logging server
- show logging status
- show logging timestamp
- show ntp authentication-status
- show ntp peer-status
- show ntp peers
- show ntp statistics
- show ntp timestamp-status
- show ptp brief
- show ptp clock
- show ptp clocks foreign-masters-record
- show ptp corrections
- show ptp parent
- show ptp port interface
- show ptp time-property
- show snmp community
- show snmp context
- show snmp engineID
- show snmp group
- show snmp host
- show snmp sessions
- show snmp trap
- show snmp user
- show system ethernet dom polling status
Show Commands
show diagnostic bootup level
To display the current bootup diagnostic level on the switch, use the show diagnostic bootup level command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to display the current bootup diagnostic level:
Related Commands
|
|
---|---|
Configures the bootup diagnostic level for a faster module bootup time. |
|
show diagnostic result
To display the results of the diagnostic tests, use the show diagnostic result command.
show diagnostic result module { module-no | all }
Syntax Description
Specifies the module for which diagnostic results are displayed. |
|
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to display the diagnostic results for a specific module:
Related Commands
|
|
---|---|
Configures the bootup diagnostic level for a faster module bootup time. |
|
show hosts
To display the Domain Name Server (DNS) name servers and domain names, use the show hosts command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to display the IP addresses of the DNS servers that are used to resolve host names:
Related Commands
|
|
---|---|
show ip dns source-interface
To display the source interfaces configured for Domain Name Server (DNS) domain lookup, use the show ip dns source-interface command.
show ip dns source-interface [ vrf { vrf-name | all | default | management }]
Syntax Description
(Optional) Displays information about the virtual routing and forwarding (VRF) instance. |
|
(Optional) VRF name. The name is case sensitive and can be a maximum of 32 characters. |
|
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to display the source interfaces configured for DNS domain lookup:
Related Commands
|
|
---|---|
show logging console
To display the console logging configuration, use the show logging console command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the console logging configuration:
Related Commands
|
|
---|---|
show logging info
To display the logging configuration, use the show logging info command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the logging configuration:
Related Commands
|
|
---|---|
show logging last
To display the last number of lines of the logfile, use the show logging last command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the last 42 lines of the log file:
Related Commands
|
|
---|---|
show logging level
To display the facility logging severity level configuration, use the show logging level command.
show logging level [ facility ]
Syntax Description
(Optional) Logging facility. The facilities are listed in Table 1-1 of Appendix 1, “System Message Logging Facilities.” |
Command Default
Command Modes
Command History
|
|
Support for multicast and unicast routing features was added. |
|
Support for Flex Links and Fibre Channel over Ethernet (FCoE) N-Port Virtualizer (NPV) was added. |
Examples
This example shows how to display the EtherChannel logging severity level configuration:
This example shows how to display the Flex Links logging severity level configuration:
This example shows how to display the FCoE NPV logging severity level configuration:
Related Commands
|
|
---|---|
show logging logfile
To display the messages in the log file that were timestamped within the span entered, use the show logging logfile command.
show logging logfile [ start-time yyyy mmm dd hh : mm : ss ] [ end-time yyyy mmm dd hh : mm : ss ]
Syntax Description
Command Default
Command Modes
Command History
|
|
Usage Guidelines
Examples
This example shows how to display the messages in the log file that were timestamped within the span shown:
Related Commands
|
|
---|---|
show logging module
To display the module logging configuration, use the show logging module command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the module logging configuration:
Related Commands
|
|
---|---|
show logging monitor
To display the monitor logging configuration, use the show logging monitor command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the monitor logging configuration:
Related Commands
|
|
---|---|
show logging nvram
To display the messages in the nonvolatile random access memory (NVRAM) log, use the show logging nvram command.
show logging nvram [ last number-lines ]
Syntax Description
(Optional) Specifies the number of lines to display. The number of lines is from 1 to 100. |
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the last 20 messages in the NVRAM log:
Related Commands
|
|
---|---|
show logging onboard
To display the onboard logging information based on the error type, use the show logging onboard command.
show logging onboard { boot-uptime | device-version | endtime | environmental-history | exception-log | kernel-trace | obfl-history | obfl-logs | stack-trace | starttime | status } [ > file | | type ]
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The date and time arguments for the starttime and endtime keywords are entered as the date month/day/year ( mm / dd / yy ), followed by a hyphen, and the time in 24-hour format in hours:minutes:seconds ( HH:MM:SS). For example:
The valid values for file are as follows:
The valid values for type are as follows:
– -i —Ignores the case difference when comparing the strings.
– -x —Prints only the lines where the match is a whole line.
– word —Specifies for the expression.
- count [ > file | | type ] —Counts number of lines.
- egrep | grep print-match —Egrep or Grep. Egrep searches for lines of text that match more sophisticated regular expression syntax than grep. Grep searches for lines of text that match one or many regular expressions, and outputs only the matching lines.
– -A num —Prints the specifies number of lines of context after every matching line. Range: 1 to 999.
– -B num —Prints the specifies number of lines of context before every matching line. Range: 1 to 999.
– -c —Prints a total count of matching lines only.
– -i —Ignores the case difference when comparing the strings.
– -n —Prints each match preceded by its line number.
– -v —Prints only the lines that contain no matches for the word argument.
– -w —Prints only lines where the match is a complete word.
– -x —Prints only the lines where the match is a whole line.
– word —Specifies for the expression.
– -i —Ignores the case difference when comparing the strings.
– -x —Prints only the lines where the match is a whole line.
– word —Specifies for the expression.
- head [ -n num ] —Stream Editor. The optional -n num keyword and argument allow you to specify the number of lines to print. Range: 0 to 2147483647.
- include [ -i ] [ -x ] [ word ] —Include the lines that match.
– -i —Ignores the case difference when comparing the strings.
– -x —Prints only the lines where the match is a whole line.
– word —Specifies for the expression.
- last [ num ] —Displays the last lines to print. The optional num specifies the number of lines to print. Range: 0 to 9999.
- less [-E | -d ]—Quits at the end of the file.
– -E —(Optional) Quits at the end of the file.
– -d —(Optional) Specifies a dumb terminal.
- no-more —Turns-off pagination for command output.
- sed command —Stream Editor
- wc —Counts words, lines, and characters.
– -c —(Optional) Specifies the output character count.
– -l —(Optional) Specifies the output line count.
– -w —(Optional) Specifies the output word count.
– | —Pipes command output to filter.
Use this command to view OBFL data from the system hardware. The OBFL feature is enabled by default and records operating temperatures, hardware uptime, interrupts, and other important events and messages that can assist with diagnosing problems with hardware cards or modules installed in a Cisco router or switch. Data is logged to files stored in nonvolatile memory. When the onboard hardware is started up, a first record is made for each area monitored and becomes a base value for subsequent records.
The OBFL feature provides a circular updating scheme for collecting continuous records and archiving older (historical) records, ensuring accurate data about the system. Data is recorded in one of two formats: continuous information that displays a snapshot of measurements and samples in a continuous file, and summary information that provides details about the data being collected. The message “No historical data to display” is seen when historical data is not available.
Examples
This example shows how to display the OBFL boot and uptime information:
Table 1 describes the significant fields shown in the display.
|
|
---|---|
This example shows how to display the OBFL logging device information:
Table 2 describes the significant fields shown in the display.
|
|
---|---|
This example shows how to display the OBFL history information:
The show logging onboard obfl-history command displays the following information:
- Timestamp when OBFL is manually disabled.
- Timestamp when OBFL is manually enabled.
- Timestamp when OBFL data is manually cleared.
This example shows how to display the OBFL kernel stack trace information:
The show logging onboard stack-trace command displays the following information:
Related Commands
|
|
---|---|
show logging pending
To display the pending changes to the syslog server configuration, use the show logging pending command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to display the pending changes to the syslog server configuration:
Related Commands
|
|
---|---|
Cancels the pending changes to the syslog server configuration. |
show logging pending-diff
To display the differences from the current syslog server configuration to the pending changes of the syslog server configuration, use the show logging pending-diff command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to display the pending differences of the syslog server configuration:
Related Commands
|
|
---|---|
Cancels the pending changes to the syslog server configuration. |
show logging session status
To display the logging session status, use the show logging session status command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the logging session status:
Related Commands
|
|
---|---|
show logging server
To display the syslog server configuration, use the show logging server command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the syslog server configuration:
Related Commands
|
|
---|---|
show logging status
To display the logging status, use the show logging status command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the logging status:
Related Commands
|
|
---|---|
Enables the distribution of the syslog server configuration to network switches using the Cisco Fabric Services (CFS) infrastructure. |
show logging timestamp
To display the logging time-stamp configuration, use the show logging timestamp command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the logging time-stamp configuration:
Related Commands
|
|
---|---|
show ntp authentication-status
To display the status of the Network Time Protocol (NTP) authentication, use the show ntp authentication-status command.
show ntp authentication-status
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the authentication status for NTP:
switch(
config)#
show ntp authentication-status
Related Commands
|
|
---|---|
show ntp peer-status
To display the status of the Network Time Protocol (NTP) peers, use the show ntp peer-status command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the peer status for NTP:
switch(
config)#
show ntp peer-status
Related Commands
|
|
---|---|
show ntp peers
To display information about Network Time Protocol (NTP) peers, use the show ntp peers command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display information about NTP peers:
switch(
config)#
show ntp peers
Related Commands
|
|
---|---|
show ntp statistics
To display Network Time Protocol (NTP) statistics, use the show ntp statistics command.
show ntp statistics { io | local | memory | peer { ipaddr address | name name1 [.. nameN ]}
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the statistics for NTP:
switch(
config)#
show ntp statistics local
Related Commands
|
|
---|---|
show ntp timestamp-status
To display the Network Time Protocol (NTP) time-stamp information, use the show ntp timestamp-status command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the NTP time-stamp status:
switch(
config)#
show ntp timestamp-status
Related Commands
|
|
---|---|
show ptp brief
To display the PTP information, use the show ptp brief command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the PTP status:
switch(
config)#
show ptp brief
Related Commands
|
|
---|---|
Displays the state of foreign masters known to the PTP process. |
|
Displays the properties of the PTP parent and grandmaster clock. |
|
show ptp clock
To display the properties of the local PTP clock including clock identity, use the show ptp clock command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the properties of the local clock:
switch(
config)#
show ptp clock
Related Commands
|
|
---|---|
Displays the state of foreign masters known to the PTP process. |
|
Displays the properties of the PTP parent and grandmaster clock. |
|
show ptp clocks foreign-masters-record
To display the state of the foreign masters known to the PTP process, use the show ptp clocks foreign-masters-record command.
show ptp clocks foreign-masters-record [ ethernet slot/port ]
Syntax Description
Command Modes
Command History
|
|
Usage Guidelines
For each foreign master, the output displays the clock identity, basic clock properties, and whether the clock is being used as a grandmaster.
Examples
This example shows how to display the foreign masters known to the PTP process:
switch(
config)#
show ptp foreign-masters-record
Related Commands
|
|
---|---|
Displays the properties of the PTP parent and grandmaster clock. |
|
show ptp corrections
To display the last few PTP corrections, use the show ptp corrections command.
Syntax Description
Command Default
Command History
|
|
Examples
This example shows how to display the most recent PTP corrections on the switch:
switch(
config)#
show ptp corrections
Related Commands
|
|
---|---|
Displays the state of foreign masters known to the PTP process. |
|
Displays the properties of the PTP parent and grandmaster clock. |
|
show ptp parent
To display the properties of the PTP parent and grandmaster clock, use the show ptp parent command.
Syntax Description
Command Default
Command History
|
|
Examples
This example shows how to display the properties of the PTP parent and grandmaster clock:
switch(
config)#
show ptp parent
Related Commands
|
|
---|---|
Displays the state of foreign masters known to the PTP process. |
|
show ptp port interface
To display the status of the PTP port, use the show ptp port interface ethernet command.
show ptp port interface [ ethernet slot/port ]
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to display the status of the PTP port on the switch:
switch(
config)#
show ptp port interface ethernet 5/1
Related Commands
|
|
---|---|
Displays the state of foreign masters known to the PTP process. |
|
Displays the properties of the PTP parent and grandmaster clock. |
|
show ptp time-property
To display the PTP clock time properties, use the show ptp time-property command.
Syntax Description
Command Default
Command History
|
|
Examples
This example shows how to display the PTP clock time properties:
switch(
config)#
show ptp time-property
Related Commands
|
|
---|---|
Displays the state of foreign masters known to the PTP process. |
|
Displays the properties of the PTP parent and grandmaster clock. |
|
show snmp community
To display the Simple Network Management Protocol (SNMP) community strings configured on the switch, use the show snmp community command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to display the SNMP community strings:
Related Commands
|
|
---|---|
Configures the community access string to permit access to the SNMP protocol. |
show snmp context
To display the Simple Network Management Protocol (SNMP) contexts configured on the switch, use the show snmp context command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to display the SNMP contexts:
Related Commands
|
|
---|---|
show snmp engineID
To display the identification of the local Simple Network Management Protocol (SNMP) engine, use the show snmp engineID command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
An SNMP engine is a copy of SNMP that can reside on a local or remote device. SNMP passwords are localized using the SNMP engine ID of the authoritative SNMP engine.
Examples
This example shows how to display the SNMP engine ID:
Related Commands
|
|
---|---|
show snmp group
To display the names of the Simple Network Management Protocol (SNMP) groups configured on the switch, use the show snmp group command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to display the SNMP groups:
Related Commands
|
|
---|---|
show snmp host
To display the Simple Network Management Protocol (SNMP) host information, use the show snmp host command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to display the SNMP host:
Related Commands
|
|
---|---|
show snmp sessions
To display the current Simple Network Management Protocol (SNMP) sessions, use the show snmp sessions command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to display the SNMP sessions:
Related Commands
|
|
---|---|
show snmp trap
To display the Simple Network Management Protocol (SNMP) link trap generation information, use the show snmp trap command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to display the SNMP traps:
Related Commands
|
|
---|---|
show snmp user
To display information on each Simple Network Management Protocol (SNMP) user, use the show snmp user command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to display the SNMP users configured on the switch:
This example shows how to display information about a specific SNMP user:
Related Commands
|
|
---|---|
show system ethernet dom polling status
To display the status of transceiver digital optical monitoring periodic polling, use the show system ethernet dom polling status command.
show system ethernet dom polling status
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use this command to display the status of transceiver digital optical monitoring periodic polling.
Examples
This example shows how to display the status of transceiver digital optical monitoring periodic polling:
Related Commands
|
|
---|---|
Enables transceiver digital optical monitoring periodic polling. |