[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 116 shows the CLI terminal displaying all the options that you can configure in CLI configuration mode.

Figure 116: J-Web CLI Terminal

J-Web CLI Terminal

CLI Terminal Requirements

To access the CLI through the J-Web interface, your management device requires the following features:

CLI Overview

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 device 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:

The CLI has two modes:

For more information about the JUNOS CLI, see the JUNOS CLI User Guide. For information about configuring and monitoring JUNOS features with the CLI, see the JUNOS manuals in Related Juniper Networks Documentation.

Starting the CLI Terminal

To get started on the CLI terminal:

  1. Make sure that your system meets the requirements mentioned in CLI Terminal Requirements.
  2. 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.
  3. 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 117).

  4. 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 device. The angle bracket also indicates that you are in operational mode.

  5. To enter configuration mode, type configure. The [edit] prompt indicates the current configuration mode.
  6. 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 117: Starting the CLI Terminal

Starting the CLI Terminal


[Report an Error]