搜档网
当前位置:搜档网 › Juniper刷配置基础命令

Juniper刷配置基础命令

root# run show interfaces
root# run show interfaces terse |no-more
root# run show chassis hardware detail |no-more
root# run show chassis alarms
root# run show chassis fpc pic-status |no-more
root@srx1# run set chassis cluster cluster-id 0 node 0 reboot//主机(HA的第一步)
root@srx2# run set chassis cluster cluster-id 1 node 1 reboot//备机
root# run show chassis cluster
root# run request chassis cluster failover redundancy-group 0 node 1
root# run reguest chassis cluster failover reset redundancy-group 0//切换到主设备
root# load set terminal
root@SH-HW-OF-A2-FW# run start shell
root@SH-HW-OF-A2-FW% rlogin -Jk -T node0//主备设备之间切换
root@SH-HW-OF-A2-FW# run request system autorecovery state save
root@SH-HW-OF-A2-FW# run request system configuration rescue save

root@SH-HW-OF-A2-FW# run show system snapshot media internal//当前软件版本做快照(备份到fash中)



导出loge日志和配置
root@SH-HW-OF-A2-FW# show |display set |no-more
root@SH-HW-OF-A2-FW# show |no-more
root@SH-HW-OF-A2-FW# run show system software |no-more
root@SH-HW-YT-A1-FW# run show chassis cluster status |no-more




1. Console口连接SRX,然后重启SRX。
2. 在启动过程中,console上出现下面的提示的时候,按空格键中断正常启动方式,然后再进入单用户状态,并输入:boot -s
Loading /boot/defaults/loader.conf
/kernel data=… … syms=[… …]
Hit [Enter] to boot immediately, or space bar for command prompt.
loader>
loader> boot -s
3. 执行密码恢复:在以下提示文字后输入recovery,设备将自动进行重启
Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: recovery
4. 进入配置模式,删除root密码,并重现设置root密码:
user@host> configure
Entering configuration mode
user@host#delete system root-authentication
user@host#set system root-authentication plain-text-password
user@host#New password:
user@host#Retype new password:
user@host# commit
commit complete



root@SRX2# run request support information |no-more//出现问题的RSI
root@SRX2# run request support information |save /var/log/20160316.log /日志打包
root@SRX2# ...ile archive source /var/log/* destination /var/tmp/srx-log

相关主题