VMware의 경우, 로컬(VMware ESXi Host)에서는 adureport를 취합할 수 없음(제약사항)

원격 서버(Client role)에서 수행해야 함

 

ESXi 호스트에서 확인:

1. putty로 esxihost에 접근하여 ssadu 명령 동작 여부 및 SHA key 확인 (별도 기록 필요)

-----------------------------------------------------

[root@esxihost:]esxcli ssacli cmd -q "controller all show status"

 

[root@esxihost:] openssl x509 -in /etc/vmware/ssl/rui.crt -fingerprint -sha1 -noout
SHA1 Fingerprint=2B:AE:78:C1:17:6C:59:BB:F7:AD:00:E4:C5:14:E9:DD:C1:35:9B:7C

-----------------------------------------------------

 

Client Host에서 수행:
Linux:

1. Install esxcli 7.0.x (Check esxi version, esxcli need to match with its version)
ESXCLI
https://code.vmware.com/web/tool/7.0/esxcli

 

VMware ESX Command Line Interface 7.0
https://my.vmware.com/group/vmware/downloads/get-download?downloadGroup=ESXCLI-700

 

# chmod 755 esxcli-7.0.0-15866526-lin64.sh

# ./esxcli-7.0.0-15866526-lin64.sh

-----------------------------------------------------

Starting esxcli installer...
...
ESXCLI installer finished successfully.

-----------------------------------------------------

 

2. Install ssadu
HPE Smart Storage Administrator Diagnostic Utility (HPE SSADU) CLI for Windows 64-bit

4.21.7.0(5 Oct 2020)
https://support.hpe.com/hpesc/public/swd/detail?swItemId=MTX_06844ab2ee244d5294cb7e5fbd

 

# ssaducli

-----------------------------------------------------

Smart Storage Diagnostics 2.65.7.0 2017-02-14
Usage: ssaducli [ -adu | -ssd | -val ] [ command-specific options ]
-adu : Generate an ADU Report
        ssaducli -adu -f reportFileName [ -v ] [ -slot < controller slot number > ]
        Generate a complete report. Save to reportFileName.

<snip>

-----------------------------------------------------

 

3. Run Command for generate adureport.

-----------------------------------------------------

# /opt/smartstorageadmin/ssaducli/bin/ssaduesxi --server=esxihost_ipaddress --user=root --password=password
--file=/tmp/filename-adurpt.zip --thumbprint 2B:AE:78:C1:17:6C:59:BB:F7:AD:00:E4:C5:14:E9:DD:C1:35:9B:7C

 

SSADUESXI: Version 2.65.7.0 2017-02-14

Generating and encoding report... Decoding locally... /tmp/filename-adurpt.zip saved.

 

# ls

filename-adurpt.zip

-----------------------------------------------------

 

Windows:

1. Install esxcli 7.0.x (Check esxi version, esxcli need to match with its version)
ESXCLI
https://code.vmware.com/web/tool/7.0/esxcli

 

VMware ESX Command Line Interface 7.0
https://my.vmware.com/group/vmware/downloads/get-download?downloadGroup=ESXCLI-700

> esxcli-7.0.0-15866526-win64_vc140-signed.msi

 

2. Install ssadu

HPE Smart Storage Administrator Diagnostic Utility (HPE SSADU) CLI for Windows 64-bit

4.21.7.0(5 Oct 2020)
https://support.hpe.com/hpesc/public/swd/detail?swItemId=MTX_06844ab2ee244d5294cb7e5fbd

> cp044528.exe

 

3. Set variable

   -----------------------------------------------------
   a. add PATH for ssadu and esxcli
   C:\> set path=C:\Program Files\Smart Storage Administrator\ssaducli\bin;C:\Program Files (x86)\VMware\esxcli

 

   b. set variable
   C:\> set VI_SERVER=esxihost_ipaddress
   C:\> set VI_USERNAME=root
   C:\> set VI_PASSWORD=password

   -----------------------------------------------------

 

4. Run Command

-----------------------------------------------------

C:\> ssaduesxi.exe --server=10.54.111.56 --user=root --password=Password@123 --file=filename-adurpt.zip --thumbprint 2B:AE:78:C1:17:6C:59:BB:F7:AD:00:E4:C5:14:E9:DD:C1:35:9B:7C

SSADUESXI: Version 4.21.7.0 2020-07-15

Generating and encoding report... Decoding locally... filename-adurpt.zip saved.

 

C:\temp>dir
03/23/2021 04:10 PM 69,476 filename-adurpt.zip

-----------------------------------------------------

 

Note. Windows Client의 경우, VC runtime이 없는 경우 오류가 발생할 수 있으며, 관련 OS patch가 필요할 수 있음.

 

 

 

반응형
Posted by 스쳐가는인연

댓글을 달아 주세요

Array 정보 확인 (VMware)

1. Copy HP ESXi Utilities Offline Bundle to datastore

HP ESXi Utilities Offline Bundle for VMware vSphere 5.5

2.2(30 Mar 2015)

http://ftp.hp.com/pub/softlib2/software1/pubsw-windows/p2128318412/v97967/hp-HPUtil-esxi5.5-bundle-2.2-16.zip

 

2. Connect VMware Console via ssh

 

3. Install HP ESXi Utilities Offline Bundle

Example:

~# cd /vmfs/volumes/datastoreX/"Bundle Depot path"/

~# esxcli software vib install -d /vmfs/volumes/datastoreX/"Bundle Depot path"/"hp-HPUtil-esxi5.5-bundle-2.2-16.zip"

~# esxcli software vib install -d /vmfs/volumes/55de5576-c5e4aa60-e6db-9cb65490b9ec/Depot/hp-HPUtil-esxi5.5-bundle-2.2-16.zip

 

4. Check array status

Example:

~# esxcli hpssacli cmd -q "controller all show config detail"


** ESXi Host에서 ADU report 취합 시도 >> 실패


~# esxcli hpssacli cmd -q "controller all diag”

Error: An ADU report cannot be generated in VMware ESXi using the diag command due to limitations of the operating system. You must use the HPSSADUESXI utility executed from a remote machine in order to obtain the report.


ADU Report 취합 

Linux(RHEL 6.x)

5. Install VMware vSphere CLI and hpssaducli on RHEL

HP Smart Storage Administrator Diagnostic Utility (HP SSADU) CLI for Linux 64-bit (American, International)

2.20-11.0(15 Jun 2015)

http://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p219801368/v104433/hpssaducli-2.20-11.0.x86_64.rpm

 

VMware vSphere CLI 5.5 Update 2

https://my.vmware.com/kr/web/vmware/details?downloadGroup=VCLI55U2&productId=352

 

Example:

[root@localhost bin]# ls /tmp

hpssaducli-2.20-11.0.x86_64.rpm  VMware-vSphere-CLI-5.5.0-2043780.x86_64.tar.gz  yum.log

 

[root@localhost tmp]# rpm -Uvh hpssaducli-2.20-11.0.x86_64.rpm

Preparing...                ########################################### [100%]

   1:hpssaducli             ########################################### [100%]

 

[root@localhost tmp]# tar –xvf VMware-vSphere-CLI-5.5.0-2043780.x86_64.tar.gz

[root@localhost tmp]# cd vmware-vsphere-cli-distrib/

[root@localhost vmware-vsphere-cli-distrib]# ./vmware-install.pl

 

** Can’t install without openssl-devel-*.el6.x86_64.rpm

If occurred openssl-devel related error ----

Fix :

# yum install openssl-devel

-------------------------------------------------

 

# /opt/hp/hpssaducli/bin/hpssaduesxi --server=ip_address --user=root --password=password /tmp/ip_address-adurpt.zip

 

If occurred below error ------------

sh: /usr/bin/esxcli: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Fix :

# yum install ld-linux.so.2

---------------------------------------

 

If occurred below error ------------

HPSSADUESXI requires the use of the vSphere CLI (esxcli) client application. Make certain that this client has been installed

and is available from this directory. If vSphere CLI has been installed, check the correctness of the inputted parameters.

 

# vim ADUReportESXi.enc

Connect to 16.153.218.148 failed: Cannot complete login due to an incorrect user name or password.

 

Fix :

[root@localhost ~]# export VI_SERVER=esxi_host_ip_address

[root@localhost ~]# export VI_USERNAME=root

[root@localhost ~]# export VI_PASSWORD=password

[root@localhost tmp]# /opt/hp/hpssaducli/bin/hpssaduesxi ip_address-adurpt.zip

 

Retrieving report... Decoding... ip_address-adurpt.zip saved.

[root@localhost tmp]# ls esxi_host_ip_address-adurpt.zip

ip_address-adurpt.zip

---------------------------------------


Windows

VMware vSphere CLI 5.5 Update 2

VMware-vSphere-CLI-5.5.0-2043780.exe

 

HP Smart Storage Administrator Diagnostic Utility (HP SSADU) CLI for Windows 64-bit

2.20.11.0(15 Jun 2015)

http://ftp.hp.com/pub/softlib2/software1/sc-windows/p2024036775/v104449/cp025538.exe

 

1. 환경변수 구성(ssaduclivSphere CLI 경로 추가)

C:\> set path=C:\Program Files\hp\hpssaducli\bin\;C:\Program Files (x86)\VMware\VMware vSphere CLI\bin
C:\> set path=%PROGRAMFILES%\hp\hpssaducli\bin\;%PROGRAMFILES(X86)%\VMware\VMware vSphere CLI\bin

 

2. 변수 구성

C:\> set VI_SERVER=esxi_host_ip_address

C:\> set VI_USERNAME=root

C:\> set VI_PASSWORD=password

 

3. 명령 수행

hpssaduesxi.exe esxi_host_ip_address-adurpt.zip 


참고자료.

HP VMware Utilities User Guide VMware vSphere 5.5 U2 for March 2015

http://h41302.www4.hp.com/km/saw/view.do?docId=emr_na-c04620881

반응형
Posted by 스쳐가는인연

댓글을 달아 주세요