request system zeroize
Syntax
Syntax
Release Information
Command introduced before Junos OS Release 9.0.
Command introduced in Junos OS Release 11.2 for EX Series routeres.
Option media added in Junos OS Release 11.4 for EX Series routeres.
Command introduced in Junos OS Release 12.2 for MX Series routers.
Option local added in Junos OS Release 14.1.
Description
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 all Routing Engines on the device. The command removes all data files, including customized configuration and log files, by unlinking the 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 root and start the Junos OS CLI by typing cli at the prompt.
To completely erase user-created data so that it is unrecoverable, use the media option.
Options
Required Privilege Level
maintenance
List of Sample Output
request system zeroizeSample Output
request system zeroize
user@host> request system zeroize
warning: System will be rebooted and may not boot without configuration Erase all data, including configuration and log files? [yes,no] (no) yes warning: zeroizing re0 Terminated Waiting (max 60 seconds) for system process `vnlru_mem' to stop...root@nms5-mx104-done Waiting (max 60 seconds) for system process `vnlru' to stop...c% Terminated done Waiting (max 60 seconds) for system process `bufdaemon' to stop...Jul 9 14:07:04 init: iccp-servidone Waiting (max 60 seconds) for system process `syncer' to stop...ce (PID 3069) te Syncing disks, vnodes remaining...2 rminate signal 15 sent Jul 9 14:07:05 init: ddos-service (PID 3070) terminate signal 15 sent Jul 9 14:07:05 init: nfsd-service (PID 3071) terminate signal 15 sent Jul 9 14:07:05 init: mspd (PID 3072) terminate signal 15 sent Jul 9 14:07:05 init: mountd-service (PID 3073) terminate signal 15 sent Jul 9 14:07:05 init: subscriber-management-helper (PID 3075) terminate signal 15 sent Jul 9 14:07:05 init: sflow-service (PID 3076) terminate signal 15 sent Jul 9 14:07:05 init: dot1x-protocol (PID 3077) terminate signal 15 sent Jul 9 14:07:05 init: commit-syncd (PID 3078) terminate signal 15 sent Jul 9 14:07:05 init: jsd (PID 3079) terminate signal 15 sent Jul 9 14:07:05 init: xmlproxyd (P4 ID 3080) terminate signal 15 sent Jul 9 14:07:05 init: overlay-ping-traceroute (PID 3081) terminate signal 15 sent Jul 9 14:07:05 init: alarm-management (PID 3084) terminate signal 15 sent Jul 9 14:07:05 init: SDN-Telemetry (PID 3085) terminate signal 15 sent Jul 9 14:07:05 init: stats-agent (PID 3086) terminate signal 15 sent Jul 9 14:07:05 init: internal-routing-service (PID 3087) terminate signal 15 sent Jul 9 14:07:05 init: firewall (PID 3088) terminate signal 15 sent Jul 9 14:07:05 init: pfed (PID 3089) terminate signal 15 sent 3 2 0 0 0 done syncing disks... All buffers synced. Uptime: 17m28s recorded reboot as normal shutdown Rebooting... ... 9 ... 8 ... 7 ... 6 ... 5 ... 4 ... 3 ... 2 ... 1 ... 0 U-Boot 2011.12 (Aug 29 2013 - 15:55:06) Build 600600 CPU0: P5021, Version: 2.1, (0x82050021) Core: E5500, Version: 1.2, (0x80240012) Clock Configuration: CPU0:1800 MHz, CPU1:1800 MHz, CCB:600 MHz, DDR:600 MHz (1200 MT/s data rate) (Asynchronous), LBC:37.500 MHz FMAN1: 450 MHz FMAN2: 300 MHz L1: D-cache 32 kB enabled I-cache 32 kB enabled Press Ctrl-D to enter SLOWTEST mode Bootcpld : Ver 1 Rev 13 (Built 1-5-13) U-boot expects : Ver 1 Rev 9 (Compatible) Reboot Reason : 0x0100 (SW Initiated) Boot Bank : bank0 Board : MX104 RE 2.4 (S/N CAKH3077) I2C: ready DRAM: Initializing....using SPD Detected UDIMM XY1368E4GMPWP-JP 4096 MB (3968 MB shall be used) 3.9 GiB (DDR3, 64-bit, CL=8, ECC on) Quick testing memory 0x00000000 - 0xf7ffffff Lines... regions...patterns... OK POST memory PASSED Flash: 4 MiB L2: 512 KB enabled Corenet Platform Cache: 1024 KB enabled SERDES: bank 1 disabled SERDES: bank 3 disabled Using macaddr 64:c3:d6:b8:49:17 from EEPROM USB HUB initializing ... OK In: serial Out: serial Err: serial USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 3 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found Net: Initializing Fman Fman1: Uploading microcode version 106.1.8 FM1@DTSEC4 [PRIME] Bootlist = < USB0 USB1 NAND-FLASH0(as) > Junos requested bootdev = USB0 Internal storage is dual-rooted. Will attempt to boot from NAND-FLASH0-slice1 (active) Press Ctrl-C to abort autoboot: 1___ 0## Starting application at 0x00010080 ... Consoles: U-Boot console FreeBSD/PowerPC U-Boot bootstrap loader, Revision 2.4 (rajatjain@svl-junos-pool53.juniper.net, Fri Jun 8 11:58:22 PDT 2012) Memory: 3968MB ........