<Huawei-sw>sys [Huawei-sw]set save-configuration interval 60 delay 3 cpu-limit 60 [Huawei-sw]set save-configuration backup-to-server server <TFTP服务器IP> transport-type tftp path \Huawei-sw.zip [Huawei-sw]quit <Huawei-sw>save
vrpcfg.zip
的压缩包,所以这里的文件后缀要是zip结尾。快速复制
set save-configuration interval 60 delay 3 cpu-limit 60
set save-configuration backup-to-server server <TFTP服务器IP> transport-type tftp path \Huawei-sw.zip
Cisco-sw>enable Cisco-sw#conf t Cisco-sw(config)#archive Cisco-sw(config-archive)#path tftp://<TFTP服务器IP>/Cisco-sw.conf Cisco-sw(config-archive)#time-period 10080 Cisco-sw(config-archive)#write-memory Cisco-sw(config-archive)#exit Cisco-sw(config)#do wr
快速复制
archive
path tftp://<TFTP服务器IP>/Cisco-sw.conf
write-memory
time-period 10080
tftp <TFTP服务器IP> put vrpcfg.zip /Huawei-sw.zip
copy startup-config tftp://<TFTP服务器IP>/Cisco-sw
设置时区和NTP时间同步
<Huawei-sw>sys [Huawei-sw]clock timezone Beijing,Chongqing,Hongkon,Urumqi add 08:00:00 [Huawei-sw]ntp-service unicast-server <NTP服务器IP>
快速复制
clock timezone Beijing,Chongqing,Hongkon,Urumqi add 08:00:00
ntp-service unicast-server <NTP服务器IP>
Cisco-sw>enable Cisco-sw#conf t Cisco-sw(config)#clock timezone GMT +8 Cisco-sw(config)#ntp server <NTP服务器IP> Cisco-sw(config)#service timestamps log datetime localtime Cisco-sw(config)#do wr
show log
还是显示默认UTC时区,需要修改本地时区service timestamps log datetime localtime
快速复制
clock timezone GMT +8
ntp server <NTP服务器IP>
service timestamps log datetime localtime
do wr
<Huawei-sw>sys [Huawei-sw]info-center loghost <Syslog服务器IP> local-time
快速复制
info-center loghost <Syslog服务器IP> local-time
华为这里有个坑要这里要加local-time
,虽然display logbu
显示的日志是修改过的时区,但是发送给syslog服务器的日期依旧是使用默认UTC时区
Cisco-sw>enable Cisco-sw#conf t Cisco-sw(config)#logging host <Syslog服务器IP>
快速复制
logging host <Syslog服务器IP>
配置已经备份
日志已经汇总