cisco kron
Добавлено: 2011-08-28 20:29:24
здравствуйте. Захотел сделать бекап конфигов цисок через kron cisco. В наличии 2960, конфиг следующий:
На одной из 2960 все норм, на других бекап не отрабатывается, после наступления времени срабатывания крона в конфиге остается только
без
На сайте циски нашел:
версии ios - циска, у которой крон нормально срабатывает
- циски, у которых крон не работает
сделал debug, в логах следующее:
если делать вручную, то все хорошо. Кто-нить знает как поправить проблему?
Код: Выделить всё
kron occurrence Backup at 18:30 Sun recurring
policy-list Backup
!
kron policy-list Backup
cli copy running-config tftp://xxx/cisco_config/03
Код: Выделить всё
kron occurrence Backup at 18:30 Sun recurring
policy-list Backup
Код: Выделить всё
kron policy-list Backup
Код: Выделить всё
Create a kron policy list—This is the script that lists what commands the router should run at the scheduled time.
Router(config)#kron policy-list SaveConfig
Router(config-kron-policy)#cli write
Router(config-kron-policy)#exit
cli—Specifies EXEC CLI commands within a Command Scheduler policy list.
Policy-list—Specifies the policy list associated with a Command Scheduler occurrence.
Note: The reason why write was used rather than copy running-config startup-config is because kron does not support interactive prompts and the copy running-config startup-config command requires interaction. It is important to remember this when you create commands. Also, note that kron does not support configuration commands.
версии ios
Код: Выделить всё
Version 12.2(44)SE6
Код: Выделить всё
Version 12.2(35)SE5
сделал debug, в логах следующее:
Код: Выделить всё
22w6d: Call parse_cmd 'copy running-config tftp://10.0.0.5/cisco_config/22'
22w6d: Kron CLI return 0
'
**CLI 'copy running-config tftp://10.0.0.5/cisco_config/22':
Address or name of remote host [10.0.0.5]? ?Bad address or host name%Error parsing filename (Unknown error 0)'