无
# 创建定时备份的Job
[H3C]scheduler job saveconfig
[H3C-job-saveconfig]command 1 save force //保存配置
[H3C-job-saveconfig]command 2 copy startup.cfg ftp://admin:admin123@10.88.142.121/ceshi.cfg
//备份到ftp服务器对应路径,并修改文件名,ftp服务器用户名admin、密码admin123,地址10.88.142.121
[H3C-job-saveconfig]quit
# 配置定时执行任务,使设备在每个星期五的下午6点执行备份操作
[H3C]scheduler schedule saveconfig
[H3C-schedule-saveconfig]job saveconfig
[H3C-schedule-saveconfig]time repeating at 18:00 week-day Fri
[H3C-schedule-saveconfig]quit
1、由于job不支持执行ftp命令,使用copy变相实现
2、ftp命令脚本为ftp://username:passwd@servername/filename
能自定义时间和文件名吗,像思科如下配置:
event manager applet UPLOAD_V6NEI |
event none |
action 1.0 info type routername |
action 1.1 cli command "enable" |
action 1.2 cli command "show clock" |
action 1.3 regexp "([0-9]+) ([0-9]+)" "$_cli_result" match day year |
action 1.4 regexp "([a-zA-Z]+) [0-9]+ [0-9]+" "$_cli_result" match month |
action 1.5 regexp "([0-9]+:[0-9]+:[0-9]+)" "$_cli_result" match clock |
action 1.6 set time "$clock-$day-$month-$year" |
action 1.7 cli command "show ipv6 nei | redirect ftp://1.1.1.1/userInfo/v6nei/$_info_routername#$time.v6nei" |
(0)
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作