Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

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 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 compress the configuration files (this is the default) to minimize the amount of disk space that they require.

  • If you want to compress the current configuration file, include the compress-configuration-files statement at the [edit system] hierarchy level:
    [edit system]compress-configuration-files;

    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:
    [edit system]no-compression-configuration-files;

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# commitcommit completeuser@host# commitcommit complete

Published: 2013-08-15