应用场景
当完成一组配置,并且已经达到预定功能,则应将当前配置文件保存到存储设备中。
如果不加configuration-file参数,save [ all ]命令会将当前配置信息保存到存储设备中的系统下一次启动的配置文件中。display startup命令回显中的“Next startup saved-configuration file”字段值就是系统下一次启动的配置文件。
配置文件必须以“.cfg” 或“.zip”作为扩展名,而且系统启动配置文件必须存放在存储设备的根目录下。如果您选择缺省路径,系统配置文件将存储在根目录下。在第一次保存配置文件时,如果不指定可选参数configuration-file,则系统将提示是否将文件名保存为“vrpcfg.cfg”。
当在主用主控板上执行保存当前配置文件的操作时,系统在主用主控板上的配置文件保存完毕之后,将会提示用户确认备用主控板上是否需要保存同样名称的配置文件。
如果非系统管理员需要保存配置文件,系统管理员可以执行non-system-admin save enable命令,打开非系统管理员保存配置文件的权限。否则,在保存配置文件时,系统会提示权限不足。
注意事项
# 保存当前配置文件到系统下次启动的配置文件中。
<sysname> save
The current configuration (excluding the configurations of unregistered boards or cards) will be written to the device.
Are you sure to continue?[Y/N] y
Now saving the current configuration to the device.
..................
Info:The current configuration was saved to the masterboard divice successfully
Info:The current configuration was saved to the slaveboard divice successfully
Info: The current configuration was saved to the device successfully.
# 设置了下次启动配置文件时,保存当前配置文件到系统下次启动的配置文件中。
<sysname> save The current configuration (excluding the configurations of unregistered boards or cards) will be written to flash:/vrpcfg.zip. Are you sure to continue?[Y/N] y Now saving the current configuration to the slot 17. Info: Save the configuration successfully.