To display the system message logging information, perform one of the
following tasks:
Command
|
Purpose
|
show logging
|
Displays current system message logging.
|
show logging nvram
|
Displays NVRM log contents.
|
show logging logfile
|
Displays the log file.
|
show logging level
|
Displays logging facility.
|
show logging info
|
Displays logging information.
|
show logging last 2
|
Displays last few lines of a log file.
|
show logging module
|
Displays switching module logging status.
|
show logging monitor
|
Displays monitor logging status.
|
show logging server
|
Displays server 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
Current System Message Logging
to
Remote Logging Server Information.
Note
|
When using the
show
logging command, output is displayed only when the
configured logging levels for the switch are different from the default levels.
|
Current System Message Logging
The following example displays the current system message logging settings and contents of the onboard log file:
switch# show logging
Logging console: enabled (Severity: critical)
Logging monitor: enabled (Severity: debugging)
Logging linecard: enabled (Severity: debugging)
Logging server: enabled
{172.20.102.34}
server severity: debugging
server facility: local7
{10.77.202.88}
server severity: debugging
server facility: local7
{10.77.202.149}
server severity: debugging
server facility: local7
Logging logfile: enabled
Name - messages: Severity - debugging Size - 4194304
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)
Feb 14 09:50:57 switchname %TTYD-6-TTYD_MISC: TTYD TTYD started
Feb 14 09:50:58 switchname %DAEMON-6-SYSTEM_MSG: precision = 8 usec
...
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.
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)
...
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
...
Console Logging Status
The following example displays the console logging status:
switch# show logging console
Logging console: enabled (Severity: notifications)
Logging Facility
The following example displays the 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)
Logging Information
The following example displays the current system message logging settings:
switch# show logging info
Logging console: enabled (Severity: critical)
Logging monitor: enabled (Severity: debugging)
Logging linecard: enabled (Severity: debugging)
Logging server: enabled
{192.168.1.34}
server severity: debugging
server facility: local7
{192.168.1.88}
server severity: debugging
server facility: local7
{192.168.1.149}
server severity: debugging
server facility: local7
Logging logfile: enabled
Name - messages: Severity - debugging Size - 4194304
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)
Last Few Lines of a Log File
The following example displays the last few lines of a 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)
Switching Module Logging Status
The following example displays switching module logging status:
switch# show logging module
Logging linecard: enabled (Severity: debugging)
Monitor Logging Status
The following example displays the monitor logging status:
switch# show logging monitor
Logging monitor: enabled (Severity: information)
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