show logging file
View log files by file name, category, severity, or CP to identify possible problems.
Syntax
-
show logging file
-
show logging file alarm
-
show logging file CPU
WORD<0-100>
-
show logging file
detail
-
show logging file
event-code WORD<0-10>
-
show logging file module
WORD<0-100>
-
show logging file
name-of-file WORD<1-99>
-
show logging file
save-to-file WORD<1-99>
-
show logging file severity
WORD<0-25>
-
show logging file tail
-
show logging file vrf
WORD<0-32>
Command Parameters
- alarm
- Displays alarm log entries.
- CPU WORD<0-100>
- Filters and list the logs
according to the CPU that generated it. Specify a string length of 0-25
characters. To specify multiple filters, separate each CPU by the vertical bar
(|), for example, CPU1|CPU2. Different hardware platforms support a different
number of CPUs. For more information, see your hardware documentation.
- detail
- Displays CLI and SNMP logging
information.
- event-code WORD<0-10>
- Specifies a number that precisely
identifies the event reported. WORD<0-10> specifies the event code in the
format: {0x0-0x00FFFFFF| 0x0-0x00FFFFFF}.
- module WORD<0-100>
- Filters and list the logs
according to module. Specify a string length of 0-100 characters. Categories
include SNMP, EAP, RADIUS, RMON, WEB, STG, IGMP, HW, MLT, FILTER, QOS, CLILOG, SW,
CPU, IP, VLAN, IPMC, IP-RIP, OSPF, PIM, POLICY, RIP, and SNMPLOG. To specify
multiple filters, separate each category by the vertical bar (|), for example,
OSPF|FILTER|QOS. Use the command show logging file module clilog to view the CLI
log. Use the command show logging file module snmplog to view the SNMP log.
- name-of-file WORD <1-99>
- Displays the valid logs from this
file. For example, /intflash/logcopy.txt. You cannot use this command on the
current log file-the file into which the messages are currently logged). Specify a
string length of 1-99 characters.
- save-to-file WORD<1-99>
- Redirects the output to the
specified file and removes all encrypted information. The tail option is not
supported with the save-to-file option.
- severity WORD <0-25>
- Filters and list the logs
according to severity. Choices include INFO, ERROR, WARNING, FATAL. To specify
multiple filters, separate each severity by the vertical bar (|), for example,
ERROR|WARNING|FATAL.
- tail
- Shows the last results first.
- vrf WORD<0-32>
- Specifies the name of a VRF
instance to show log messages that only pertain to that VRF.