Skip to content

Instantly share code, notes, and snippets.

@mikewebb70
Last active September 11, 2018 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikewebb70/6a0f9d0e13c4df940cb63948e6f38f02 to your computer and use it in GitHub Desktop.
Save mikewebb70/6a0f9d0e13c4df940cb63948e6f38f02 to your computer and use it in GitHub Desktop.
root@gandalf# load factory-default
root@gandalf> request system zeroize
## system reboots into Amnisiac
## login as root no password
root@amnisiac# set system host-name gandalf
root@amnisiac# set system login message "Ya Shall Not Pass"
root@amniiac# commit
## check our firmware
admin@gandalf> show system firmware
Part Type Tag Current Available Status
version version
FPC 2
PIC 0 VDSLBCM 10 2.16.0 OK
Routing Engine 0 RE BIOS 0 3.1 3.5 OK
Routing Engine 0 RE BIOS Backup 1 3.1 3.5 OK
## check JunOS version
admin@gandalf> show system software
Information for junos:
Comment:
JUNOS Software Release [15.1X49-D130.6]
root@gandalf# set system login user admin class super-user authentication plain-text-password
----------------------------------------------------------------------
SRX320 with VDSL2-A MPIM
----------------------------------------------------------------------
## Connect to console from linux:
install screen
screen /dev/ttyUSB0
## Reset to a known factory configuration (also regenerates keys and certificates):
root@amnisiac> request system zeroize
## Create root password:
login: root
root@% cli
root> conf
Entering configuration mode
[edit]
root# set system root-authentication plain-text-password
## Create a non root admin user
[edit]
root# set system login user admin class super-user authentication plain-text-password
## Commit changes
[edit]
root# commit check
configuration check succeeds
[edit]
root# commit comment "protect root and create admin user"
commit complete
## Log out and login as admin user
[edit]
root# exit
Exiting configuration mode
root> exit
root@% exit
logout
Amnesiac (ttyu0)
login: admin
Password:
--- JUNOS 15.1X49-D120.3 built 2017-11-04 19:54:00 UTC
admin>
## Set hostname
admin> configure
Entering configuration mode
[edit]
admin# set system host-name gandalf
admin# commit
commit complete
[edit]
admin@gandalf>
admin@gandalf> set date ?
Possible completions:
<time> New date and time (YYYYMMDDhhmm.ss)
ntp Set system date and time using Network Time Protocol servers
admin@gandalf> set date 201809061545.01
Thu Sep 6 15:45:01 UTC 2018
## There maybe a yellow alarm light
admin@gandalf> show chassis alarms
No alarms currently active
admin@gandalf> show system alarms
1 alarms currently active
Alarm time Class Description
2018-09-05 15:08:54 UTC Minor Rescue configuration is not set
## Clear alarm by setting rescue conf
admin@gandalf> request system configuration rescue save
## chassis yllow alarm should be off
admin@gandalf> show system alarms
No alarms currently active
admin@gandalf> show chassis environment
Class Item Status Measurement
Temp Routing Engine OK 49 degrees C / 120 degrees F
Routing Engine CPU OK 72 degrees C / 161 degrees F
Fans SRX320 Chassis fan 0 OK Spinning at normal speed
SRX320 Chassis fan 1 OK Spinning at normal speed
Power Power Supply 0 OK
admin@gandalf> show chassis fan
Item Status RPM Measurement
SRX320 Chassis fan 0 OK 1740 Spinning at normal speed
SRX320 Chassis fan 1 OK 1620 Spinning at normal speed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment