Network Automation: Schedule Cisco config backups with kron and archive

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024

Комментарии • 127

  • @johanrobbetze3918
    @johanrobbetze3918 5 лет назад +3

    Thanks David you made it so easy for me to backup my configs now. And as a side note that was a nice Black Mamba sighting. I stay in South Africa and do not see them often.

    • @davidbombal
      @davidbombal  5 лет назад +2

      Thanks Johan. That was near Bela Bela (Mabalingwe Game Reserve). We saw it multiple times and it was a bit too close for comfort.... not sure I'd want to see it again any time soon.

  • @Rick5040
    @Rick5040 5 лет назад +7

    Thanks, I learned something new about Cisco IOS today.

  • @jasonkellerman42
    @jasonkellerman42 5 лет назад +1

    Thank You David, I admire you as a professor and as a human being. I'm new in the IT field but I have a couple of months watching your videos and I bought your Udemy CCENT course a couple of weeks ago (to start my Network Engineer path and pass the CCNA) and I love it. You are always very humble despite you are an expert in your field and always trying to help and motivate us in many ways to become better professionals and better human beings... That is, pure humble and GREATNESS in you, GOD bless you!

    • @davidbombal
      @davidbombal  5 лет назад +1

      Thank you for the kind words Rafael! Much appreciated! Thank you also for purchasing my course and all the best with your CCNA studies!

    • @lyb777
      @lyb777 5 лет назад +1

      Good luck Rafael!!!

    • @jasonkellerman42
      @jasonkellerman42 5 лет назад

      @@lyb777 thank you good luck to you!

  • @invinciblesword9107
    @invinciblesword9107 5 лет назад +1

    I used the Kron occasionally but I didn't know about the Archive. Thanks for the good information. David!

  • @Shamzi
    @Shamzi 5 лет назад +1

    Nice options for automated backups. I myself use rancid and CVS from a Linux box where I can see the difference between configs on a webpage.

    • @davidbombal
      @davidbombal  5 лет назад

      Great example Marc. I'll be creating more videos showing how to do this type of thing with Python and Ansible etc.

  • @muhammadlukmanurh
    @muhammadlukmanurh 3 года назад

    i follow your video in linkedin learning, thats so awesome, please continue your video also in linkedin learning.

  • @chescarino
    @chescarino 4 года назад +1

    keep on trucking david; you're doing a good job and us all a good service

  • @kevindulli7764
    @kevindulli7764 4 года назад

    Wasn't sure I was in the right place when the video started, but I'm glad I stuck around :) . Great demo on kron jobs for those of us who are too lazy to go read Cisco docs!

    • @davidbombal
      @davidbombal  4 года назад

      Glad you enjoyed the video Kevin!

  • @catharsis222
    @catharsis222 5 лет назад

    These videos are a great additional help to abide by the time management videos made last December. No one should repeat new years hopes every year, and a healthy obsession from many sources after work puts anyone on the rise

  • @MrDome110
    @MrDome110 4 года назад

    Hi David, thanks for sharing this video. Greetings from Slovakia. Dominik.

  • @MrAlazawi
    @MrAlazawi 3 года назад

    Awesome, thanks David, big fan

  • @neorameetse
    @neorameetse Год назад

    Awesome explanation... Thank you

  • @naingaung7827
    @naingaung7827 5 лет назад +1

    This video is very helpful for me! Thanks, Mr.David.

  • @inderdeepsingh4076
    @inderdeepsingh4076 5 лет назад

    Thank you, David, you are doing a great job of sharing your knowledge with us.

  • @DevPreeth
    @DevPreeth 5 лет назад +1

    Again a very useful Video from you .
    Thank u so much sir.

  • @gordwyatt
    @gordwyatt 5 лет назад

    Awesome David! I didn't know about the / in the show run either. Thanks so much.

  • @ganeshg786
    @ganeshg786 5 лет назад +3

    A Good video from a very Good person.
    Thank you ☺️

  • @midas087
    @midas087 5 лет назад

    Nice...to learn new stuff...using the same as cron in linux. I do use archiving from day one. Good stuff David 👍

  • @neomatrix3612
    @neomatrix3612 5 лет назад

    This is pretty cool, didn't know about this feature. I think ultimately it's better to have it all running from a central location so you can track the status of backups etc. Unless you wrote a script to check the tftp folder every day for the right amount of files. Cheers for the vid

  • @AH-ps3uv
    @AH-ps3uv 5 лет назад +2

    Hello David, cool video as of always. Like others have suggested any chance if you get the time for some Ansible and/or advanced IP SLA''s would be highly appreciated

  • @mohammedmelad3769
    @mohammedmelad3769 4 года назад

    very useful thing....Wonderful Mr.David

  • @josephlee256
    @josephlee256 5 лет назад +1

    Another great video to watch., much appreciated it.

  • @IC_Pirate
    @IC_Pirate 5 лет назад

    Great Video David, thanks for sharing the knowledge!

  • @tegardk
    @tegardk 5 лет назад +1

    thanks for sharing, i already waiting for this tutorial

  • @IQ88612
    @IQ88612 5 лет назад

    i remember that video of the snake, wish u and ur daughter the best

  • @butchbbg
    @butchbbg 2 года назад

    This is exactly what I wanted. Thank you!

  • @ghvdg
    @ghvdg 5 лет назад

    Python programming language has nothing to do with snakes. "Python's name is derived from the British comedy group Monty Python, whom Pythoncreator Guido van Rossum enjoyed while developing the language." Wikipedia ... anyways great material. Thanks David!

    • @davidbombal
      @davidbombal  5 лет назад +1

      lol... agreed. .. just having some fun :)

  • @nishanth.sangani
    @nishanth.sangani 5 лет назад

    Yes, it's simple way to backup configs..... thank you...

    • @davidbombal
      @davidbombal  5 лет назад

      Glad you found the video useful Nishanth

    • @nishanth.sangani
      @nishanth.sangani 5 лет назад

      Yes Sir..can you do video on loopback interfaces on routers... Thanks

  • @ronetteprinsloo5048
    @ronetteprinsloo5048 5 лет назад

    Thanks David. Busy watching 😃

  • @ozzman530
    @ozzman530 5 лет назад

    Another interesting way to grab or backup configs is using a RW community and performing an SNMPWALK

  • @dhilipkumar2567
    @dhilipkumar2567 4 года назад

    Much needed one! Thanks David 👍

    • @davidbombal
      @davidbombal  4 года назад

      Thank you for watching Dhilip

  • @osmansalah7687
    @osmansalah7687 5 лет назад +1

    Thanks you David great job and clear explanation... can you make Video how ew can use Windows Qemu on Gns3 .
    Thanks

  • @_SkillAbility
    @_SkillAbility 5 лет назад

    Thank you very much David !

  • @ubeaut
    @ubeaut 4 года назад

    Great video and it works. There is a typo here in the archive part: time-peiod 10080 the word period is spelt incorrectly.

  • @lkfng
    @lkfng 5 лет назад

    Thank you, Sir, this helped me a bunch.

  • @VinodYadav-gg9si
    @VinodYadav-gg9si 5 лет назад +3

    Thanks for sharing such a nice video.Can you please make another video for congfig backup though Ansible ?

  • @lgou5590
    @lgou5590 3 года назад

    HI, thanks for the help. Please can you do a video on the installation of Oxidized on ubuntu and configuration.

  • @davidbombal
    @davidbombal  5 лет назад

    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
    ================================
    Free TFTP Server:
    =================================
    Free SolarWinds TFTP Server: bit.ly/2mbtD6j
    =================================
    Documentation:
    =================================
    Kron: bit.ly/2kkgIhU
    Archive:
    bit.ly/2kI8BMb
    bit.ly/2mgQa1L
    =================================
    Books:
    =================================
    Cisco Press Book: amzn.to/2LpaU1a
    Good O'Reilly Book: 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

  • @fvanderstel
    @fvanderstel 5 лет назад

    Thank you verry verry mutch David. This was verry usefull

  • @Jesse-ue2yt
    @Jesse-ue2yt Год назад

    This is great David!

  • @thetoberfest
    @thetoberfest 5 лет назад

    David, wonderful video! I would however like to see how you can get archive to work with SCP, as most are going away from insecure protocols. Again, another wonderful video!

    • @davidbombal
      @davidbombal  5 лет назад +1

      conf t
      archive
      path scp://[USER]:[password]@[SCP Server]/[Path]/$h-
      write-memory
      time-period 1440
      !
      end
      wr
      From here:
      bit.ly/2mgQa1L

    • @thetoberfest
      @thetoberfest 5 лет назад

      Thank you! Do you know how to secure the password so it isnt plain text in the running config?

    • @davidbombal
      @davidbombal  5 лет назад

      @@thetoberfest Doesn't look like it. Even the service password-encryption command doesn't hide it :(

  • @AJ-jm6zp
    @AJ-jm6zp 4 года назад

    Hello Sir, as always, it makes my work easy. thank you so much:)

  • @vishaldivekar30
    @vishaldivekar30 5 лет назад

    Special thanks for this video.

  • @technothoughts7100
    @technothoughts7100 5 лет назад

    need more video, thanks for your effort for us. im your big fan

    • @davidbombal
      @davidbombal  5 лет назад

      Thank you. Which types of videos would you like?

    • @technothoughts7100
      @technothoughts7100 5 лет назад

      @@davidbombal Policy based routing tuto and BGP basic to Advanced

  • @fzack4496
    @fzack4496 5 лет назад

    David you’re the best!

  • @boussorayacine249
    @boussorayacine249 5 лет назад

    Thank you, it's very useful

  • @BlindPigBluesBand
    @BlindPigBluesBand 5 лет назад

    So useful! Thank you!

  • @sadiamarium6745
    @sadiamarium6745 2 года назад

    Thankyou Sir

  • @elgodot0
    @elgodot0 5 лет назад +2

    Hi David Bombal! I have been following you for a while and I very much appreciate the high quality content material you create. One of things that I'm trying to mimic but cannot seem to find any answer (maybe I did see it but I don't realize it) is how to add/integrate python to gns3. Sure I can download it on Win10 but from what I'm seeing, it's within gns3. Maybe I'm wrong but I'm totally confused. I want to learn and experiment with python but this is my road block. Do you think you can create a video on how to add/integrate python from scratch? Or if you do have a video, may you direct me? Again, thanks a lot for the material and clarity you bring!!

    • @davidbombal
      @davidbombal  5 лет назад

      The easiest way is to drag the Network Automation container into your GNS3 topologies. That has Python built in.

  • @mbaker82
    @mbaker82 5 лет назад

    awesome video! I wish I would have seen this about two months ago... would have saved me a crap ton of time! your a networking god David! :) Can you tell me where you got those GNS3 images for your network devices?

    • @davidbombal
      @davidbombal  5 лет назад

      I got them from Cisco VIRL: virl.cisco.com (but you have to pay for them)

  • @user-xp4xv6hu2p
    @user-xp4xv6hu2p 5 месяцев назад

    Thank you

  • @sudarshankasat1342
    @sudarshankasat1342 Год назад

    Hello sir, thank you so much for this video. This is exactly what I was looking for. But can you please advise how I can take the backup in the local machine itself without using the tftp server as I don't have a tftp server installed.

  • @jimmymutoro7355
    @jimmymutoro7355 4 года назад

    Awesome

  • @606nik
    @606nik 4 года назад

    Great video.
    Can we add multiple commands like show run , show vtp status and backup to a single file, either by kron or archiving method?

  • @JaimicoCL
    @JaimicoCL 3 года назад

    Thanks a lot, sir! This is exactly what I was looking for! But I have a doubt with kron, can we add a number or date to the file name? for example, R1-config1, R1-config2, R1-config3, or, R1-config-30_10_2020, etc.

  • @alexiosalexiou12
    @alexiosalexiou12 4 года назад

    Very good video. I want to ask you about archive and log config. What is this about? Will this log will be sent somewhere or its in the flash? I am sorry for my question but im new in this

  • @hansthepeter
    @hansthepeter 5 лет назад

    hey david
    i would love to see a python Video, which shows:
    get config with ncclient
    convert to dict
    change config
    convert it back
    upload to it back via ncclient
    if you don't answer this comment, i will ask you on the cisco live in Barcelona next year 😜

  • @alinmuntean2916
    @alinmuntean2916 5 лет назад +1

    Great!! With Juniper and python do you have anything in plan for future? Thanks

    • @davidbombal
      @davidbombal  5 лет назад +1

      I'll think about this. I am more of a Cisco guy however :(

  • @James67851
    @James67851 2 года назад

    Can python be used to push this out to all the routers and switches on the network, so that we don't have to manually add it to each one ? This is exactly what I was looking for. Now wondering how to deploy it to all devices efficiently. Thank you

  • @mohammadsarkari1477
    @mohammadsarkari1477 3 года назад

    Thanks for your great video! Is there a such way to schedule import that archived config file to another cisco switch for redundancy, i would like to have two same cisco switch with exactly same config file.

  • @ilhomahmadjonov1607
    @ilhomahmadjonov1607 3 года назад +1

    Hi David. I have an error: " Bad file number"
    Can you help me please.

  • @sandeepdhuri
    @sandeepdhuri 5 лет назад

    Thanks

  • @netroot-kb5wq
    @netroot-kb5wq Год назад

    Good morning
    I have a problem with my Cisco SF500-48p switch
    the archive command does not work in this version of switch and even the kron command
    THANKS

  • @riadadelbousselama8440
    @riadadelbousselama8440 3 года назад

    Thank you For you +Positivity!
    Is there any way to archive also show Commands! if yes How?
    Remarque:
    Even in config priviledge mode with #Do, the shows are not archived!
    Cordially.

  • @VukaK
    @VukaK 5 лет назад

    Hi David, wanted to find out what books and sites(blogs) would recommend an up and coming engineer to be reading in order to improve their networking skills? regards

    • @davidbombal
      @davidbombal  5 лет назад

      Any specific technology area? There are many good books, but there is a wide range of topics in networking. Two good sites are packetpushers.net and ipspace.net

  • @luisemiliocalzadoc934
    @luisemiliocalzadoc934 2 года назад

    Is a nice video, thanks for this. I'm triying to replicate the configuration but for some reason I can not assign an IP address to the toolbox. Would you please giveme son light.

  • @KylePaynter
    @KylePaynter 6 месяцев назад

    How do you push the configs to a specific file on the TFTP server

  • @praveensreedhar7210
    @praveensreedhar7210 5 лет назад

    We used this method in our production and some devices show high cpu utilization

    • @davidbombal
      @davidbombal  5 лет назад

      Which method Praveen? kron or archive? Which devices and which versions of Cisco IOS?

    • @praveensreedhar7210
      @praveensreedhar7210 4 года назад

      @@davidbombal kron method. IOS I will check and update

  • @misterdanieldoleomatos2741
    @misterdanieldoleomatos2741 3 года назад

    Hi David, end Thanks I would like to do something like that but on Nexus switches. any advices ?

  • @619sdbdub
    @619sdbdub 2 года назад

    No one is going to automate backing up just one router or switch. I was really hoping that you would shown how this work in an environment that has dozens or hundreds of switches. When you switched to a scheduled backup, there seemed to be no mention of the file name - only the date/time stamp. What happens when you program kron on multiple devices and point it to a TFTP server? How do the filenames show up? Still, you presented a worthy subject as I am just starting a position in which there are no local backup of switch configs but probably 100 switches.

    • @asrarahmedfarooqui5563
      @asrarahmedfarooqui5563 2 года назад

      Do they have a solarwinds ? You can bring the configs backups to the solarwinds. The place where i am working we do save the config backups in solarwinds and i am presently working to add some nodes in solarwinds and also be able to bring the configs to solarwinds.

  • @shivavishnu1279
    @shivavishnu1279 3 года назад

    How to config multilayer switch for backup and restore please help me, sir, I need for this

  • @AbuAhmedAlsudani
    @AbuAhmedAlsudani 5 лет назад

    Thanks David for sharing knowledge.
    But is that's mean Mr. Python is dead? Or no need it at all? Thanks again in advance.

    • @davidbombal
      @davidbombal  5 лет назад +1

      No. This was just a demonstration showing you that you don't need Python for every situation. I would still use Python for lots of things including backups if that is something you prefer doing.

    • @AbuAhmedAlsudani
      @AbuAhmedAlsudani 5 лет назад

      @@davidbombal Thanks Mr

  • @MrDome110
    @MrDome110 4 года назад

    Hi David, is there some possibility to do automatic backup of startup config from Cisco SG550X swich where kron/archive command is not available? Thank You, regards.

  • @bhea24322434
    @bhea24322434 3 года назад

    do you have anything like this that will be applicable in ASA 5500 series with multiple context?

  • @kpyjsan7021
    @kpyjsan7021 5 лет назад

    Thanks, but i have more question.
    If we need backup more one command such as
    sh run
    sh vlan
    sh ip int br
    How can we do?

  • @scottosds
    @scottosds 4 года назад

    Hi David, Thanks for taking the time to make this video. I am having an issue that wasn't mentioned. You mention tftp: ftp: and scp: synonymously, but I am unable to implement scp in an automated fashion.
    I have established connectivity, and can use scp: by manually supplying a password using the URL "@:/", which then requires a password to be entered manually.
    If I try to include password ":@:/", to automate, the login fails. Interestingly, this syntax works fine on ASA, but not any version IOS or IOS-XE. I opened a TAC case and was told IOS or IOS-XE have never supported inclusion of password, and the only automated way of using a secure protocol is with Prime.
    Do you know of any way to securely backup configurations automatically?
    Thanks in advance!

  • @sdf1677
    @sdf1677 5 лет назад

    very nice, I think I can make a good use of the show run copy with php to publish for my supervisor so that he can view info such as IOS version or port status. I am managing more than 1000 switches and routers at the same time. Any suggestion?

    • @davidbombal
      @davidbombal  5 лет назад +2

      Have a look at using Python and SSH to the devices. If you are using Cisco devices, look at Genie.

    • @sdf1677
      @sdf1677 5 лет назад

      @@davidbombal Yes, I was looking at Genie, but I want a very basic tutorial. I cant find it. is it a very new tool?

  • @thivakaran6849
    @thivakaran6849 4 года назад

    Hi David, is there any automation where we can do automate upgrade of Cisco IOS upgrade. Please do let us know ..Thanks in advance

  • @noorbacha8318
    @noorbacha8318 Год назад

    need same for huawei switches please help

  • @mohmra
    @mohmra 4 года назад

  • @bumpthecrypto3059
    @bumpthecrypto3059 5 лет назад

    When it appears in the folder the file doesnt come out as a running config but as all the words together.anyone got any solutions?

  • @Aksimeaw
    @Aksimeaw 2 года назад

    Hi what should I aware for using this method ? Is there a chance A Hacker will stole my config ?

  • @georgemavimbela
    @georgemavimbela 5 лет назад

    Is the one for Nexus OS.. I tried last year.. It failed

  • @muhammadshah733
    @muhammadshah733 3 года назад

    What if my ftp requires username password ?

  • @sadiamarium6745
    @sadiamarium6745 2 года назад

    i need IOS 1000 Series need help

  • @zmullin1
    @zmullin1 5 лет назад

    is there a way to then look at the difference between configs?

    • @davidbombal
      @davidbombal  5 лет назад

      On Linux you could use diff like this:
      root@Ubuntu:/tftpboot# diff R1--Sep-14-20-11-00.018-0 R1--Sep-14-20-11-41.350-3 3c3
      < ! Last configuration change at 20:10:53 UTC Sat Sep 14 2019
      ---
      > ! Last configuration change at 20:11:39 UTC Sat Sep 14 2019
      79,81d78
      < !
      < interface Loopback500
      < ip address 150.1.2.3 255.255.255.255
      root@Ubuntu:/tftpboot#

  • @madaraekouta8058
    @madaraekouta8058 5 лет назад

    hi sir

  • @JosueRodriguez08
    @JosueRodriguez08 5 лет назад

    I don't get why people from USA thinks that an animal 50meters away is an encounter

  • @catharsis222
    @catharsis222 5 лет назад

    What do you think about more challenging languages like C/C++ and do they have any application to you or network engineers? Python is made of C. EIGRP/OSPF/iOS/junOS are C++. Also C++ is a lower level language more directly for the chip & RAM with speed gains, giving employees a greater idea of their work & craft. There is a school of thought by dev leads that Python is easy that babies can do it, and C is for REAL programmers. What is your impression of Python & C?

  • @IQ88612
    @IQ88612 5 лет назад

    Mr. Bombal regarding the change of cisco certificate as i remember u told me once that I have time till February 2020, but what if i wanted to do my CCNA exam after that date? can i do it or i'll have to take a different course? knowing that my CCNA course that i took was 200-125

    • @davidbombal
      @davidbombal  5 лет назад +1

      CCNA changes in Feb 2020. If you pass the current CCNA before that date, you will get the new CCNA as well. If you wait you will need to take the new course and exam, but there is overlap of content so it should not be that difficult.

    • @IQ88612
      @IQ88612 5 лет назад

      @@davidbombal thank you for your answer

  • @mohameddridi8020
    @mohameddridi8020 5 лет назад

    more