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
- Log into the HNAS CLI.
- 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.
- From the HNAS CLI press <Ctrl+C> to drop down to the Linux shell prompt.
- Use SSH as the supervisor user to connect to the cluster IP address of the node
ssh supervisor@<IP address> - Enter the password for the supervisor user when prompted.
- From the HNAS CLI press <Ctrl+C> to drop down to the Linux shell prompt again.
- Switch the root user:
su - Enter the password for the root user when prompted.
- 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
- Log into the HNAS CLI by using ssh to connect to the SMU as the manager user.
- From the "siconsole" prompt that appears, select the cluster that you are interested in.
- 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.
- Press <Ctrl+C> to exit from the HNAS CLI and drop back to the "siconsole" prompt on the SMU.
- From the "siconsole" prompt press <Ctrl+C> or type q to drop down to the Linux shell prompt on the SMU.
- Use SSH as the supervisor user to connect to the cluster IP address of the node
ssh supervisor@<IP address> - Enter the password for the supervisor user when prompted.
- From the HNAS CLI press <Ctrl+C> to drop down to the Linux shell prompt on the HNAS server.
- Switch to the root user:
su - Enter the password for the root user when prompted.
- Run the script to gather the diagnostics:
- Firmware 12.5 and below:
nas-getlogs -
Firmware 12.6 and above:
getdiagnostic.linux
- Firmware 12.5 and below:
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.
Additional Notes
CXone Metadata
Tags: howto, hnas, HM800, Diagnostics ,Logs, nas-getlogs, historical
Page ID: 8276