Escolar Documentos
Profissional Documentos
Cultura Documentos
Junos CLI
Text based command shell
Access through the console port using a terminal emulation program
Uses RJ-45 RS-232 @ 9600 bps, 8/1/N ( Not configurable )
- J-Web
- Webbased graphical user interface
- Accessible through HTTP/HTTPS
2. CLI Basics
- Non root user are placed into the CLI automatically
- Root user must start the CLI from the shell
- Factoty-default configuration without the hostname displays Amnesiac
- CLI Modes:
- Operational Mode : Monitor and troubleshoot the device : monitor, ping, show,
test and traceroute
user@router>
- Configuration Mode : Configure the device including the interfaces, protocols,
user access and system hardware properties.
user@router#
3. Context-Sensitive Help
- Type a question mark ? at any point in a command line.
- the CLI lists the available commands and options including user-defined variab
les at the appropriate context
- user@router > ?
Possible completion
clear
configure
...
4. Topical Help
- help topic command displays usage guidelines for the statement
user@router> help topic interfaces address
5. Configuration Syntax Help
- help reference command offers configuration syntax help
user@router> help reference interfaces address
- help apropos command only displays contexts that are relevant to the current c
onfiguration hierarchy level
6. Command and variable completion
- Spacebar to complete system commands.
- Command completion is ON by default - to turn if off issue the following
user@router> set cli complete-on-space off
- Tab to complete system and user-defined variables
7. Emacs-style editing sequences - Junos OS default terminal type should be VT10
0
- Ctrl+b - Moves the cursor left one character
- Ctrl+a - Moves the cursor to the beginning of the command line
- Ctrl+f - Moves the cursor right one character
- uncommitted changes are deleted when users exit from config exclusive prompt
- configure private command allows multiple users to edit the configuration mode
while committing only their private changes
- if issue a rollback 0 command, the software discard only their changes
- when a user is in private moder, other users must enter either private mode or
configure exclusive mode
- Any uncommitted changes are discarded when users exit
- the changes made by the 1st user in standard config mode must be committed or
discarded before another user can enter into config private or exclusive mode
- configure private will be automated when chasis clustering is in effect
12. Configuration Statement Hierarchy
-
edit
save filename
save path/filename
save ftp://user:password@router/path/filename