Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

request system autorecovery state

Syntax

request system autorecovery state (save | recover | clear)

Release Information

Command introduced in Junos Release 11.2.

Description

Prepares the system for autorecovery of configuration, licenses, and disk information.

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.

Note:

  • 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

List of Sample Output

request system autorecovery state save
request system autorecovery state recover
request system autorecovery state clear

Output Fields

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

Sample Output

request system autorecovery state save

user@host> request system autorecovery state save
Saving config recovery information
      Saving license recovery information
      Saving bsdlabel recovery information

Sample Output

request system autorecovery state recover

user@host> request system autorecovery state recover
Configuration:
File             Recovery Information    Integrity Check    Action / Status
rescue.conf.gz   Saved                   Passed             None
Licenses:
File             Recovery Information    Integrity Check    Action / Status
JUNOS282736.lic  Saved                   Passed             None
JUNOS282737.lic  Saved                   Failed             Recovered
BSD Labels:
Slice            Recovery Information    Integrity Check    Action / Status
s1               Saved                   Passed             None
s2               Saved                   Passed             None
s3               Saved                   Passed             None
s4               Saved                   Passed             None
        

Sample Output

request system autorecovery state clear

user@host> request system autorecovery state clear
Clearing config recovery information
       Clearing license recovery information
       Clearing bsdlabel recovery information
        

Modified: 2016-06-07

Modified: 2016-06-07