华为交换机启动配置命令详解大全
1、自动保存配置
[Huawei]set save-configuration ?
backup-to-server Back up the configuration to the server on the network #保存配置文件到服务器
cpu-limit Specify the upper limit of CPU usage when the system automatically backup the current configuration #备份配置时CPU使用上限
delay Specify the delay time of the automatical backup after the current configuration change #配置变更发生后自动备份配置的延时时间
interval Specify the interval for backuping the current configuration automatically #自动备份当前配置的时间间隔
[Huawei]set save-configuration backup-to-server ?
server Server on the network
[Huawei]set save-configuration backup-to-server server ?
X.X.X.X Specify the IP address of the server
[Huawei]set save-configuration backup-to-server server 10.1.1.1 ?
transport-type Specify the type of the transmission
user Specify the user accessing the server
[Huawei]set save-configuration backup-to-server server 10.1.1.1 user ?
STRING<1-64> Name of the user
[Huawei]set save-configuration backup-to-server server 10.1.1.1 user ftp ?
password Specify the password used to access the server
[Huawei]set save-configuration backup-to-server server 10.1.1.1 user ftp password 023wg.com ?
path Specify the path on the server
[Huawei]set save-configuration backup-to-server server 10.1.1.1 user ftp password 023wg.com path ?
STRING<1-64> Name of the path
[Huawei]set save-configuration backup-to-server server 10.1.1.1 user ftp password 023wg.com path back ?
2、手动保存配置
STRING<5-64> The name of specific file ( *.cfg , *.zip)
all All configuration including those of unavailable cards or slots
在第一次保存配置文件时,如果不指定可选参数configuration-file,则设备将提示是否将文件名保存为“vrpcfg.zip”。“vrpcfg.zip”是系统缺省的配置文件,初始状态是空配置。
3、查看系统当前启动配置文件名
MainBoard:
Configured startup system software: NULL
Startup system software: NULL
Next startup system software: NULL
Startup saved-configuration file: NULL
Next startup saved-configuration file: flash:/vrpcfg.zip
Startup paf file: NULL
Next startup paf file: NULL
Startup license file: NULL
Next startup license file: NULL
Startup patch package: NULL
Next startup patch package: NULL
4、比较配置文件
用户可以通过比较当前配置和下次启动的配置文件,查看哪些配置项是不一致的,决定是否需要将当前配置设置为下次启动时加载的配置文件。