Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

request vmhost zeroize

date_range 20-Sep-24

Syntax

content_copy zoom_out_map
request vmhost zeroize
<re0 | re1>
<routing-engine>

Description

Use this command to remove all configuration information on the Routing Engines and reset all key values. If the device has dual Routing Engines, the command is broadcast to both Routing Engines on the device. As a result, both Routing Engines are zeroized. The command removes all data files, including customized configuration and log files from their directories. The command removes all user-created files from the system including all plain-text passwords, secrets, and private keys for SSH, local encryption, local authentication, IPsec, RADIUS, TACACS+, and SNMP.

This command reboots the device and sets it to the factory-default configuration. After the reboot, you cannot access the device through the management Ethernet interface. Log in through the console as the root user and start the Junos OS CLI by typing cli at the prompt.

Options

none—Remove all configuration information on all the Routing Engines and reset all key values.

re0 | re1

(Optional) Remove all configuration information on the Routing Engine in slot 0 (re0) or the Routing Engine in slot 1 (re1).

Note:

The QFX10002-60C and PTX10002-60C devices do not have primary and backup routing engines.

routing-engine

(Optional) Remove all configuration information on the specified Routing Engine. The following options are available:

  • backup—Backup Routing Engine.

  • both—Both Routing Engines.

  • local—Routing Engine on the local Virtual Chassis member.

  • master—Master Routing Engine.

  • other—Other Routing Engine.

Required Privilege Level

maintenance

Sample Output

request vmhost zeroize

content_copy zoom_out_map
user@host> request vmhost zeroize
VMHost Zeroization : 

Erase all data, including configuration and log files?. In case of Dual RE system, both Routing Engines will be zeroized [yes,no] (no) yes 

re0:
--------------------------------------------------------------------------
warning: Vmhost will reboot and may not boot without configuration
warning: Proceeding with vmhost zeroize
Zeroise secondary internal disk ...
Proceeding with zeroize on secondary disk
Mounting device in preparation for zeroize...
Cleaning up target disk for zeroize ...
Zeroize done on target disk.
Zeroize of secondary disk completed
Zeroize primary internal disk ...
Proceeding with zeroize on primary disk
Mounting device in preparation for zeroize...
Cleaning up target disk for zeroize ...
Zeroize done on target disk.
Zeroize of primary disk completed
Zeroize done
mv: cannot stat '/tmp/zero-UytUWY/tgt_jlvmrootfs/etc/fstab': No such file or directory mv: cannot stat '/tmp/zero-UytUWY/fstab': No such file or directory mv: cannot stat '/tmp/zero-6gvrWj/tgt_jlvmrootfs/etc/fstab': No such file or directory mv: cannot stat '/tmp/zero-6gvrWj/fstab': No such file or directory
warning: Proceeding with vmhost reboot

*** FINAL System shutdown message from root@user ***

System going down IMMEDIATELY


Initiating vmhost reboot...  ok
Initiating Junos shutdown...  shutdown: [pid 8565]
Shutdown NOW!
ok
Junos shutdown is in progress...
Shutdown NOW!

System shutdown time has arrived\x07\x07

re1:
--------------------------------------------------------------------------
warning: Vmhost will reboot and may not boot without configuration
warning: Proceeding with vmhost zeroize
Zeroise secondary internal disk ...
Proceeding with zeroize on secondary disk

Release Information

Command introduced in Junos OS Release 15.1F3.

Note:

PTX3000 router supports the Routing and Control Board, RCBPTX.

footer-navigation