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:
Note: Your console window should remain 80x24 default size. Do NOT resize the window for best results.
Reboot the Log Collector node with Console Connection open
Press the down arrow continuously to enter into GRUB Menu.
When GRUB boot menu is displayed, press e to edit the selected entry.
Use the down arrow to go to the line starting with "Kernel". Press e to edit.
Version 15.1
Version 15.2 to 16.2
Version 17.1 and above
'rw init=/bin/bash'
17.1 and above:
Press b to boot the Kernel in Single user mode.
You will be prompted with Single user mode login. Change the password with the command: passwd
passwd
Enter the password as per password policy. Once saved, it will pop up the following message: Passwd: all authentication tokens updated successfully.
Now after password reset, reboot the server with the command, reboot -f
reboot -f
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.
2020-03-31: Minor, non-technical update. 2018-06-06: Added steps for version 17.1 and above.