Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 10.0 for EX Series switches.
![]() | Caution: After you run the request system snapshot command, you cannot return to the previous version of the software, because the running and backup copies of the software are identical. |
The specific options available depend upon the router or switch:
none | — | Back up the currently running software as follows:
|
all-chassis | all-lcc | lcc number | — | (TX Matrix and TX Matrix Plus router only) (Optional)
|
all-members | local | member member-id | — | (EX4200, EX4500, and EX8200 Virtual Chassis and MX Series routers only) (Optional) Specify where to place the snapshot (archive data and executable areas) in a Virtual Chassis:
|
as-primary | — | (J Series routers only) (Optional) Create a snapshot that can be used to replace the medium in the primary compact flash drive. This option can be used on the removable compact flash only. The option copies the default files that were loaded on the primary compact flash drive when it was shipped from the factory, plus the rescue configuration if one has been set. This option is useful if you have multiple routers and want to use the same software and configuration on each router. After a boot device is created as a primary compact flash drive, it can operate in only a primary compact flash drive slot. This option causes the boot medium to be partitioned. |
config-size size | — | (J Series routers only) (Optional) Specify the size of the config partition, in megabytes. The default value is 10 percent of physical memory on the boot partition. The config partition is mounted on /config, and the configuration files are stored in this partition. This option causes the boot medium to be partitioned. |
data-size size | — | (J Series routers only) (Optional) Specify the size of the data partition, in megabytes. The default value is 0 MB. The data partition is mounted on /data. This space is not used by the router, and can be used for extra storage. This option causes the boot medium to be partitioned. |
factory | — | (J Series routers only) (Optional) Copy only default files that were loaded on the primary compact flash drive when it was shipped from the factory, plus the rescue configuration if one has been set. After the boot medium is created with the factory option, it can operate in only the primary compact flash drive. |
media type | — | (J Series routers and EX Series switches only)(Optional) Specify the boot device the software is copied to:
|
partition | — | (Optional) Repartition the flash drive before a snapshot occurs. If the partition table on the flash drive is corrupted, the request system snapshot command fails and reports errors. The partition option is only supported for restoring the software image from the hard drive to the flash drive. (Routers only) You cannot issue the request system snapshot
command when you enable flash disk mirroring. We recommend that you
disable flash disk mirroring when you upgrade or downgrade the software.
For more information, see the Junos OS System Basics Configuration Guide |
re0 | re1 | routing-engine routing-engine-id | — | (EX8200 switch only) Specify where to place the snapshot in a redundant Routing Engine configuration.
|
root-size size | — | (J Series routers only) (Optional) Specify the size of the root partition, in megabytes. The default value is one-third of the physical memory minus the config, data, and swap partitions. The root partition is mounted on / and does not include configuration files. This option causes the boot medium to be partitioned. |
slice (1 | 2 |alternate) | — | (EX Series switches only) (Optional) Take a snapshot of the active root partition and copy it to the selected slice on the boot media. |
scc | — | (TX Matrix router only) (Optional) Archive data and executable areas for a TX Matrix router (or switch-card chassis). |
sfc number | — | (TX Matrix Plus router only) (Optional) Archive data and executable areas for a TX Matrix Plus router (or switch-fabric chassis). Replace number with 0. |
swap-size size | — | (J Series router only) (Optional) Specify the size of the swap partition, in megabytes. The default value is one-third of the physical memory on a boot medium larger than 128 MB, or 0 MB on a smaller boot device. The swap partition is used for swap files and software failure memory snapshots. Software failure memory snapshots are saved to the boot medium only if it is specified as the dump device in the system dump-device configuration hierarchy. This option causes the boot medium to be partitioned. |
maintenance
When you enter this command, you are provided feedback on the status of your request.
request system snapshot (Routers)
user@host> request system snapshot umount: /altroot: not currently mounted Copying / to /altroot.. (this may take a few minutes) umount: /altconfig: not currently mounted Copying /config to /altconfig.. (this may take a few minutes) The following filesystems were archived: / /config
request system snapshot (EX Series Switches)
user@switch> request system snapshot fpc0: -------------------------------------------------------------------------- Verifying compatibility of destination media partitions... Running newfs (345MB) on external media / partition ... Running newfs (235MB) on external media /config partition ... The following filesystems were archived: / /config /var
request system snapshot (When Partition Flag Is On)
user@host> request system snapshot partition Performing preliminary partition checks ... Partitioning ad0 ... umount: /altroot: not currently mounted Copying / to /altroot.. (this may take a few minutes) The following filesystems were archived: / /config
request system snapshot (When Mirroring Is Enabled)
user@host> request system snapshot Snapshot is not possible since mirror-flash-on-disk is configured.
request system snapshot all-lcc (Routing Matrix)
user@host> request system snapshot all-lcc lcc0-re0: -------------------------------------------------------------------------- Copying '/' to '/altroot' .. (this may take a few minutes) Copying '/config' to '/altconfig' .. (this may take a few minutes) The following filesystems were archived: / /config lcc2-re0: -------------------------------------------------------------------------- Copying '/' to '/altroot' .. (this may take a few minutes) Copying '/config' to '/altconfig' .. (this may take a few minutes) The following filesystems were archived: / /config
request system snapshot all-members (Virtual Chassis)
user@switch> request system snapshot all-members
media internal
fpc0: -------------------------------------------------------------------------- Copying '/dev/da0s2a' to '/dev/da0s1a' .. (this may take a few minutes) The following filesystems were archived: / fpc1: -------------------------------------------------------------------------- Copying '/dev/da0s2a' to '/dev/da0s1a' .. (this may take a few minutes) The following filesystems were archived: / fpc2: -------------------------------------------------------------------------- Copying '/dev/da0s2a' to '/dev/da0s1a' .. (this may take a few minutes) The following filesystems were archived: / fpc3: -------------------------------------------------------------------------- Copying '/dev/da0s2a' to '/dev/da0s1a' .. (this may take a few minutes) The following filesystems were archived: / fpc4: -------------------------------------------------------------------------- Copying '/dev/da0s2a' to '/dev/da0s1a' .. (this may take a few minutes) The following filesystems were archived: / fpc5: -------------------------------------------------------------------------- Copying '/dev/da0s2a' to '/dev/da0s1a' .. (this may take a few minutes) The following filesystems were archived: /