Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Default Directories for Junos OS Evolved File Storage

Junos OS Evolved files are stored in the following directories on the device:

  • /boot—This directory contains the boot loader and associated files.

  • /config—This directory contains the current operational router or switch configuration and the last three committed configurations, in the files juniper.conf, juniper.conf.1, juniper.conf.2, and juniper.conf.3, respectively. The /config/scripts directory contains all stored scripts.

  • /data—This is the directory for all mutable copies of mutable directories. It contains the following subdirectories:

    • /config—Contains version-specific Juniper configuration files. This directory is bind mounted to /config, meaning that changes in either directory will be reflected in both directories.

    • /etc—Contains version-specific Linux configuration files. This directory is bind mounted to /etc.

      • /var/etc—Contains SSH host keys.

    • /var—Shared writable directory for all software versions. This directory is bind mounted to /var.

    • /var_db—Contains version-specific /var/db files. This directory is bind mounted to /var/db.

    • /var_db_scripts—Contains subdirectories for various script types. Scripts are stored in and executed from these directories. This directory is bind mounted to /var/db/scripts.
      • /var/db/scripts/commit—Contains commit scripts.
      • /var/db/scripts/op—Contains op scripts.
      • /var/db/scripts/event—Contains event scripts.
      • /var/db/scripts/snmp—Contains SNMP scripts.
      • /var/db/scripts/lib—Contains imported scripts.
    • /var_etc—Contains version-specific /var/etc files. This directory is bind mounted to /var/etc.

    • /var_pfe—Contains version-specific PFE configuration files. This directory is bind mounted to /var/pfe.

    • /var_rundb—Contains UI-related runtime-generated database files that are shared across versions. This directory is bind mounted to /var/rundb.

  • /soft—This directory is the software install area. All software versions are installed here.

  • /u—This directory is a read-only file system for the running version of Junos OS Evolved.

  • /var—This directory contains the following subdirectories:

    • /home—Contains users’ home directories, which are created when you create user access accounts. For users using SSH authentication, their .ssh file, which contains their SSH key, is placed in their home directory. When a user saves or loads a configuration file, that file is loaded from the current working directory unless the user specifies a full pathname.

    • /db/config—Contains up to 46 previous versions of committed configurations, which are stored in the files juniper.conf.4.gz through juniper.conf.49.gz.

    • /log—Contains system log and tracing files.

    • /core—Contains core files. The software saves up to five core files, numbered from 0 through 4. File number 0 is the oldest core file and file number 4 is the newest core file. To preserve the oldest core files, the software overwrites the newest core file, number 4, with any subsequent core file.

    • /tmp—Contains temporary files, including files that are generated when a crash event is detected.