Technical Documentation

Compressing the Current Configuration File

By default, the current operational configuration file is compressed, and is stored in the file juniper.conf.gz, in the /config file system, along with the last three committed versions of the configuration. If you have large networks, the current configuration file might exceed the available space in the /config file system. Compressing the current configuration file enables the file to fit in the file system, typically reducing the size of the file by 90 percent. You might want to compress your current operation configuration files when they reach 3 megabytes (MB) in size.

When you compress the current configuration file, the names of the router’s configuration files change. To determine the size of the files in the /config file system, issue the file list /config detail command.

Note: We recommend that you use the default setting (compress the router configuration files) to minimize the amount of disk space that they require.

To compress the current configuration file, include the compress-configuration-files statement at the [edit system] hierarchy level:

Commit the current configuration file to include the compression-configuration-files statement. Commit the configuration again to compress the current configuration file:

[edit system]user@host# set compress-configuration-filesuser@host# commitcommit completeuser@host# commitcommit complete

If you do not want to compress the current operational configuration file, include the no-compress-configuration-files statement at the [edit system] hierarchy level:

Commit the current configuration file to include the no-compress-configuration-files statement. Commit the configuration again to uncompress the current configuration file:

[edit system]user@host# user@host# commitcommit completeuser@host# commitcommit complete

Published: 2010-04-26