1. 程式人生 > >思科裝置,記錄使用者操作命令,記錄使用者登陸資訊

思科裝置,記錄使用者操作命令,記錄使用者登陸資訊

記錄操作命令:

#conf t

(config)#archive

(config-archive)#log config

(config-archive-log-cfg)#hidekeys

(config-archive-log-cfg)#logging size 100

(config-archive-log-cfg)logging enable

(config-archive-log-cfg)notify syslog

sh archive log config all

-----------------------------------------------

設定時區

#conf t

(config)#ntp server hostname

-----------------------------------------------

telnet 進入使用者模式時需要輸入帳戶名設定

#conf t

(config)#aaa new-model

(config)#username user1 privilege 15 password password1

(config)#login on-success log

(config)#login on-failure log

(config)#line vty 0 4

(config)#password 7 password2

(config)#service password-encryption (不可逆)