システム メッセージ ロギング情報を表示するには、次の作業のいずれかを行います。
コマンド
|
目的
|
show logging
|
現在のシステム メッセージ ロギングを表示します。
|
show logging nvram
|
NVRM ログの内容を表示します。
|
show logging logfile
|
ログ ファイルを表示します。
|
show logging level
|
ロギング ファシリティを表示します。
|
show logging info
|
ロギング情報を表示します。
|
show logging last 2
|
ログ ファイルの最後の数行を表示します。
|
show logging module
|
スイッチング モジュールのロギング ステータスを表示します。
|
show logging monitor
|
モニタ ロギング ステータスを表示します。
|
show logging server
|
サーバ情報を表示します。
|
これらのコマンドの出力に表示される各フィールドの詳細については、『Cisco MDS 9000 Family Command Reference』を参照してください。
show logging コマンドを使用して、現在のシステム メッセージ ロギングの構成を表示します。例 現在のシステム メッセージ ロギング ~ リモート ロギング サーバー情報 を参照してください。
Note |
show logging コマンドを使用すると、スイッチで構成されているロギング レベルがデフォルトのレベルと違う場合にだけ出力が表示されます。
|
現在のシステム メッセージ ロギング
次の例は、現在のシステム メッセージ ロギング設定とオンボード ログ ファイルの内容を表示します。
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
...
show logging nvram コマンドを使用して、NVRAM に保存されているログ メッセージを表示します。シビラティ(重大度)レベルが Critical 以下(レベル 0、1、2)のログ メッセージだけが NVRAM に保存されます。
NVRM ログの内容
次の例は、NVRM ログの内容を表示します。
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)
...
ログ ファイル
次の例は、オンボード ログ ファイルを表示します。
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
...
コンソール ロギング ステータス
次の例は、コンソール ロギング ステータスを表示します。
switch# show logging console
Logging console: enabled (Severity: notifications)
ロギング ファシリティ
次の例は、各スイッチ ファシリティのログ レベルを表示します。
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)
ログ情報
次の例は、現在のシステム メッセージ ロギング設定を表示します。
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)
ログ ファイルの最後の数行
次の例は、ログ ファイルの最後の数行を表示します。
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)
スイッチング モジュールのロギング ステータス
次の例は、スイッチング モジュールのロギング ステータスを表示します。
switch# show logging module
Logging linecard: enabled (Severity: debugging)
モニタ ロギング ステータス
次の例は、モニタ ロギング ステータスを表示します。
switch# show logging monitor
Logging monitor: enabled (Severity: 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