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:
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.
Firmware 12.5 and below:
nas-getlogs
Firmware 12.6 and above:
getdiagnostic.linux
[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#
Firmware 12.6 and above:
getdiagnostic.linux
[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#
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.
Tags: howto, hnas, HM800, Diagnostics ,Logs, nas-getlogs, historical
Page ID: 8276