Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
external-header-nav
keyboard_arrow_up
close
keyboard_arrow_left
Workspaces User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Downloading Troubleshooting System Log Files Through the Junos Space CLI

date_range 21-Jun-21

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.

    content_copy zoom_out_map
    Junos Space Settings Menu
    
    1> Change Password
    2> Change Network Settings
    3> Change Time Options
    4> Retrieve Logs
    5> Security
    6> (Debug) run shell
    
    Q> Quit
    R> Redraw Menu
    
    Choice [1-6,QR]:
  2. Type 4 at the prompt.

    The Retrieve Logs submenu appears.

    content_copy zoom_out_map
    Choice [1-6,AQR]: 4
    1> Save to USB Device
    2> Send Using SCP
    
    A> Apply changes
    M> Return to Main Menu
    R> Redraw Menu
    
    Choice [1-2,AMR]:
  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.

    content_copy zoom_out_map
    Junos Space Settings Menu
    
    1> Change Password
    2> Change Network Settings
    3> Change Time Options
    4> Retrieve Logs
    5> Security
    6> (Debug) run shell
    
    Q> Quit
    R> Redraw Menu
    
    Choice [1-6,QR]:
  2. Type 4 at the prompt.

    The Retrieve Logs submenu appears.

    content_copy zoom_out_map
    Choice [1-6,AQR]: 4
    1> Save to USB Device
    2> Send Using SCP
    
    A> Apply changes
    M> Return to Main Menu
    R> Redraw Menu
    
    Choice [1-2,AMR]:
  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:

    content_copy zoom_out_map
    Remote scp IP: 192.0.2.0
    Remote scp user: root
    Remote scp path: /root/tmplogs
    Is this correct? [y/n] 
    
  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:

    content_copy zoom_out_map
    The authenticity of host '192.0.2.0 (192.0.2.0)' can't be established.
    RSA key fingerprint is 01:70:4c:47:9e:1e:84:fc:69:3c:65:99:6d:e6:88:87.
    Are you sure you want to continue connecting (yes/no)? yes
    
    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.

external-footer-nav