Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Executing Device-Connection Debug Scripts

You execute the device-connection debug scripts to view information about device-connection issues related to Junos Space nodes and devices connected to these nodes. Device-connection scripts are stored at the following location: /var/log/space-debug/debug-utilities/deviceConnection. When you execute these scripts, the output is stored as .txt files at the same location. You can also specify a custom path to store the output. The following sections list the steps to execute the scripts to collect information about device-connection issues.

Executing the Script to Collect Device-Connection Information

You execute the getDeviceInfo.sh script to collect device-connection information of a device.

To execute the script to collect device-connection information:

  1. Log in to the CLI of the Junos Space node.
  2. Enter the administrator username and password at the Junos Space login prompt and press Enter.

    The default username is admin and the default password is abc123.

    The Junos Space Settings Menu is displayed.

  3. Enter 6 (if you are using a hardware appliance) or 7 (if you are using a virtual appliance) at the Junos Space Settings Menu prompt to run shell commands.

    You are prompted to enter your password.

    The following is a sample output from a virtual appliance:

  4. Type the administrator password and press Enter.

    The shell prompt appears.

  5. Type cd /var/log/space-debug/debug-utilities/deviceConnection at the shell prompt and press Enter.
  6. (Optional) To view the list of debug scripts, type ls and press Enter.

    The list of device-connection debug scripts is displayed.

  7. Type ./getDeviceInfo.sh<device-IP address> and press Enter—for example, ./getDeviceInfo.sh 10.206.33.17.

    The output of this command is saved to the DeviceInfo-<device-IP address>.txt file in the same directory.

    The following is a sample output:

  8. (Optional) To save node connection information at a custom output location, type ./getDeviceInfo.sh<device-IP address> <output-file-path> and press Enter.

You can use the information from the .txt file to debug device-connection issues.

Executing the Script to Collect Device Debug Information

You execute the DeviceDebugInfoCollector.sh script to collect information about the connections and processes on a device.

To execute the script to collect device debug information:

  1. Log in to the CLI of the Junos Space node.
  2. Enter the administrator username and password at the Junos Space login prompt and press Enter.

    The default username is admin and the default password is abc123.

    The Junos Space Settings Menu is displayed.

  3. Enter 6 (if you are using a hardware appliance) or 7 (if you are using a virtual appliance) at the Junos Space Settings Menu prompt to run shell commands.

    You are prompted to enter your password.

  4. Type the administrator password and press Enter.

    The shell prompt appears.

  5. Type cd /var/log/space-debug/debug-utilities/deviceConnection at the shell prompt and press Enter.
  6. (Optional) To view the list of debug scripts, type ls.

    The list of device-connection debug scripts is displayed.

  7. Type ./DeviceDebugInfoCollector.sh<device-IP address><device-username><node-VIP address> and press Enter—for example, ./DeviceDebugInfoCollector.sh 10.206.32.107 user1 10.206.41.57..
  8. Enter the device password.

    The output from this command is saved to the DeviceDebugInfo-<device-IP address>.txt file in the same directory.

    The following is a sample output:

  9. (Optional) To save device debug connection information at a custom output location, type ./DeviceDebugInfoCollector.sh<device-IP address> <device-username> <node-VIP address> <output-file-path> and press Enter..

You can use the information from the .txt file to debug issues related to the connections and processes on the device.

Executing the Script to Unlock the Device Configuration

You execute the cleanupEditChannel.sh script to unlock the device configuration.

To execute the script to unlock the device configuration:

  1. Log in to the CLI of the Junos Space node.
  2. Enter the administrator username and password at the Junos Space login prompt and press Enter.

    The default username is admin and the default password is abc123.

    The Junos Space Settings Menu is displayed.

  3. Enter 6 (if you are using a hardware appliance) or 7 (if you are using a virtual appliance) at the Junos Space Settings Menu prompt to run shell commands.

    You are prompted to enter your password.

  4. Type the administrator password and press Enter.

    The shell prompt appears.

  5. Type cd /var/log/space-debug/debug-utilities/deviceConnection at the shell prompt and press Enter.
  6. (Optional) To view the list of debug scripts, type ls and press Enter.

    The list of device-connection debug scripts is displayed.

  7. Type ./cleanupEditChannel.sh <device-IP address>false and press Enter—for example, ./cleanupEditChannel.sh 10.206.33.17 false.

    You can modify the configuration on the device from the Junos Space user interface.

Executing the Script to Collect Node-Connection Information

You execute the getAllDeviceInfo.sh script to collect information about devices connected to a Junos Space node. You can also execute the script to collect information about devices connected to all the nodes in your Junos Space setup.

To execute the script to collect node-connection information:

  1. Log in to the CLI of the Junos Space node.
  2. Enter the administrator username and password at the Junos Space login prompt and press Enter.

    The default username is admin and the default password is abc123.

    The Junos Space Settings Menu is displayed.

  3. Enter 6 (if you are using a hardware appliance) or 7 (if you are using a virtual appliance) at the Junos Space Settings Menu prompt to run shell commands.

    You are prompted to enter your password.

  4. Type the administrator password and press Enter.

    The shell prompt appears.

  5. Type cd /var/log/space-debug/debug-utilities/deviceConnection at the shell prompt and press Enter.
  6. (Optional) To view the list of debug scripts, type ls and press Enter.
  7. Type ./getAllDeviceInfo.sh <node-VIP address> and press Enter—for example, ./getAllDeviceInfo.sh 10.206.41.57.

    The output from this command is saved to the DeviceInfoOutput.txt file in the same directory.

    The following is a sample output:

  8. (Optional) To save node connection information at a custom output location, type ./getAllDeviceInfo.sh <node-VIP address> <output-file-path> and press Enter.
  9. (Optional) To view connection information across all nodes, type ./getAllDeviceInfo.sh ALL-NODES and press Enter.

You can use the information from the .txt file to debug issues related to devices connected to a single or multiple Junos Space nodes.