Archiving junos configurations

There is a very handy feature in junos which you may find very useful if you have lots of junos devices. JunOS can send your active configuration after every commit to a configured remote destination server by using scp,http or ftp protocols. A small configuration is sufficient to achieve this. For example with the configuration below, my SRX device’s configuration is sent to 192.168.103.20 within the specified interval.

[edit system archival]
user@srx100-1# show
configuration {
    transfer-interval 15;
    archive-sites {
        "scp://junos@192.168.103.20/home/junos/device_configs" password "$9$197IhrW87dVY1R87-V4oQF3/p0IEc";
    }
}

If you list the files on the remote server you will see the files transferred after commit;


root@ubuntu-vm1:/home/junos/device_configs# ls -l
total 16
-rw-r----- 1 junos junos 4396 Nov 14  2012 srx100-1_juniper.conf.gz_20121114_223914
-rw-r----- 1 junos junos 4396 Nov 14  2012 srx100-1_juniper.conf.gz_20121114_225414

About: rtoodtoo

Worked for more than 10 years as a Network/Support Engineer and also interested in Python, Linux, Security and SD-WAN // JNCIE-SEC #223 / RHCE / PCNSE


You have a feedback?

Discover more from RtoDto.net

Subscribe now to keep reading and get access to the full archive.

Continue reading