Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

J-Web Configuration Tools

 
Note

This topic applies only to the J-Web Application package.

Using the Point and Click CLI Tool in the J-Web Interface to Edit Configuration Text

Note

This topic applies only to the J-Web Application package.

To edit the configuration on a series of pages of clickable options that steps you through the hierarchy, select Configure > CLI Tools > Point&Click CLI. The side pane displays the top level of the configured hierarchy, and the work area displays configured hierarchy options and the Icon Legend.

To expand or hide the hierarchy of all the statements in the side pane, click Expand all or Hide all. To expand or hide an individual statement in the hierarchy, click the expand (+) or collapse (–) icon to the left of the statement.

Tip

Only those statements included in the committed configuration are displayed in the hierarchy.

The configuration information in the work area consists of configuration options that correspond to configuration statements. Configuration options that contain subordinate statements are identified by the term Nested.

To include, edit, or delete statements in the candidate configuration, click one of the links described in Table 23. Then specify configuration information by typing in a field, selecting a value from a list, or selecting a check box (toggle).

Link

Function

Add new entry

Displays fields and lists for a statement identifier, allowing you to add a new identifier to a statement.

Configure

Displays information for a configuration option that has not been configured, allowing you to include a statement.

Delete

Deletes the corresponding statement or identifier from the configuration. All subordinate statements and identifiers contained within a deleted statement are also discarded.

Edit

Displays information for a configuration option that has already been configured, allowing you to edit a statement.

Identifier

Displays fields and lists for an existing statement identifier, allowing you to edit the identifier.

As you navigate through the configuration, the hierarchy level is displayed at the top of the work area. You can click a statement or identifier in the hierarchy to display the corresponding configuration options in the work area.

The work area includes icons that display information about statements and identifiers when you place your cursor over them. Table 24 describes these icons.

Table 24: J-Web Edit Point & Click Configuration Icons

Icon

Function

C

Displays a comment about a statement.

I

Indicates that a statement is inactive.

M

Indicates that a statement has been added or modified but has not been committed.

*

Indicates that the statement or identifier is required in the configuration.

?

Provides online help information.

After typing or selecting your configuration edits, click a button in the work area (described in Table 25) to apply your changes or cancel them, refresh the display, or discard parts of the candidate configuration. An updated configuration does not take effect until you commit it.

Table 25: J-Web Edit Point & Click Configuration Buttons

Button

Function

Refresh

Updates the display with any changes to the configuration made by other users.

Commit

Verifies edits and applies them to the current configuration file running on the switch.

Discard

Removes edits applied to or deletes existing statements or identifiers from the candidate configuration.

Using the CLI Editor in the J-Web Interface to Edit Configuration Text

Note

This topic applies only to the J-Web Application package.

Use the CLI Editor to edit configuration if you know the Junos OS CLI or prefer a command interface.

To edit the entire configuration in text format:

Caution

We recommend that you use this method to edit and commit the configuration only if you have experience editing configurations through the CLI.

  1. Select Configure > CLI Tools > CLI Editor. The work area displays the configuration in a text editor.
  2. Navigate to the hierarchy level you want to edit.

    You can edit the candidate configuration using standard text editor operations—insert lines (by using the Enter key), delete lines, and modify, copy, and paste text.

  3. Click Commit to load and commit the configuration.

    The switching platform checks the configuration for the correct syntax before committing it.

Using the J-Web CLI Terminal

Note

This topic applies only to the J-Web Application package.

The J-Web CLI terminal provides access to the Junos OS 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 that of the Junos OS CLI available through the switch 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 the switch.

This topic covers:

Configuring the Web Browser

Configure your Web browser as follows:

  • Install Java Runtime Environment (JRE) version 1.4 or later on your system. JRE is a software package that must be installed on the client system to run Java applications. You can download the latest version of JRE from the Java software website http://www.java.com/. Installing JRE installs Java plug-ins, which once installed, load automatically and transparently to render Java applets.

    Note

    By default Mozilla Firefox has blocked JRE versions earlier than 1.6.0_31 and 1.7.0 through 1.7.0_2. However, Mozilla Firefox users can still click Add-ons > Plugin to enable Java.

  • Set your browser to support and enable Java applets. To know more about checking the status of java applets in your browser see http://java.com/en/download/help/enable_browser.xml.

Setting Domain Name, Hostname, and Name Server

Configure the domain name and hostname of the switch on your system. Ensure that the DNS server setting is correct. DNS name resolution must happen properly. Ensure that there is connectivity between the client and the management device.

You can set the domain name, hostname, and the DNS name server either through the J-Web interface or the CLI:

Enabling SSH on your system

SSH provides a secure method of logging in to the switch, and encrypting traffic so that it is not intercepted. If SSH is not enabled on the system, the CLI terminal page displays the error message:

To enable SSH on your system, do the following:

set system services ssh

Sample Configuration on an EX Series Switch

  1. Type the configure command to enter the configuration mode:

    user@switch> configure

  2. Log in as host:

    user@switch# set system host-name host

  3. Configure the encrypted password; for example:

    user@switch# set system root-authentication encrypted-password "$1$mr3D4eVf$mc7y54e6hk4JuIpwWPao6."

  4. Map the hostname to the IP address:

    user@switch# set system static-host-mapping host inet 10.9.221.31

  5. Configure the IP address for the DNS server:

    user@switch# set system name-server 10.0.220.1

  6. Enable the system services by using:

    set system services:user@switch# set system services ssh

  7. Select Troubleshoot > CLI Terminal. The password window is displayed.
  8. Enter the password, and click OK. The CLI Terminal window appears on the J-Web page.
Note

If you exit from the CLI terminal, the connection is lost. Click CLI Terminal if you want to connect again.

Using the CLI Viewer in the J-Web Interface to View Configuration Text

Note

This topic applies only to the J-Web Application package.

To view the entire configuration file contents in text format, select Configure > CLI Tools > CLI Viewer. The main pane displays the configuration in text format.

Each level in the hierarchy is indented to indicate each statement's relative position in the hierarchy. Each level is generally set off with braces, with an open brace ({) at the beginning of each hierarchy level and a closing brace (}) at the end. If the statement at a hierarchy level is empty, the braces are not displayed. Each leaf statement ends with a semicolon (;), as does the last statement in the hierarchy.

This indented representation is used when the configuration is displayed or saved as an ASCII file. However, when you load an ASCII configuration file, the format of the file is not so strict. The braces and semicolons are required, but the indention and use of new lines are not required in ASCII configuration files.