Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Executing Commands by Using Looking Glass

You use Looking Glass to run some commands on a device from the Junos Space user interface. The following types of commands are supported: show, ping, test, and traceroute. If you enter an unsupported command, the following message is displayed: Looking glass supports only the commands without '|','<' and '>' and starting with ping/show/test/traceroute.

Before you start executing commands by using Looking Glass, ensure that you have configured the Looking Glass Device response timeout in secs option on the Modify Application Settings page. This setting defines the maximum time that Junos Space Network Management Platform waits to collect the command output. The default timeout interval is 120 seconds.

To run a supported command on a device by using Looking Glass:

  1. On the Junos Space Network Management Platform user interface, select Devices > Device Management.

    The Device Management page that appears lists all the devices that currently exist in the Junos Space Platform database.

  2. Select the devices on which you want to run the show command and select Device Operations > Looking Glass from the Actions menu.

    The Looking Glass page is displayed.

  3. (Optional) By default, a green check mark is displayed against all the devices, which indicates that all the devices are selected. To select only a few devices, press the Ctrl key and select the devices by clicking the appropriate device icons.

    A green check mark is displayed against the selected devices.

  4. In the Execute Command field, enter a command or the first few letters of the command.

    A list of suggestions is displayed. The suggestions include only those commands that are present in the Junos Space Platform database and that can be executed on the devices currently selected.

    Lengthy commands that do not fit in the Execute Command field are truncated and displayed with periods (.); for example CLI_COMMAND....

    Mouse over the truncated view of the command to view the full command.

    Note:

    If the command that you are running requires your input, replace the part of the command shown as text in angle brackets with your own data. For example, replace <slot> in show chassis routing-engine <slot> with the slot number, as in show chassis routing-engine 1.

    You can also select a command from the list of commands in this field.

  5. (Optional) If you typed the entire command or selected a command from the list, click Refresh Response or press Enter.

    The command is executed on the devices. A progress bar indicates that the command is being executed.

    When the command execution is complete, the results are displayed below the Execute Command field. The command that you entered or selected is displayed beside the Refresh Response button. The output of the command executed on these devices is displayed one below the other. Scroll the results to view the output from these devices.

    Note:

    If one of the devices on which you executed the command takes too long to respond with results, the results from this device are omitted and a Request timeout message is displayed in a dialog box. The command output for other devices on which the command is successfully executed is displayed.

  6. (Optional) The Format Text view is the default view of the output. To change the view of the output, click the Table view icon.
  7. (Optional) To view the output for a subset of devices, press the Ctrl key and select the devices whose output you want to view by clicking the appropriate device icons.
  8. Click OK to exit the Looking Glass page.

    An audit log entry is generated for this task.