Example: dental hygienist

JUNOS Command Line Interface - nsrc.org

JUNOS . Command Line Interface Copyright 2003 Juniper Networks, Inc. 1. Agenda Command -Line Interface Logging-In & Editing Interpret Output & Getting Help CLI Configuration Moving around Hierarchy Modify, View, Review & Remove Activate, Save, Load & Commit Slide 2. Agenda Command -Line Interface Logging-In & Editing Interpret Output & Getting Help CLI Configuration Moving around Hierarchy Modify, View, Review & Remove Activate, Save, Load & Commit Slide 3. Overview Universal access to router Console Management port, using Telnet, ssh, RADIUS, TACACS+. User authentication using login name and password Users have individual accounts Per-user Command class' permissions Line editor with Command history Context-sensitive help Command completion UNIX-style pipes Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 4. Overview Configure Object-based hierarchy Commit changes when done Rollback if necessary Load/save configuration files Monitor show Command hierarchy Troubleshoot Traceroute Ping Log and trace file monitoring Copyright 2003 Juniper Networks, Inc.

Command-Line Interface • Logging-In & Editing • Interpret Output & Getting Help CLI Configuration •Moving around Hierarchy •Modify, View, Review & Remove •Activate, Save, Load & Commit Agenda

Tags:

  Interface

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of JUNOS Command Line Interface - nsrc.org

1 JUNOS . Command Line Interface Copyright 2003 Juniper Networks, Inc. 1. Agenda Command -Line Interface Logging-In & Editing Interpret Output & Getting Help CLI Configuration Moving around Hierarchy Modify, View, Review & Remove Activate, Save, Load & Commit Slide 2. Agenda Command -Line Interface Logging-In & Editing Interpret Output & Getting Help CLI Configuration Moving around Hierarchy Modify, View, Review & Remove Activate, Save, Load & Commit Slide 3. Overview Universal access to router Console Management port, using Telnet, ssh, RADIUS, TACACS+. User authentication using login name and password Users have individual accounts Per-user Command class' permissions Line editor with Command history Context-sensitive help Command completion UNIX-style pipes Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 4. Overview Configure Object-based hierarchy Commit changes when done Rollback if necessary Load/save configuration files Monitor show Command hierarchy Troubleshoot Traceroute Ping Log and trace file monitoring Copyright 2003 Juniper Networks, Inc.

2 Proprietary and Confidential 5. Overview Command hierarchy Less Specific clear configure monitor set show bgp chassis interfaces isis ospf route version brief exact protocol table terse More Specific Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 6. Log In Router administrator configures login ID and password for each user Example session lab2 (ttyd0). login: perkins Password: Last login: Fri Feb 18 19:23:16 on ttyd0. Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994. The Regents of the University of California. --- JUNOS built 2000-02-10 09:29:44 UTC. Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 7. Log In Start the CLI manually lab2 (ttyd0). login: root Password: Last login: Fri Feb 18 19:23:16 on ttyd0. Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994. The Regents of the University of California. --- JUNOS built 2000-02-10 09:29:44 UTC.

3 # cli root@lab2> quit # logout lab2 (ttyd0). login: Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 8. Log In Special treatment for root login Can only log in as root from console port Must create additional user with superuser privileges to log in via network ports Be sure to review security implications Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 9. Edit Lines Move the cursor Ctrl-B Back one character Ctrl-F Forward one character Ctrl-A To beginning of line Ctrl-E To end of line Delete characters Delete or backspace key Delete character before cursor Ctrl-D Delete character under cursor Ctrl-K Delete from cursor to end of line Ctrl-U Delete all characters Ctrl-W Delete entire word to left of cursor Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 10. Edit Lines Other keys Ctrl-L Redraw the current line Ctrl-P Move backwards through Command history Ctrl-N Move forward through Command history Copyright 2003 Juniper Networks, Inc.

4 Proprietary and Confidential 11. Edit Lines Command completion saves typing Typing entire Command not necessary Type the minimum characters required and press space or tab key Completion example root@lab2> sh<space>ow i<space>. 'i' is ambiguous. Possible completions: igmp Show information about IGMP. interfaces Show Interface information isis Show information about IS-IS. root@lab2> show i Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 12. Agenda Command -Line Interface Logging-In & Editing Interpret Output & Getting Help CLI Configuration Moving around Hierarchy Modify, View, Review & Remove Activate, Save, Load & Commit Slide 13. Interpret Output Error messages ^ displayed under error Message indicates type of error Example [edit]. root@lab2# load config-file<Enter>. ^. syntax error, expecting merge', override', or replace'. Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 14.

5 Interpret Output Output does not scroll off screen CLI displays ---(more)--- prompt Important key sequences Space Display next output screen b Return to previous screen d Scroll down one-half screen Enter Display next line of output /string Search for a string in output n Repeat search for string q Return to CLI prompt h Show help message for key sequences Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 15. Get Help Type ?' anywhere on Command line Help depends on where you are Beginning of line Shows help for top level of hierarchy End of Command Shows help for next level in hierarchy Middle of Command Shows list of matching commands at current level in hierarchy Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 16. Agenda Command -Line Interface Logging-In & Editing Interpret Output & Getting Help CLI Configuration Moving around Hierarchy Modify, View, Review & Remove Activate, Save, Load & Commit Slide 17.

6 Overview CLI has separate configuration mode You edit a copy of current configuration called the candidate configuration Changes you make are visible to other CLI users Changes they make might conflict with your changes Changes do not take effect until you commit them When committed, candidate configuration becomes active and a new candidate is created Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 18. Configure the Router: Overview commit Candidate Active configuration configuration 0. rollback n 1 2 .. Rollback files stored in / (n=1-3). /var/db/ (n=4-9). Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 19. Enter Configuration Mode Type configure at the CLI prompt root@lab2> configure Entering configuration mode [edit]. Other users in configuration mode root@lab2> configure Entering configuration mode Current configuration users: diana terminal d0 on since 1999-10-14 07:11:29 UTC, idle 00:00:49 [edit protocols ospf].

7 The configuration has been changed but not committed [edit]. Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 20. 10,000 Foot View Move around statement hierarchy using edit Command Like UNIX cd Command Alter configuration using set Command Activate configuration using commit Command Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 21. Move around the Hierarchy Configuration statements organized as a tree Similar to UNIX/Windows style directories top Less Specific chassis firewall interfaces protocols system more . alarm clock fpc atm e3 ethernet sonet t3 More Specific Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 22. Move around the Hierarchy Use the edit Command to focus your attention on a particular part of the hierarchy top chassis firewall interfaces protocols system more . alarm clock fpc atm e3 ethernet sonet t3. user@host# edit chassis alarm ethernet [edit chassis alarm ethernet].

8 Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 23. Move around the Hierarchy Use the exit Command to move back to where you just were exit at the top level exits configuration mode and puts you back into operational mode exit configuration-mode exits no matter where you are Use the up Command to move up a level Use the top Command to move to the top of the hierarchy Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 24. Move around the Hierarchy The question mark is your friend [edit]. root@lab2# edit ? Possible completions: > chassis Chassis configuration > class-of-service Class-of-service configuration > firewall Define a firewall configuration > forwarding-options Configure options to control packet sampling > groups Configuration groups > interfaces Interface configuration > policy-options Routing policy option configuration > protocols Routing protocol configuration > routing-options Protocol-independent routing option configuration > snmp Simple Network Management Protocol > system System parameters [edit].

9 Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 25. Move around the Hierarchy [edit]. root@lab2# edit chassis [edit chassis]. root@lab2# edit ? Possible completions: <[Enter]> Execute this Command > alarm Global alarm settings > clock Clock sources > fpc FPC card parameters | Pipe through a Command [edit chassis]. Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 26. Move around the Hierarchy [edit chassis]. root@lab2# edit alarm [edit chassis alarm]. root@lab2# edit ? Possible completions: > atm ATM alarms > e3 E3 alarms > ethernet Ethernet alarms > sonet SONET alarms > t3 DS3 alarms [edit chassis alarm]. root@lab2# up [edit chassis]. root@lab2# up [edit]. 2003 Juniper Networks, Inc. Proprietary and Confidential 27. Move around the Hierarchy [edit]. root@lab2# edit chassis alarm [edit chassis alarm]. root@lab2# edit sonet [edit chassis alarm sonet].

10 Root@lab2# exit [edit chassis alarm]. root@lab2# top [edit]. Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 28. Test Your Knowledge (I). What is the result of the final Command ? [edit]. root@lab2# edit protocols ospf [edit protocols ospf]. root@lab2# edit area 0. [edit protocols ospf area ]. root@lab2# exit Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 29. Agenda Command -Line Interface Logging-In & Editing Interpret Output & Getting Help CLI Configuration Moving around Hierarchy Modify, View, Review & Remove Activate, Save, Load & Commit Slide 30. Modify the Configuration Use the set Command to add or change configuration statements set Command creates configuration statements, or changes them if they already exist [edit]. root@lab2# set chassis alarm sonet lol red [edit]. Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential 31. Modify the Configuration Optionally, move into the alarm hierarchy and save some keystrokes [edit].


Related search queries