request system autorecovery state
Syntax
request system autorecovery state (save | recover | clear)
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
user@host> request system autorecovery state save
Saving config recovery information
Saving license recovery information
Saving bsdlabel recovery informationSample 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
Release Information
Command introduced in Junos OS Release 15.1X49-D35.