How to Collect Historical Logs from HNAS
Content

Objective

This article guides an individual in the process of collecting historical logs from a Hitachi NAS Gateway or Hitachi VSP-F/G/Nx00 Series NAS system using:

  • "nas-getlogs" (firmware version 12.5 and below)
  • "getdiagnostic.linux" (firmware version 12.6 and above)

Environment

  • Hitachi NAS Gateway Platform
    • Hitachi NAS Platform 5300 (HNAS 5300)
    • Hitachi NAS Platform 5200 (HNAS 5200)
    • Hitachi NAS Platform 4100 (HNAS 4100)
    • Hitachi NAS Platform 4080 (HNAS 4080)
    • Hitachi NAS Platform 4060 (HNAS 4060)
    • Hitachi NAS Platform 4040 (HNAS 4040)
    • Hitachi NAS Platform 3090 (HNAS 3090)
    • Hitachi NAS Platform 3080 (HNAS 3080)
  • Hitachi SMU
    • Hardware SMU 400
    • Virtual SMU (vSMU)

Procedure

Default passwords are no longer documented here.  Customers requiring the default passwords should open a GSC case.
Service Partners and Employees may consult Hitachi NAS Upgrade, Deployment, and Procedures Documentation.

Internal SMU

  1. Log into the HNAS CLI.
  2. Run the HNAS CLI command evs list and from the output to determine the cluster IP address of the node to gather the historical logs.
  3. From the HNAS CLI press <Ctrl+C> to drop down to the Linux shell prompt.
  4. Use SSH as the supervisor user to connect to the cluster IP address of the node
    ssh supervisor@<IP address>
  5. Enter the password for the supervisor user when prompted.
  6. From the HNAS CLI press <Ctrl+C> to drop down to the Linux shell prompt again.
  7. Switch the root user:
    su
  8. Enter the password for the root user when prompted.
  9. Run the script to gather the diagnostics:
    • Firmware 12.5 and below:
      nas-getlogs

    • Firmware 12.6 and above:
      getdiagnostic.linux

Example

[root@external_smu /]# ssh supervisor@192.0.2.2 
supervisor@192.0.2.2's password: 
Linux MercEBC-2 2.6.26-2-amd64 #1 SMP Wed Aug 19 22:33:18 UTC 2009 x86_64 


Last login: Mon Apr 12 17:40:07 2010 

Bali Console 
Server name : MercEBC-2 
MAC ID : F4-CF-B4-2C-C4-F3 

//at HNAS CLI/BALI now 
MercEBC-2:$ 

//Press 'Ctrl+c' 
//Now at the Linux prompt 
supervisor@MercEBC-2(bash):~$ 
supervisor@MercEBC-2(bash):~$ su
Password: 
WARNING: root access should be used only under instruction from your support team. Modifying system settings or installed packages could adversely affect the server. 
MercEBC-2:/var/opt/mercury-main/home/supervisor# nas-getlogs 
Creating archive... 
Logs saved to Merctiger_log-files_2011-04-12_0903-0700.tgz 
MercEBC-2:/var/opt/mercury-main/home/supervisor#

External SMU

  1. Log into the HNAS CLI by using ssh to connect to the SMU as the manager user.
  2. From the "siconsole" prompt that appears, select the cluster that you are interested in.
  3. Run the HNAS CLI command evs list and from the output to determine the cluster IP address of the node to gather the historical logs.
  4. Press <Ctrl+C> to exit from the HNAS CLI and drop back to the "siconsole" prompt on the SMU.
  5. From the "siconsole" prompt press <Ctrl+C> or type q to drop down to the Linux shell prompt on the SMU.
  6. Use SSH as the supervisor user to connect to the cluster IP address of the node
    ssh supervisor@<IP address>
  7. Enter the password for the supervisor user when prompted.
  8. From the HNAS CLI press <Ctrl+C> to drop down to the Linux shell prompt on the HNAS server.
  9. Switch to the root user:
    su
  10. Enter the password for the root user when prompted.
  11. Run the script to gather the diagnostics:
    • Firmware 12.5 and below:
      nas-getlogs
    • Firmware 12.6 and above:
      getdiagnostic.linux

Example

[root@external_smu /]# ssh supervisor@192.0.2.2 
supervisor@192.0.2.2's password: 
Linux MercEBC-2 2.6.26-2-amd64 #1 SMP Wed Aug 19 22:33:18 UTC 2009 x86_64 

Last login: Mon Apr 12 17:40:07 2010 

Bali Console 
Server name : MercEBC-2 
MAC ID : F4-CF-B4-2C-C4-F3 

//at HNAS CLI/BALI now 
MercEBC-2:$ 

//Press 'Ctrl+c' 
//Now at the Linux prompt 
supervisor@MercEBC-2(bash):~$ 
supervisor@MercEBC-2(bash):~$ su
Password: 
WARNING: root access should be used only under instruction from your support team. Modifying system settings or installed packages could adversely affect the server. 
MercEBC-2:/var/opt/mercury-main/home/supervisor# nas-getlogs 
Creating archive... 
Logs saved to Merctiger_log-files_2011-04-12_0903-0700.tgz 
MercEBC-2:/var/opt/mercury-main/home/supervisor#

Post file creation

Once the nas-getlogs command has created the archive file of the logs note the path and filename.  Exit the node and return to the SMU prompt.  Then move the file to the SMU using SCP:

# scp supervisor@192.0.2.1:/var/opt/mercury-main/home/supervisor/<filename of saved file> .

Then copy that file to your desktop using a program that supports scp/sftp on the desktop.

 
Attachments
CXone Metadata

Tags: howto, hnas, HM800, Diagnostics ,Logs, nas-getlogs, historical

Page ID: 8276