Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

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



Article ID: KB32355 KB Last Updated: 31 Mar 2020Version: 3.0

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

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:

2020-03-31: Minor, non-technical update.
2018-06-06: Added steps for version 17.1 and above.

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search