To display the system message logging information, perform one of the
following tasks:
|
Command
|
Purpose
|
|
show logging
show logging info
|
Displays current system message logging information
|
|
show logging format
|
Displays syslog message format.
|
|
show logging last
|
Displays last few lines of a log file.
|
|
show logging level
|
Displays logging facility.
|
|
show logging logfile
|
Displays the log file.
|
|
show logging module
|
Displays switching module logging status.
|
|
show logging monitor
|
Displays monitor logging status.
|
|
show logging nvram
|
Displays NVRM log contents.
|
|
show logging server
|
Displays server information.
|
|
show logging timezone
|
Displays the time zone used in syslog message timestamps.
|

Note
|
The show logging and show logging info commands provide the same output and can be used interchangeably to display system message logging information.
|
For detailed information about the fields in the output from these
commands, refer to the
Cisco MDS 9000 Family Command Reference .
Use the
show
logging
command to display the current system message logging
configuration . See Examples
Display System Message Logging Information
to
Display Remote Logging Server Information.
Display System Message Logging Information
The following example displays the current system message logging settings and contents of the onboard log file:
switch# show logging
Logging console: enabled (Severity: information)
Logging monitor: enabled (Severity: notifications)
Logging linecard: enabled (Severity: notifications)
Logging server: disabled
Logging origin_id : disabled
Logging rate-limit: enabled
Logging logfile: enabled
Name - messages: Severity - notifications Size - 10485760
Logging persistent : disabled (Reason: Logflash CF card not online.)
Logging format rfc5424: enabled
System timestamp format rfc5424:disabled
Logging timezone utc: enabled
Syslog History Table: '1' maximum table entries
saving level 'warnings' or higher
1201 messages ignored, 0 dropped, 63 table entries flushed
SNMP notifications disabled
entry number 64: SMA-4-ACTIVATION_COMPLETED
Activation of policy name edge successful.
Timestamp: 12929540
Facility Default Severity Current Session Severity
-------- ---------------- ------------------------
aaa 3 3
aam 2 2
acl 2 2
auth 0 0
authpriv 3 3
bloggerd 4 4
bootvar 5 5
callhome 2 2
capability 2 2
cdp 2 2
cert_enroll 2 2
cfs 3 3
clis 3 3
confcheck 2 2
cron 3 3
daemon 3 3
device-alias 3 3
dstats 2 2
eem_policy_dir 2 2
epp 5 5
ethport 5 5
evmc 5 5
evms 2 2
fabric_start_cfg_mgr 2 2
fc-tunnel 5 5
fc2d 2 2
fcdomain 3 3
fcns 2 2
fcs 2 2
fdmi 2 2
feature-mgr 2 2
flogi 2 2
fs-daemon 2 2
fspf 3 3
ftp 3 3
ipacl 2 2
ipconf 5 5
ipfc 2 2
ips 5 5
kern 3 3
licmgr 6 6
local0 3 3
local1 3 3
local2 3 3
local3 3 3
local4 3 3
local5 3 3
local6 3 3
local7 3 3
lpr 3 3
mail 3 3
mcast 2 2
module 5 5
monitor 3 3
mvsh 2 2
news 3 3
ntp 2 2
platform 5 5
plugin 2 2
port 5 6
port-channel 5 5
port-resources 5 5
port-security 3 3
qos 3 3
radius 3 3
rdl 2 2
res_mgr 5 5
rib 2 2
rlir 2 2
rscn 2 2
scsi-target 2 2
securityd 3 3
sma 5 5
smm 4 4
snmpd 2 2
snmpmib_proc 2 2
span 3 3
syslog 3 3
sysmgr 3 3
SystemHealth 4 4
user 3 3
uucp 3 3
vni 2 2
vrrp-cfg 3 3
vrrp-eng 3 3
vsan 2 2
vshd 5 5
wwn 3 3
xbar 5 5
xmlma 3 3
zone 2 2
0(emergencies) 1(alerts) 2(critical)
3(errors) 4(warnings) 5(notifications)
6(information) 7(debugging
...
Use the
show
logging
nvram command to view the log messages saved in
NVRAM. Only log messages with a severity level of critical and below (levels 0,
1, and 2) are saved in NVRAM.
Display NVRM Log Contents
The following example displays the NVRM log contents:
switch# show logging nvram
Jul 16 20:36:46 switchname %KERN-2-SYSTEM_MSG: unable to alloc and fill in a
new mtsbuf (pid=2209, ret_val = -105)
Jul 16 20:36:46 switchname %KERN-2-SYSTEM_MSG: unable to alloc and fill in a
new mtsbuf (pid=2199, ret_val = -105)
Jul 16 20:36:46 switchname %KERN-2-SYSTEM_MSG: unable to alloc and fill in a
new mtsbuf (pid=2213, ret_val = -105)
Jul 16 20:36:46 switchname %KERN-2-SYSTEM_MSG: unable to alloc and fill in a
new mtsbuf (pid=2213, ret_val = -105)
...
Display Log File
The following example displays the onboard log file:
switch# show logging logfile
Jul 16 21:06:50 %DAEMON-3-SYSTEM_MSG: Un-parsable frequency in /mnt/pss/ntp.drift
Jul 16 21:06:56 %DAEMON-3-SYSTEM_MSG: snmpd:snmp_open_debug_cfg: no snmp_saved_dbg_uri ;
Jul 16 21:06:58 switchname %PORT-5-IF_UP: Interface mgmt0 is up
Jul 16 21:06:58 switchname %MODULE-5-ACTIVE_SUP_OK: Supervisor 5 is active
...
Display Console Logging Status
The following example displays the status and severity of message logging to the console:
switch# show logging console
Logging console: enabled (Severity: notifications)
Display Logging Facility
The following example displays the default logging level and the currently configured logging level of each switch facility:
switch# show logging level
Facility Default Severity Current Session Severity
-------- ---------------- ------------------------
kern 6 6
user 3 3
mail 3 3
daemon 7 7
auth 0 7
syslog 3 3
lpr 3 3
news 3 3
uucp 3 3
cron 3 3
authpriv 3 7
ftp 3 3
local0 3 3
local1 3 3
local2 3 3
local3 3 3
local4 3 3
local5 3 3
local6 3 3
local7 3 3
vsan 2 2
fspf 3 3
fcdomain 2 2
module 5 5
sysmgr 3 3
zone 2 2
vni 2 2
ipconf 2 2
ipfc 2 2
xbar 3 3
fcns 2 2
fcs 2 2
acl 2 2
tlport 2 2
port 5 5
flogi 2 2
port_channel 5 5
wwn 3 3
fcc 2 2
qos 3 3
vrrp_cfg 2 2
ntp 2 2
platform 5 5
vrrp_eng 2 2
callhome 2 2
mcast 2 2
rdl 2 2
rscn 2 2
bootvar 5 2
securityd 2 2
vhbad 2 2
rib 2 2
vshd 5 5
0(emergencies) 1(alerts) 2(critical)
3(errors) 4(warnings) 5(notifications)
6(information) 7(debugging)
Display Last Lines of the Logging File
The following example displays the last few lines of the log file:
switch# show logging last 2
Nov 8 16:48:04 switchname %LOG_VSHD-5-VSHD_SYSLOG_CONFIG_I: Configuring console from pts/1 (171.71.58.56)
Nov 8 17:44:09 switchname %LOG_VSHD-5-VSHD_SYSLOG_CONFIG_I: Configuring console from pts/0 (171.71.58.72)
Display Switching Module Logging Status
The following example displays switching module logging status:
switch# show logging module
Logging linecard: enabled (Severity: debugging)
Display Monitor Logging Status
The following example displays the status and severity of message logging to remote login sessions:
switch# show logging monitor
Logging monitor: enabled (Severity: information)
Display Remote Logging Server Information
The following example displays the configured remote logging server information:
switch# show logging server
Logging server: enabled
{192.168.113.1}
server severity: notifications
server facility: local7
server VRF: default
server port: 55552
server transport: secure
{192.168.106.50}
server severity: notifications
server facility: local7
server VRF: default
server port: 55551
server transport: secure
{192.168.229.220}
server severity: notifications
server facility: local7
server VRF: default
server port: 55552
Display Logging Message Format Information and Time Zone Information:
Starting from NX-OS Release 9.4(4), the show logging format and show logging timezone commands have been introduced. The logging message format and the logging time zone are also included in the output of the
show logging and show logging info commands.
The following example shows if RFC 5424 formatting is enabled for syslog logging messages and if RFC 5424 timestamps are enabled
for other system log messages (such as accounting and debug messages):switch# show logging format
Logging format rfc5424: enabled
System timestamp format rfc5424:enabled
The following example shows if logging messages are logged with the local time zone or UTC time zone:switch# show logging timezone
Logging timezone utc: enabled
The following tables show the format of syslog messages in the local switch log and the format of syslog messages sent to
remote syslog servers.
The tables use the following time and time zone values:
Table 7. Controlling local syslog message format:
|
Configuration Command
|
Format of Message in show logging logfile
|
|
logging format rfc5424
|
logging timezone
|
system timestamp format rfc5424
|
|
Disabled
|
Disabled
|
Disabled
|
2025 Mar27 16:22:24 switch %SYSLOG...
|
|
Disabled
|
Disabled
|
Enabled
|
2025–03–27T16:22:24+05:30switch %SYSLOG...
|
|
Disabled
|
Enabled
|
Disabled
|
2025 Mar27 10:52:24 switch %SYSLOG....
|
|
Disabled
|
Enabled
|
Enabled
|
2025–03–27T10:52:24Zswitch %SYSLOG...
|
|
Enabled
|
Disabled
|
Disabled
|
<189>12025–03–27T16:22:24+05:30 switch – – – – %SYSLOG...
|
|
Enabled
|
Disabled
|
Enabled
|
<189>12025–03–27T16:22:24+05:30 switch – – – –%SYSLOG...
|
|
Enabled
|
Enabled
|
Disabled
|
<189>12025–03–27T10:52:24Z switch – – – – %SYSLOG…
|
|
Enabled
|
Enabled
|
Enabled
|
<189>12025–03–27T10:52:24Z switch – – – – %SYSLOG...
|
Table 8. Controlling syslog message format sent to remote servers:
|
Configuration Command
|
Format of Message Sent to Remote Logging Server
|
|
logging format rfc5424
|
logging timezone
|
system timestamp format rfc5424
|
|
Disabled
|
Disabled
|
Disabled
|
<189>:2025 Mar 27 16:22:24 switch %SYSLOG…
|
|
Disabled
|
Disabled
|
Enabled
|
<189>12025–03–27T16:22:24+05:30 switch %SYSLOG…
|
|
Enabled
|
Disabled
|
Ignored
|
<189>12025–03–27T16:22:24+05:30 switch – – – – %SYSLOG…
|
|
Enabled
|
Enabled
|
Ignored
|
<189>12025–03–27T10:52:24Z switch – – – –%SYSLOG…
|