ログ

コンソールへのロギング

rt(config)# logging console priority

リモート 接続時のモニタ

バッファへのロギング

rt(config)# logging buffered size priority

バッファの表示

rt# show logging

バッファの消去

rt# clear logging

Syslog サーバへのロギング

rt(config)# logging ip-addr
rt(config)# logging source-interface type mod/num
rt(config)# logging facility facility

タイムスタンプ

起動後の経過時間で記録

rt(config)# service timestamps debug|log uptime

実時間で記録

rt(config)# service timestamps debug|log datetime [msec] [localtime] [show-timezone]

コマンド再表示

設定変更ログ

設定

  1. 設定モード
    rt(config)# archive
    rt(config-archive)# log config
    
  2. ロギング有効化
    rt(config-archive-log-cfg)# logging enable
    
  3. パスワードを遮蔽
    rt(config-archive-log-cfg)# hidekeys
    
  4. 保存数
    rt(config-archive-log-cfg)# logging size size
    
    • size
      • 保持するログの数
      • 1~1000 (デフォルトは 100)

確認

rt# show archive log config all
 idx   sess           user@line      Logged command
    1     1        console@console  |  logging enable
    2     2        console@console  |interface FastEthernet0/0
    3     2        console@console  | ip address 192.168.0.1 255.255.255.0
    4     2        console@console  |!exec: enable

デバッグ

開始

rt# debug option

停止

rt# no debug option
 

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2020-07-08 (水) 18:10:14