You are on page 1of 1

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 devices configuration is sent to
192.168.103.20 within the specified interval.
[edit system archival]
user@srx100-1# show
configuration {
transfer-interval 15;

[edit system archival]


1
user@srx100-1# show
2
configuration {
3
transfer-interval 15;
4
archive-sites {
5
"scp://junos@192.168.103.20/home/junos/device_configs" password
6
"$9$197IhrW87dVY1R87-V4oQF3/p0IEc";
7
}
8
}
If you list the files on the remote server you will see the files transferred after commit;
root@ubuntu-vm1:/home/junos/
total 16
-rw -r----- 1 junos junos 4396 No
-rw -r----- 1 junos junos 4396 No

1
2
3
4

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

You might also like