Technical Documentation

Downloading Troubleshooting System Log Files Using the CLI

If Junos Space is operating, the administrator can log into an appliance console and download system status logs for each fabric node using the CLI Network Settings Utility > SecureCoPy (SCP) command. If the system is not operating, the Administrator can download system status logs using the CLI USB command.

The Network Settings Utility, for both commands, collects all system log files in the /var/log subdirectory and creates a *.TAR file to download. For more information on the log files that are written, see System Status Log File Overview.

This procedure includes the following tasks:

Downloading a System Log File Using a USB Device

Using the Networks Settings Utility Retrieve Logs > USB command, the administrator can download system status logs to a connected USB device if the network is down.

  1. Using a console utility, such as SSH or Telnet, connect to the appliance. The Junos Space Settings Menu appears.
    Junos Space Settings Menu
    
    1> Change Password
    2> Set Routing
    3> Set DNS Servers
    4> Change Time Options
    5> Retrieve Logs
    6> Security
    7> (Debug) run shell
    
    Q> Quit
    R> Redraw Menu
    
    Choice [1-7,QR]:
    
    
  2. Type option 5> Retrieve Logs. The Retrieve Logs submenu appears.
    Choice [1-7,QR]: 5
    
    1> Save to USB
    2> Send via SCP
    
    M> Return to Main Menu
    R> Redraw Menu
    
     Choice [1-2,MR]: 
  3. Select 1> Save to USB. The USB device must be connected to an appliance.
  4. Indicate whether you want to continue. Enter y for yes; n to abort.
  5. The Save to USB process downloads the log files from all cluster members and combines them into a .tar file. Once the file is created, the process copies the file onto a USB device. You see the following:
    Copying 20090827-1511-logs.tar to USB drive

Downloading System Log File Using SCP

Using the Networks Settings Utility Retrieve Logs > SCP command, the administrator can download system status logs to a specific location.

To download system status logs using SCP, follow these steps:

  1. Using a console utility, such as SSH or Telnet, connect to an appliance. The Junos Space Settings Menu appears.
    Junos Space Settings Menu
    
    1> Change Password
    2> Set Routing
    3> Set DNS Servers
    4> Change Time Options
    5> Retrieve Logs
    6> Security
    7> (Debug) run shell
    
    Q> Quit
    R> Redraw Menu
    
    Choice [1-7,QR]:
    
    
  2. Type option 5> Retrieve Logs. The Retrieve Logs submenu appears.
    Choice [1-7,QR]: 5
    
    1> Save to USB
    2> Send via SCP
    
    M> Return to Main Menu
    R> Redraw Menu
    
     Choice [1-2,MR]: 
  3. Select 2> Send via SCP.The process retrieves the log files on all cluster members and combines them into a .TAR file.
  4. Indicate whether you want to continue. Enter y for yes; n to abort.
  5. Specify the SCP server IP address to which to transfer the file.
  6. Enter the remote SCP user. For example, root
  7. Enter the remote SCP file location. For example, /root/tmplogs. You see the following:
    Remote scp IP: 123.123.123.123
    Remote scp user: root
    Remote scp path: /root/tmplogs
    Is this correct? [y/n] 
    The authenticity of host '123.123.123.123 (123.123.123.123)' 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
    Warning: Permanently added '123.123.123.123' (RSA) to the list of known hosts.
    Warning-Please dont use this system
    /etc/selinux/strict/contexts/files/file_contexts: Multiple same specifications for /usr/local/lost\+found/.*.
    /etc/selinux/strict/contexts/files/file_contexts: Multiple same specifications for /usr/local/\.journal.
    /etc/selinux/strict/contexts/files/file_contexts: Multiple same specifications for /usr/local/lost\+found.
    123.123.123.123 password: 
    20090827-1517-logs.tar                                                                                                                       
    100%   18MB  17.6MB/s   00:01 
  8. Indicate whether the SCP server information is correct. Enter y for yes; n if incorrect.
  9. Indicate whether you want to continue. Enter y for yes; n for no.

Published: 2010-03-18