1、cli命令运用
1.1、默认交换机名称和时间戳
N7K-Core1# sh cli variables
VSH Variable List (* = session vars)
-----------------
SWITCHNAME="N7K-Core1"
TIMESTAMP="2019-07-10-17.13.59"
1.2、自定义CLI
cli var name testvar interface ethernet 1/3
show $(testvar)
2、配置schedule
2.1、启用schedule功能
config terminal
feature scheduler
scheduler logfile size 16(默认,可以不配)
2.2、
config terminal
scheduler job name backup
copy running-config tftp://10.10.1.1/$(SWITCHNAME)-cfg.$(TIMESTAMP) vrf Managerment
end
config terminal
scheduler schedule name weekly
time start 2019:07:10:17:24 repeat 7:0:0
job name backup
end