Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Downloading Troubleshooting System Log Files Through the Junos Space CLI

If a Junos Space node is Up, the administrator can log in to the Junos Space node and download system status logs for each fabric node by using the Secure Copy Protocol (SCP). If the Junos Space node is Down but you can log in to the console of a Junos Space Appliance, you can download system status logs to a USB drive.

The Retrieve Logs utility collects all system log files in the /var/log subdirectory and creates a compressed TAR file (extension *.tgz). For more information about the log files that are written, see System Status Log File Overview.

This topic includes the following sections:

Downloading a System Log File by Using a USB Device

Before you begin, ensure that the USB device is connected to the Junos Space Appliance.

Using the Retrieve Logs > Save to USB Device command, the administrator can download system status logs to a connected USB device if the Junos Space node is Down and you can log in to the console.

  1. Log in to the Junos Space Appliance using the administrator username (admin) and password.

    The Junos Space Settings Menu appears, as shown.

  2. Type 4 at the prompt.

    The Retrieve Logs submenu appears.

  3. Type 1.

    The following message is displayed: This process will retrieve the log files on all cluster members and combine them into a .tar file. Once the file is created, you can copy the files onto a USB drive. Continue? [y/n]

  4. Type y to continue.

    You are prompted to enter the administrator password.

  5. Enter the administrator password.

    The system downloads the log files from all the nodes in the fabric and combines them into a .tar file. After the file is created, the file is coped to the USB device and a message similar to the following is displayed: Copying 20090827-1511-logs.tar to USB drive.

    Note:

    If the USB device is not ready, the following message appears: Log collection complete If USB key is ready, press "Y". To terminate, press "N".

  6. After the files are copied, unmount the USB and eject it from the Junos Space Appliance.

Downloading System Log File by Using SCP

Using the Junos Space CLI Retrieve Logs > SCP command, the administrator can download system status logs to a specific location.

To download system status logs by using SCP, perform the following steps:

  1. Log in to the Junos Space node using the administrator username (admin) and password.

    The Junos Space Settings Menu appears, as shown.

  2. Type 4 at the prompt.

    The Retrieve Logs submenu appears.

  3. Type 2.

    The following confirmation message is displayed:

    This process will retrieve the log files on all cluster members and combine them into a .tar file. Once the file is created, you will be asked for a remote scp server to transfer the file to. Continue? [y/n]

  4. Type y to continue.

    You are prompted to enter the administrator password.

  5. Enter the administrator password.

    A message indicating that the log files are being collected is displayed. The process retrieves the log files on all cluster members and combines them into a .TAR file. This might take a few minutes to complete.

    After this is completed, you are prompted to enter the IP address of the remote server.

  6. Enter the IP address of the SCP server to which to transfer the file.
    Note:
    • Depending on whether the Junos Space fabric is configured with only IPv4 addresses or both IPv4 and IPv6 addresses, Junos Space Platform allows you to enter an IPv4 address or either an IPv4 or IPv6 address respectively for the SCP server.

    • The IPv4 and IPv6 addresses that you use must be valid addresses. Refer to http://www.iana.org/assignments/ipv4-address-space for the list of restricted IPv4 addresses and http://www.iana.org/assignments/ipv6-address-space for the list of restricted IPv6 addresses.

  7. Enter the remote SCP user.
  8. Enter the directory on the remote SCP server where the log file should be stored; for example, /root/tmplogs.

    The remote server information that you entered is displayed. The following is a sample:

  9. If the SCP server information is correct, type y.

    If you are connecting to the SCP server for the first time, a message is displayed asking you to confirm that you want to continue. The following is a sample message:

    Note:

    If the SCP server information is incorrect or if you want to modify the SCP server information, type n at the prompt, and modify the SCP server information as explained in the preceding steps.

  10. Type y to continue.

    You are prompted to enter the password.

  11. Enter the password for the SCP server.

    If the credentials are correct, the file is transferred to the SCP server.