A network administrator needs to configure a Cisco router to periodically send its running configuration to a TFTP server at 192.168.1.100. The configuration should be saved as 'router_config.cfg' on the TFTP server, and this backup should occur every night at 2:00 AM. Which set of commands would achieve this automation?
- ARouter(config)# kron policy-list daily_backup Router(config-kron-policy)# cli command "copy running-config tftp://192.168.1.100/router_config.cfg" Router(config)# kron occurrence daily_backup_occ at 2:00 recurring policy-list daily_backup
- BRouter(config)# event manager applet auto_backup Router(config-applet)# event timer cron name backup_timer cron-entry "0 2 * * *" Router(config-applet)# action 1.0 cli command "copy running-config tftp://192.168.1.100/router_config.cfg"
- CRouter(config)# schedule daily_backup at 02:00 copy running-config tftp://192.168.1.100/router_config.cfg
- DRouter(config)# archive config Router(config-archive)# path tftp://192.168.1.100/router_config.cfg Router(config-archive)# time-period 1440 Router(config-archive)# write-memory
Show answer & explanationAnswer & explanation
Correct answer: A. Router(config)# kron policy-list daily_backup Router(config-kron-policy)# cli command "copy running-config tftp://192.168.1.100/router_config.cfg" Router(config)# kron occurrence daily_backup_occ at 2:00 recurring policy-list daily_backup
The Kron scheduler in Cisco IOS is designed for executing commands at specific times or intervals. Option C correctly uses 'kron policy-list' to define the command to be executed and 'kron occurrence' to schedule its execution daily at 2:00 AM, making it the most suitable solution for automated, time-based configuration backups.
Why the other options are wrong
- B. This uses Embedded Event Manager (EEM), which *could* achieve this, but the cron-entry format is specific and complex. Kron is more straightforward for simple time-based command execution.
- C. There is no 'schedule daily_backup' command with this syntax in standard Cisco IOS for scheduling arbitrary commands.
- D. The 'archive config' command is used for archiving configurations, but 'time-period' specifies an interval in minutes between archives, not a fixed daily time, and 'write-memory' is not for TFTP backup.
Cisco IOS Kron Scheduler
A feature in Cisco IOS that allows for the scheduling of commands or command sequences to be executed at specific times or intervals.
- Uses 'kron policy-list' to define commands.
- Uses 'kron occurrence' to schedule execution times.
- Useful for automated tasks like backups or reboots.
Memory trick: For 'KRON' tasks, think 'chronological' – it's all about scheduling commands by time!