Update or Change Juniper User Password via CLI

Login to the switch
Entering configuration mode (configure)
Edit system login (edit system login)
Edit user (edit user )
Set the Password (set authentication plain-text-password)
Enter the password (New password: type password here / Retype new password: retype password here)
Commit and save the changes (Commit)

configure
username@sw01> configure
Entering configuration mode
edit system login
username@sw01># edit system login
{master:0}[edit system login]
edit user
username@sw01># edit user
{master:0}[edit system login user ]
set authentication plain-text-password
username@sw01# set authentication plain-text-password
New password: type password here
Retype new password: retype password here
Commit

Upgrading/Downgrading/Reinstalling Junos / Juniper

There are a few ways to Upgrading/Downgrading/Reinstalling Junos; online and offline. Depending on your situation you can decide on a method that will work for you which are below

Online

The commands below will download the Junos file to the temporary directory on the Juniper device and then we will request it to be installed.

root@juniper> file copy http://hosting.com.au/junos/jinstall-ex-2200-12.3R12.4-domestic-signed.tgz /var/tmp
root@juniper> request system software add /var/tmp/jinstall-ex-2200-12.3R12.4-domestic-signed.tgz

Offline

This process consists of downloading the Junos application to a USB device which we can then install on the devices. This option is ideal for devices that are not yet connected to the internet.

root@juniper> mkdir /var/tmp/usb
root@juniper> mount_msdosfs /dev/da1s1 /var/tmp/usb
root@juniper> ls /var/tmp/usb

Install Junos

root@juniper> request system software add /var/tmp/usb/jinstall-ex-2200-12.3R12.4-domestic-signed.tgz

 

* The USB drive must be formatted in FAT32 so that the Juniper device can read it.

https://kb.juniper.net/InfoCenter/index?page=content&id=KB11409&actp=METADATA

Set Rescue configuration in Juniper

To do this follow the example below.

root@juniper> Show System Alarms
1 alarm currently active
Alarm time               Class  Description
2000-00-00 00:00:00 UTC  Minor  Rescue configuration is not set

root@juniper> request system configuration rescue save

root@juniper> Show System Alarms
No alarms currently active

Disable Management Ethernet Link Down Alarm

To Disable Management Ethernet Link Down Alarm you will need to enter the configuration mode and follow the steps below.

root@juniper> Show System Alarms
1 alarm currently active
Alarm time               Class  Description
2000-00-00 00:00:00 UTC  Major  Management Ethernet Link Down

root@juniper> configure
Entering configuration mode
root@juniper> set chassis alarm management-ethernet link-down ignore
root@juniper> commit
Configuration check succeeds
commit complete

root@juniper> Show System Alarms
No alarms currently active

Restore Juniper Configuration File

The most efficient way to restore a Juniper Configuration file is to restore it from a USB drive.

The USB drive must be formatted in FAT32 so that the Juniper device can read it.

Mount USB

root@juniper> mkdir /var/tmp/usb
root@juniper> mount_msdosfs /dev/da1s1 /var/tmp/usb
root@juniper> ls /var/tmp/usb

Restore Configuration file

root@juniper> configure 
Entering configuration mode
root@juniper> load override /var/tmp/usb/juniper.conf.gz
root@juniper> commit

Set Root Password on Juniper

Step-by-Step Procedure

To configure a plain-text password for the root-level user:

  1. Type the set command for the plain-text password and press Enter.
    [edit]
    user@host# set system root-authentication plain-text-password
    New password:
  2. Type the new password next to the New password prompt and press Enter.
    New password: new-password
    Retype new password:
  3. Retype the same password next to the Retype new password prompt and press Enter.