Cheatsheet

mount usb thumb drive

mount -t msdosfs /dev/da1s1 /mnt/

copy file to internal storage

cp /mnt/junos-srxsme-18.2R3.4.tgz /var/tmp

download file from http to device

file copy "https:///cdn.juniper.net/xxxxxxxx" /var/tmp/image-name.tgz

upgrade software

request system software add /var/tmp/junos-srxsme-18.2R3.4.tgz

remove vSRX expiration day

chflags nosunlnk /config/usage.db
rm /config/usage.db

Detect dead peer

set security ike gateway gw_lab_fo dead-peer-detection 10 2

start shell as root

start shell user root

system reboot

request system reboot

system shutdown

request system halt

show interface ip address

show interface terse

show changes

show | diff

show configure in set mode

show | display set

save config to file

show | display set | save /var/tmp/config

load commands from file

load set relative /var/tmp/chinaip.txt

show last 10 log messages

run show log messages | last 10

当前运行分区复制到备用分区

request system snapshot slice alternate

显示本机snapshot版本

show system snapshot media internal