Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Using Junos OS to Specify the Number of Configurations Stored on the CompactFlash Card

By default, Junos OS saves the current configuration and three previous versions of the committed configuration on the CompactFlash card, with an additional 46 older versions stored on the hard drive. The currently operational Junos OS configuration is stored in the file juniper.conf.gz, and the last three committed configurations are stored in the files juniper.conf.1.gz, juniper.conf.2.gz, and juniper.conf.3.gz. These four files are located in the CompactFlash card in the directory /config.

In addition to saving the current configuration and the current operational version, you can also specify how many previous versions of the committed configurations you want stored on the CompactFlash card in the directory /config. The remaining previous versions of committed configurations (4 through 49) are stored in the directory /var/db/config on the hard disk. This is useful when you have very large configurations that might not fit on the CompactFlash card.

To specify how many previous versions of the committed configurations you want stored on the CompactFlash card, include the max-configurations-on-flash statement at the [edit system] hierarchy level:

number is a value from 0 through 49.