tracking config:
(conf)#archive
(conf-archive)#log config (啟用runngung-config比對)
(conf-archive)#path flash:/rollback (指定RollBack的備份位置)
(conf-archive-log-config)#logging enable (啟用設定檔稽核紀錄)
(conf-archive-log-config)#loging size 500 (預設紀錄100筆資訊,修改為500筆)
(conf-archive-log-config)#hidekeys (隱藏稽核記錄中的密碼欄位)
(conf-archive-log-config)#notify syslog (選項,可配合將資訊匯出到syslog server)
(conf)#logging host 10.10.10.10 (選項,指定要匯出的syslog主機IP)
show:
#show archive log config all (顯示輸入過的設定檔內容)
idx sess user@line Logged command
1 1 console@console | logging enable
2 1 console@console | logging size 500
3 1 console@console | hidekeys
4 1 console@console | notify syslog
5 4 console@console |router ospf 1
6 4 console@console | network 1.1.1.1 0.0.0.0 area 0
7 5 console@console |archive
8 5 console@console | log config
9 5 console@console | no notify syslog
archive & rollback config:
#archive config (封存現在的running-config狀態)
#show archive (列出可還原的封存點)
#more flash:/rollback-1 (顯示封存點內容)
#configure replace flash:/rollback-1 (還原到running-config到特定的封存點)
show:
#show archive (列出封存點)
There are currently 6 archive configurations saved.
The next archive file will be named flash:/rollback-6
Archive # Name
0
1 flash:/rollback-1
2 flash:/rollback-2
3 flash:/rollback-3
4 flash:/rollback-4
5 flash:/rollback-5 <- Most Recent
#show archive config differences (比對startup-config與running-config的差異並顯示)
Contextual Config Diffs:
router ospf 1
+network 5.5.5.5 0.0.0.0 area 0
router ospf 1
-network 7.7.7.7 0.0.0.0 area 0
-network 8.8.8.8 0.0.0.0 area 0
#show archive config incremental-diffs flash:rollback-6
(比對running-config與封存點的差異並顯示)
!List of Commands:
end
!No changes were found
#more flash:/rollback-1 (顯示封存點的內容)
(archive的running-config內容)
2011年5月17日 星期二
Cisco device config tracking, archive & roolback
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言