Knowledge Search


×
 

[Junos Space] How to reset the CLI root password on a Junos Space Log Collector

  [KB32355] Show Article Properties


Summary:

By default, the root account is used to access Junos Space Log Collector (LC) CLI. When the password is forgotten, this procedure can be used to define a new password.

The default root password for Log Collector is  "root / juniper123".

This article describes how to reset the root password on Junos Space Log Collector Node. In the Junos Space Log Collector, the kernel mode lines in the Grub menu requires a different set of commands to enter into single user mode in different versions. This KB explains the required commands or lines to be added in the kernel section in the Grub menu to change the root password. It provides the new steps required in the following:

  • CentOS 6.0
  • LC node 15.2R2 and above
  • LC node 17.1 and above
Solution:

Note: Your console window should remain 80x24 default size. Do NOT resize the window for best results.

  1. Reboot the Log Collector node with Console Connection open

    • Virtual: from the VMware controls
    • ​Physical:  power-cycle system​
  2. Press the down arrow continuously to enter into GRUB Menu.

  3. When GRUB boot menu is displayed, press e to edit the selected entry.

  4. Use the down arrow to go to the line starting with "Kernel". Press e to edit.

  5. Steps for entering into Single user mode:

    Version 15.1

    1. Delete the lines starting from 'console' till the end '9600n8'​
    2. Replace it with '1' as shown below to enter into single user mode and press Enter
    3. Existing: to KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM quiet console=tty0 console=ttyS0, 9600n8
    4. Replace: to KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet 1

    Version 15.2 to 16.2

    1. Enter '1' at end of the line
    2. Press Enter to save and continue
    3. To KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet 1

    Version 17.1 and above

    1. Enter 'rw init=/bin/bash' at end of the line 
      (remove any occurrences of "console=XXX" or else the system will display to a nonexistent serial console instead of the virtual monitor port.)
    2. Press Enter to save and continue
    3. To KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet rw init=/bin/bash

    17.1 and above:

  6. Press b to boot the Kernel in Single user mode.

  7. You will be prompted with Single user mode login. Change the password with the command: passwd

  8. Enter the password as per password policy. Once saved, it will pop up the following message:
    Passwd: all authentication tokens updated successfully.

  9. Now after password reset, reboot the server with the command, reboot -f

  10. The server will restart with the usual mode settings and will prompt for Login.

    Login with the root user ID and password you have set.

Modification History:

2018-06-06: Added steps for version 17.1 and above.

Related Links: