Switching

 View Only
last person joined: 18 hours ago 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  Restoring from a config file

    Posted 08-01-2019 15:48

    Hello,

     

    I used filezilla to copy the config of another switch.  

    show | display set | display inheritance | save /var/tmp/config_backup.txt

     

    I now have the txt file.  I've changed the switch name and the snmp name and the ip address and would like to copy it to my next switch.

    What should I name it?

    What folder should I copy it to on the switch?

    How to I make it the production config?



  • 2.  RE: Restoring from a config file

    Posted 08-01-2019 15:59

    copy the file to any folder such as /var/tmp

     

    enter config mode

    delete <<< this removes all current config

    request load set /var/tmp/myfilename.txt

     

    reference

    https://www.juniper.net/documentation/en_US/src4.8/topics/concept/src-configuration-commands-load.html

     

     



  • 3.  RE: Restoring from a config file
    Best Answer

     
    Posted 08-01-2019 16:34

    Hi jimbo55,

     

    @spuluka is right, you can copy the file to any folder and then load the config file saved in "set" format. Slight correction to the load command, it doesn't need a "request" preceding it i.e. it's just like:

     

    edit
    delete
    load set /var/tmp/config_backup.txt
    show | compare
    commit

     

    Hope this helps.

     

    Regards,
    -r.

    --------------------------------------------------

    If this solves your problem, please mark this post as "Accepted Solution."
    Kudos are always appreciated :).

     



  • 4.  RE: Restoring from a config file

    Posted 08-01-2019 16:53

    I just want to add a coupe of details to Steve Puluka's answer,

     

    It will be recommended to copy the file to /var/tmp

     

    then the next 2 steps are fine,

     

    enter to config mode (> edit)

    run "delete" to delete the whole config

     

    But in order to load the config the command will be "load set" no need for that initial "request"

    # load set /var/tmp/config.txt

     

    Also I would like to add that you can run this command "show configuration | display set | no-more" and either log the session or copy and paste the output to a text editor to quickly get the config file without using filezilla

     

    Reagards