'2021/03/26'에 해당되는 글 1건

  1. 2021.03.26 VMw ESXi 7.0.x/Collect ADUreport at Online

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 스쳐가는인연

댓글을 달아 주세요