1.下载SCP工具,此处使用SolarWinds SFTP & SCP Server
2.H3C交换机配置
archive configuration server scp 10.1.41.171 directory /HBCR/ filename-prefix CN-HBCR-2-1F111-OFFICE-ACC50
archive configuration server user ftp
archive configuration server password simple xxxxxxxx
archive configuration interval 43200
查看自动配置
dis archive configuration
Username: ftp
Location: 10.1.41.171
Filename prefix: CN-HBCR-2-1F111-OFFICE-AGG01
Archive interval in minutes: 43200
Archive history:
No. Timestamp Filename
# 1 Tue Nov 01 17:32:32 2022 CN-HBCR-2-1F111-OFFICE-AGG01_20221101_17
The exclamation mark (!) indicate that the remote archiving attempt failed.
The pound sign (#) indicates the most recent archive file.
注:若配置完后未能自动备份,可尝试在全局下执行 archive configuration 手动触发一次。
3.华为交换机配置
1)非CE系列
set save-configuration backup-to-server server 10.1.41.171 transport-type sftp user ftp password xxxxxxx path /HBCR/N1/
set save-configuration interval 43200
2)CE系列
configuration file auto-save interval 43200
configuration file auto-save backup-to-server server 10.1.41.171 transport-type sftp user ftp password xxxxxxx path /HBCR/
configuration current backup-to-server monthly date 30 time 00:00:00
查看自动配置
dis saved-configuration configuration
Auto backup configuration status : Enable
Auto backup configuration interval : 43200 minutes
Backup delay after configuration changed : 5 minutes(default)
The threshold of the CPU usage permitted when backup : 50%(default)
Auto backup configuration server 1 information:
Server IP : 10.1.41.171
Transport-type : SFTP
Server path : /HBCR/
User : ftp
Password : ******
看看天上,于是我去了满是风雪的地方