1 junos cli基础入门1
%cli 进入交换机
>start shell 进入linux shell
# show system login | display set 查看用户
当前配置存成文件
save /var/tmp/2018.txt
file show /var/tmp/2018.txt
-------------------
rollback 0 回到设备加载时的命令
rollback ? 查看历史配置
show | compare rollback 10 当前配置和历史某个配置比较
show | compare = show | compare rollback 0
commit confirmed 新配置临时生效10分钟,想永久生效去掉confirmed
----------------------
2 junos cli基础入门2
> show configuration system login 查看的是当前生效的配置
# show chassis alarm 查看正在编辑的配置
# edit chassis alarm 后 #show ;同华为的dis this
管道符
no-more 不显示more
last 最后几行
match 匹配相关的行,反操作except
find 匹配后显示相关+剩下的行
count 统计有多少行