CLI Basics
(2024-12-17)
Command Mode
Show System Info
> show system info
hostname:...
...
Show configuration for system section
> configure
# show deviceconfig system
system {
ssh {
...
Find a command
Show the entire command hierarcy:
> find command
Show command swith a specific keyword:
> find command keyword whatever
Edit Mode
Run Commands From Edit Mode
> run ping host 10.1.1.2
Exit Edit Mode:
Stepping back up the hierarchy:
[edit deviceconfig system]
# exit
[edit deviceconfig]
# exit
[edit]
# exit
Exiting configuration mode
>
Just get back to command mode:
[edit deviceconfig system]
# quit
Exiting configuration mode
>
Add/Change configuration value
> configure
[edit]
# set deviceconfig system permitted-ip 10.40.147.41 description "Probe"
[edit]
# show deviceconfig system permitted-ip
permitted-ip {
10.40.147.41 {
description "Probe";
}
}
Alternatively
[edit]
# edit deviceconfig system
[edit deviceconfig system]
# set permitted-ip 10.40.147.41 description "Probe"
Delete configuration value
> configure
[edit]
# delete deviceconfig system permitted-ip 10.40.147.41 description "Probe"
Show difference between running and candidate configs
> run show config diff
Validate, then Commit
> configure
[edit]
# validate full
Validate job enqueued with jobid 999
999
[edit]
# run show jobs id 999
[blah blah blah]
Details: Configuration is valid
[edit]
# commit
Commit job 1011 is in progress. Use Ctrl+C to return to command prompt
.................55%.75%.98%............100%