レス
元トピ次レス
タイトル
Re: 問題ID: 25332
フォーラム
最強WEB問題集CCNP ROUTE
投稿ユーザ(投稿日)
(2019/1/31)
本文

-----引用(始)-----

Monitor logging箇所がdisableであればSyslogを飛ばす(有効)なのでしょうか。
enableではなくて?

-----引用(終)-----

どこの「disable」を見ての質問かがわからないのですが、ログレベルがdebuggingであるという表示があることから、この出力は「ログ出力有効」になっています。

無効にすると、ログレベルは表示されず「disabled」という表示になります。
[code]
R1#show logging | include Monitor
Monitor logging: level debugging, 0 messages logged, xml disabled,
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#no logging monitor ←logging monitorを無効にする
R1(config)#end
R1#
*Jan 31 07:18:50.303: %SYS-5-CONFIG_I: Configured from console by console
R1#show logging | include Monitor
Monitor logging: disabled ←ここ
[/code]

もしかして、こういうことを言われてます?
[code]
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#logging monitor ?
<0-7> Logging severity level
alerts Immediate action needed (severity=1)
critical Critical conditions (severity=2)
debugging Debugging messages (severity=7)
discriminator Establish MD-Console association
emergencies System is unusable (severity=0)
errors Error conditions (severity=3)
filtered Enable filtered logging
informational Informational messages (severity=6)
notifications Normal but significant conditions (severity=5)
warnings Warning conditions (severity=4)
xml Enable logging in XML


R1(config)#logging monitor xml ←XMLでのロギングを有効化
R1(config)#end
R1#
*Jan 31 07:21:57.387: %SYS-5-CONFIG_I: Configured from console by console
R1#show logging | include Monitor
Monitor logging: level debugging, 0 messages logged, xml enabled, ←xmlがenabledになっている
[/code]
この環境のR1にtelnetログインすると…
[code]
R2#telnet 192.168.12.1
Trying 192.168.12.1 ... Open


User Access Verification

Password:
R1>en
Password:
R1#terminal monitor
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#end
R1#
SYS5CONFIG_Iconsolevty0 (192.168.12.2) ←XML形式でログ出力される
[/code]

レス一覧

元トピ次レス


Ping-tモバイルTOP

Copyright (c) 2010
Ping-t All rights reserved.