Network Automation: Schedule Cisco config backups with kron and archive

Поділитися
Вставка

КОМЕНТАРІ •

  • @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!

  • @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.

  • @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!

  • @GoonCity777
    @GoonCity777 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

  • @Rick5040
    @Rick5040 5 років тому +7

    Thanks, I learned something new about Cisco IOS today.

  • @chescarino
    @chescarino 5 років тому +1

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

  • @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

  • @MrDome110
    @MrDome110 4 роки тому

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

  • @muhammadlukmanurh
    @muhammadlukmanurh 3 роки тому

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

  • @gordwyatt
    @gordwyatt 5 років тому

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

  • @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 років тому +1

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

  • @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 👍

  • @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.

  • @ganeshg786
    @ganeshg786 5 років тому +3

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

  • @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

  • @IC_Pirate
    @IC_Pirate 5 років тому

    Great Video David, thanks for sharing the knowledge!

  • @IQ88612
    @IQ88612 5 років тому

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

  • @josephlee256
    @josephlee256 5 років тому +1

    Another great video to watch., much appreciated it.

  • @tegardk
    @tegardk 5 років тому +1

    thanks for sharing, i already waiting for this tutorial

  • @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 :)

  • @mohammedmelad3769
    @mohammedmelad3769 5 років тому

    very useful thing....Wonderful Mr.David

  • @butchbbg
    @butchbbg 3 роки тому

    This is exactly what I wanted. Thank you!

  • @ronetteprinsloo5048
    @ronetteprinsloo5048 5 років тому

    Thanks David. Busy watching 😃

  • @MrAlazawi
    @MrAlazawi 4 роки тому

    Awesome, thanks David, big fan

  • @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 :(

  • @neorameetse
    @neorameetse Рік тому

    Awesome explanation... Thank you

  • @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

  • @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

  • @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

  • @dhilipkumar2567
    @dhilipkumar2567 5 років тому

    Much needed one! Thanks David 👍

    • @davidbombal
      @davidbombal  5 років тому

      Thank you for watching Dhilip

  • @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 :(

  • @fvanderstel
    @fvanderstel 5 років тому

    Thank you verry verry mutch David. This was verry usefull

  • @lgou5590
    @lgou5590 3 роки тому

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

  • @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.

  • @AJ-jm6zp
    @AJ-jm6zp 5 років тому

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

  • @Jesse-ue2yt
    @Jesse-ue2yt 2 роки тому

    This is great David!

  • @ozzman530
    @ozzman530 5 років тому

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

  • @lkfng
    @lkfng 5 років тому

    Thank you, Sir, this helped me a bunch.

  • @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

  • @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.

  • @_SkillAbility
    @_SkillAbility 5 років тому

    Thank you very much David !

  • @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.

  • @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

  • @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

  • @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

  • @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?

  • @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.

  • @fzack4496
    @fzack4496 5 років тому

    David you’re the best!

  • @ilhomahmadjonov1607
    @ilhomahmadjonov1607 3 роки тому +1

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

  • @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?

  • @riadadelbousselama8440
    @riadadelbousselama8440 4 роки тому

    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.

  • @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)

  • @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?

  • @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.

  • @vishaldivekar30
    @vishaldivekar30 5 років тому

    Special thanks for this video.

  • @KylePaynter
    @KylePaynter 9 місяців тому

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

  • @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.

  • @misterdanieldoleomatos2741
    @misterdanieldoleomatos2741 3 роки тому

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

  • @bhea24322434
    @bhea24322434 3 роки тому

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

  • @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#

  • @thivakaran6849
    @thivakaran6849 5 років тому

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

  • @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

  • @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 5 років тому

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

  • @shivavishnu1279
    @shivavishnu1279 3 роки тому

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

  • @boussorayacine249
    @boussorayacine249 5 років тому

    Thank you, it's very useful

  • @BlindPigBluesBand
    @BlindPigBluesBand 5 років тому

    So useful! Thank you!

  • @momentswithGod-x2v
    @momentswithGod-x2v 5 років тому

    how caN i get cisco ios for gns3 Mr.David bombal?

    • @davidbombal
      @davidbombal  5 років тому

      Best place is virl.cisco.com

  • @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 ?

  • @JaimicoCL
    @JaimicoCL 4 роки тому

    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.

  • @luisemiliocalzadoc934
    @luisemiliocalzadoc934 3 роки тому

    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.

  • @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

  • @noorbacha8318
    @noorbacha8318 2 роки тому

    need same for huawei switches please help

  • @georgemavimbela
    @georgemavimbela 5 років тому

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

  • @momentswithGod-x2v
    @momentswithGod-x2v 5 років тому

    HELLO David where can i get cisco iso images

  • @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!

  • @muhammadshah733
    @muhammadshah733 4 роки тому

    What if my ftp requires username password ?

  • @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 😜

  • @VinodYadav-gg9si
    @VinodYadav-gg9si 5 років тому +3

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

  • @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

  • @sadiamarium6745
    @sadiamarium6745 3 роки тому

    i need IOS 1000 Series need help

  • @sadiamarium6745
    @sadiamarium6745 3 роки тому

    Thankyou Sir

  • @MouhamedAmineChtourou
    @MouhamedAmineChtourou 9 місяців тому

    Thank you

  • @jimmymutoro7355
    @jimmymutoro7355 4 роки тому

    Awesome

  • @sandeepdhuri
    @sandeepdhuri 5 років тому

    Thanks

  • @JosueRodriguez08
    @JosueRodriguez08 5 років тому

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

  • @madaraekouta8058
    @madaraekouta8058 5 років тому

    hi sir

  • @GoonCity777
    @GoonCity777 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?

  • @mohmra
    @mohmra 4 роки тому

  • @mohameddridi8020
    @mohameddridi8020 5 років тому

    more