方法一:保存到AC本地:
# 在flash:/archive/目录下备份配置文件,文件名前缀为my_archive。
<Sysname> mkdir flash:/archive // 创建一个archive的文件夹
Creating directory flash:/archive... Done.
<Sysname> system-view
[Sysname] archive configuration location flash:/archive filename-prefix my_archive // 配置路径即可
<WX5540H>archive configuration // 需要现在 [ ] 视图下配置 archive configuration 才能在<>视图下用
The running configuration will be saved to an archive file. Continue? [Y/N]:y
The archive configuration file my_archive_1.cfg is saved.
方法二:保存到远程电脑,需要开启FTP / TFTP服务器
[WX5540H]archive configuration server tftp 192.168.100.100 filename-prefix test // test是文件前缀名
<WX5540H>archive configuration
The running configuration will be saved to an archive file. Continue? [Y/N]:y
The archive configuration file test_20231115_144020.cfg is saved.
通用操作方法:
查看配置
<WX5540H>dis archive configuration
Location: tftp://192.168.100.100/
Filename prefix: test
Archive history:
No. TimeStamp FileName
! 1 Wed Nov 15 14:26:38 2023 test_20231115_142638.cfg
# 2 Wed Nov 15 14:40:20 2023 test_20231115_144020.cfg
The exclamation mark (!) indicate that the remote archiving attempt failed.
The pound sign (#) indicates the most recent archive file.
Tips:
[WX5540H]archive configuration server user xx // 用户名
[WX5540H]archive configuration server password xx // 密码
[WX5540H]archive configuration interval xx // 自动备份时间
[WX5540H]archive configuration server tftp 192.168.100.100 directory /home/admins/h3c/ filename-prefix test // 配置文件路径,需要相对路径
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作