[Report an Error]
Using the CLI Terminal
The J-Web CLI terminal provides access to the JUNOS command
line interface (CLI) through the J-Web interface. The functionality
and behavior of the CLI available through the CLI terminal page is
the same as the JUNOS CLI available through the routing platform console.
The CLI terminal supports all CLI commands and other features such
as CLI help and autocompletion. Using the CLI terminal page you can
fully configure, monitor, and manage your routing platform.
Figure 96 shows the CLI terminal
displaying all the options that you can configure in CLI configuration
Figure 96: J-Web CLI Terminal
CLI Terminal Requirements
To access the CLI through the J-Web interface, your management
device requires the following features:
- SSH access—Enable Secure shell (SSH) on your system.
SSH provides a secured method of logging in to the routing platform,
to encrypt traffic so that it is not intercepted. If SSH is not enabled
on the system, the CLI terminal page displays an error and provides
a link to the Set Up Quick Configuration page that allows you to enable
SSH. For more information, see Configuring Basic Settings with J-Web Quick Configuration.
- Java applet support—Make sure that your Web browser
supports Java applets.
- JRE installed on the client—Install Java Runtime
Environment (JRE) version 1.4 or later on your system. JRE is a software
package that must be installed on a system to run Java applications.
Download the latest JRE version from the Java Software Web site http://www.java.com/. Installing JRE installs Java plug-ins,
which once installed, load automatically and transparently to render
The CLI terminal is supported on JRE version 1.4 and later only.
The JUNOS CLI uses industry-standard tools and utilities to
provide a set of commands for monitoring and configuring a routing
platform. You type commands on a line and press Enter to execute them.
The CLI provides command help, command completion, and Emacs-style
keyboard sequences for moving around on the command line and scrolling
through a buffer of recently executed commands.
The commands in the CLI are organized hierarchically, with commands
that perform a similar function grouped together under the same level.
For example, all commands that display information about the Services Router system
and system software are grouped under the show command, and
all commands that display information about the routing table are
grouped under the show route command. The hierarchical organization
results in commands that have a regular syntax and provides the following
features that simplify CLI use:
- Consistent command names—Commands that provide the
same type of function have the same name, regardless of the portion
of the software they are operating on. For example, all show commands display software information and statistics, and all clear commands erase various types of system information.
- Lists and short descriptions of available commands—Information
about available commands is provided at each level of the CLI command
hierarchy. If you type a question mark (?) at any level, you see a
list of the available commands along with a short description of each
- Command completion—Command completion for command
names (keywords) and command options is also available at each level
of the hierarchy. In the CLI terminal you can do one of the following
for command completions:
The CLI has two modes:
- Operational mode—Complete set of commands to control
the CLI environment, monitor and troubleshoot network connectivity,
manage the Services Router, and enter configuration mode.
- Configuration mode—Complete set of commands to configure
the Services Router.
For more information about the JUNOS CLI, see the JUNOS CLI User Guide.
Starting the CLI Terminal
To get started on the CLI terminal:
- Make sure that your system meets the requirements
mentioned in CLI Terminal Requirements.
- In the J-Web interface, select Diagnose>CLI Terminal. A Java applet is downloaded into the
J-Web interface allowing SSH access to the routing platform.
- Log in to the CLI by typing your JUNOS password.
This is the same password that you use to log in to the J-Web interface.
After you log in, a percentage sign (%) prompt appears
to indicate that you are in the UNIX shell (see Figure 97).
- To start the CLI, type cli.
The presence of the angle bracket (>) prompt indicates that
the CLI has started. By default, the prompt is preceded by a string
that contains your username and the hostname of the Services Router.
The angle bracket also indicates that you are in operational mode.
- To enter configuration mode, type configure. The  prompt indicates the current configuration
- Type exit or quit to return to
the previous level of the configuration—for example, to return
to operational mode from configuration mode.
For security purposes, each time you log out of the routing
platform or leave the CLI terminal page, the CLI terminal session
ends and you are required to reenter your password. When you select Diagnose>CLI Terminal again, retype your JUNOS password
to access the CLI.
Figure 97: Starting the CLI Terminal
[Report an Error]