Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

request system autorecovery state

Syntax

Description

Use this command to prepare the system for autorecovery of configuration, licenses, and disk information.

In devices running FreeBSD Release 12 or later, you cannot back up data with the autorecovery feature. Instead, back up data using snapshots. To learn if your device is running FreeBSD Release 12 or later, issue the show version command and look for the fbsd_builder_stable string in the module names. If the string includes the number 12 or later, your device is running FreeBSD Release 12 or later.

Options

save

Save the current state of the disk partitioning, configuration, and licenses for autorecovery.

The active Junos OS configuration is saved as the Junos rescue configuration, after which the rescue configuration, licenses, and disk partitioning information is saved for autorecovery. Autorecovery information must be initially saved using this command for the autorecovery feature to verify integrity of data on every bootup.

Any recovery performed at a later stage will restore the data to the same state as it was when the save command was executed.

A fresh rescue configuration is generated when the command is executed. Any existing rescue configuration will be overwritten.

recover

Recover the disk partitioning, configuration, and licenses.

After autorecovery data has been saved, the integrity of saved items is always checked automatically on every bootup. The recovery command allows you to forcibly re-run the tests at any time if required.

clear

Clear all saved autorecovery information.

Only the autorecovery information is deleted; the original copies of the data used by the router are not affected. Clearing the autorecovery information also disables all autorecovery integrity checks performed during bootup.

Required Privilege Level

maintenance

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

request system autorecovery state save

Sample Output

request system autorecovery state recover

Sample Output

request system autorecovery state clear

Release Information

Command introduced in Junos OS Release 15.1X49-D35.