Recovering the Root Password for NFX150, NFX250 NextGen, and NFX350 Devices
The root password on your Junos OS-enabled device helps to prevent unauthorized users from making changes to your network.
If you forget the root password, you can use the password recovery procedure to reset the root password.
You need console access to the device to recover the root password.
To recover the root password:
- Power off the device by switching off the AC power outlet of the device or, if necessary, by pulling the power cords out of the device’s power supplies.
- Turn off the power to the management device, such as a PC or laptop computer, that you want to use to access the CLI.
- Plug one end of the Ethernet rollover cable supplied with the device into the RJ-45 to DB-9 serial port adapter supplied with the device.
- Plug the RJ-45 to DB-9 serial port adapter into the serial port on the management device.
- Connect the other end of the Ethernet rollover cable to the console port on the device.
- Turn on the power to the management device.
- On the management device, start any asynchronous terminal emulation application (such as Microsoft Windows HyperTerminal), and select the port to be used.
- Configure the port settings as follows:
Bits per second—9600
- Power on the device by plugging the power cords into the
device’s power supply (if necessary), or by turning on the power
to the device by switching on the AC power outlet that the device
is plugged into.
The terminal emulation screen on your management device displays the device’s boot sequence.
i2cset -y 5 0x19 0xff 0x05 i2cset -y 5 0x19 0x2d 0x81 i2cset -y 5 0x19 0x15 0x12 i2cset -y 5 0x18 0xff 0x05 i2cset -y 5 0x18 0x2d 0x82 i2cset -y 5 0x18 0x15 0x12 * Stopping virtualization library daemon: libvirtd
[This message is truncated...]
Checking Prerequisites jdm docker container is in Exit state, required to cleanup, please wait... 9dba6935234b [ OK ] Launching jdm container 'jdm'...
- When the prompt shows Launching jdm container
Ctrl+C. The Main Menu appears.
Main Menu 1. Boot [J]unos volume 2. Boot Junos volume in [S]afe mode 3. [R]eboot 4. [B]oot menu 5. [M]ore options
- From the Main Menu, select 5. [M]ore options. The Options Menu appears.
Options Menu 1. Recover [J]unos volume 2. Recovery mode - [C]LI 3. Check [F]ile system 4. Enable [V]erbose boot 5. [B]oot prompt 6. [M]ain menu
- From the Options Menu, select 2. Recovery
mode - [C]LI. The device reboots into CLI recovery mode.
Booting Junos in CLI recovery mode ... it will boot in recovery mode and will get MGD cli /packages/sets/active/boot/os-kernel/kernel text=0x444c38 data=0x82348+0x2909a0 syms=[0x8+0x94c50+0x8+0x8165b] /packages/sets/active/boot/os-kernel/contents.izo size=0x84d200 /packages/sets/active/boot/os-kernel/miibus.ko size 0x40778 at 0x14bc000 loading required module 'netstack' /packages/sets/active/boot/netstack/netstack.ko size 0x1386b08 at 0x14fd000 loading required module 'crypto'
[This message is truncated...]
Starting MGD mgd: error: could not open database: /var/run/db/schema.db: No such file or directory mgd: error: could not open database schema: /var/run/db/schema.db mgd: error: could not open database schema mgd: error: database schema is out of date, rebuilding it mgd: error: could not open database: /var/run/db/juniper.data: No such file or directory mgd: error: Cannot read configuration: Could not open configuration database mgd: warning: schema: dbs_remap_daemon_index: could not find daemon name 'isdnd' Starting CLI ...
- Enter configuration mode in the CLI.
Entering configuration mode
- Set the root password.
root# set system root-authentication plain-text-password
- At the first prompt, enter the new root password:
- At the second prompt, reenter the new root password.
Retype new password:
- After you have finished configuring the password, commit
- Exit configuration mode in the CLI.
- Exit operational mode in the CLI.
- At the shell prompt, type exit to reboot the device.