Network Automation: Schedule Cisco config backups with kron and archive

Network Automation isn’t difficult. With just a few CLI commands you can automate the backup of your Cisco networks. Use Kron and archive to back up configs to TFTP, FTP or SCP servers. Don’t try to do everything manually. Automate it! Just like cron in Linux, you can use kron on Cisco IOS to schedule things. Schedule backups, schedule TCL scripts and much more.

Amaze others with your knowledge of the Cisco IOS. You don’t need python for these scripts. Rock that job interview and show senior network engineers what you can do. Keep on learning and change your life. Get that good paying job by showing your skills.

Menu:
1) Intro: 0:00
2) IOS requirements: 2:02
3) Lab Setup: 2:42
4) Kron config: 4:24
5) Archive config: 9:01

In later videos I’ll show you how to use Python scripts and other cool options on Cisco IOS devices.

================================
Free TFTP Server:
=================================
Free SolarWinds TFTP Server: http://bit.ly/2mbtD6j

=================================
Documentation:
=================================
Kron: http://bit.ly/2kkgIhU

Archive:
http://bit.ly/2kI8BMb
http://bit.ly/2mgQa1L

=================================
Books:
=================================
Cisco Press Book: https://amzn.to/2LpaU1a
Good O’Reilly Book: https://amzn.to/2Lpbw6Z

=================================
Kron Script:
=================================
kron policy-list backupconfig
cli show running-config | redirect tftp://10.1.3.4/r1-shrun.cfg

kron occurrence backupminute in 1 recurring
policy-list backupconfig

kron occurrence backupweekly at 23:00 Sun recurring
policy-list backupconfig

debug kron all

show kron schedule

=================================
Archive Script:
=================================
archive
log config
logging enable
hidekeys
path tftp://10.1.3.4/$h-
wr
time-peiod 10080
!

sh archive

=================================

10x Engineer
CCNA
DevNet
Cisco Devnet Associate

CCNP Enterprise
CCNP Security
CCNP Data Center
CCNP Service Provider
CCNP Collaboration
Cisco Certified Devnet Professional
Cisco Certified Network Professional

Python
Network Automation
Network Programmability

LPIC 1
LPIC 2
Linux Professional Institute
LX0-103
LX0-104
XK0-004

How did you find this video? Did you enjoy learning about kron and the archive of your configs? scripts? All the best!
David Bombal

#ccna #devnet #python

subscribe
  • David Bombal