1. 程式人生 > >Juniper基礎命令(一)

Juniper基礎命令(一)

ase 軟件升級 mes 重啟 for 由器 then 進程 進行

一、命令模式
1、命令模式
root@% shell模式(linux命令)
root@% cli
root> 操作模式
功能:監控和處理軟件、網絡連通性,路由、硬件問題
root> edit
Entering configuration mode

[edit]
root# 配置模式
root> configure
Entering configuration mode

[edit]
root# 配置模式
功能:配置路由器(接口、路由、用戶、系統硬件參數)

root> configure ?
Possible completions:
<[Enter]> Execute this command

exclusive Obtain exclusive lock (other users cannot make changes)
private Work in private database (other‘s changes
do not show)
| Pipe through a command

如果有多人在操作設備時,可能會造成配置沖突,不一致,或被人篡改可以使用exclusive ,進行排他設備

root> configure #進入普通配置模式,多用戶同時配置但會互相幹擾,commit時會把其他用戶的配置內容一起提交

root> configure exclusive #排他模式配置,其他用戶無法配置

root> configure private #私有模式配置,各用戶獨立配置互不幹擾(除非配置內容有沖突),commit只提交自己的配置內容,不會提交其他用戶的配置內容

二、操作模式命令
root> ?
Possible completions:
clear Clear information in the system #清除
configure Manipulate software configuration information

file Perform file operations #文件
help Provide help information
monitor Show real-time debugging information #監控(類似debug)
mtrace Trace multicast path from source to receiver
op Invoke an operation script
ping Ping remote target
quit Exit the management session
request Make system-level requests #請求(軟件升級、重啟)
restart Restart software process #重啟進程
set Set CLI properties, date/time, craft interface message #設備些參數的(比如:命令行)
show Show system information #查看
ssh Start secure shell on another host
start Start shell
telnet Telnet to another host
test Perform diagnostic debugging
traceroute Trace route to remote host #路由跟蹤

三、查看方式介紹
[edit system login]
tzq@R6# show |display set relative #把system login屏蔽
set user tzq uid 2005
set user tzq class super-user
set user tzq authentication encrypted-password "$1$9L4p3HL8$mKu.tEHwU2Rl/zdxyQR/o0"

[edit system login]
tzq@R6# show |display set
Set system login user tzq uid 2005
Set system login user tzq class super-user
Set system login user tzq authentication encrypted-password "$1$9L4p3HL8$mKu.tEHwU2Rl/zdxyQR/o0”

[editsystem login]
tzq@R6# show
??user tzq {
???uid 2005;
???classsuper-user;
???authentication {
??encrypted-password "$1$9L4p3HL8$mKu.tEHwU2Rl/zdxyQR/o0"; ## SECRET-DATA
?}
}

Juniper基礎命令(一)