Tuesday, January 24, 2012

ESXi cli

Some quick command with ESXi command line

C:\Program Files\VMware\VMware vSphere CLI\bin

Check and see if powerpath is installed:

C:\>vihostupdate.pl --query --server <server> --username root
Enter password:
---------Bulletin ID--------- -----Installed----- ----------------Summary-----------------
ESX400-Update01               2011-10-22T16:21:24 VMware ESX 4.0 Complete Update  1
EMC-PP5.4.1.00.00-b033        2011-10-26T08:28:48 PowerPath 5.4.SP1 for ESX


What pathmgmt software is managing multipathing per device:
C:\>esxcli --server <server> corestorage claimrule list

Enter username: root
Enter password:
Rule  Class   Type      Plugin    Matches
----  -----   ----      ------    -------
0     runtime transport NMP       transport=usb
1     runtime transport NMP       transport=sata
2     runtime transport NMP       transport=ide
3     runtime transport NMP       transport=block
4     runtime transport NMP       transport=unknown
101   runtime vendor    MASK_PATH vendor=DELL model=Universal Xport
101   file    vendor    MASK_PATH vendor=DELL model=Universal Xport
250   runtime vendor    PowerPath vendor=DGC model=*
250   file    vendor    PowerPath vendor=DGC model=*
260   runtime vendor    PowerPath vendor=EMC model=SYMMETRIX
260   file    vendor    PowerPath vendor=EMC model=SYMMETRIX
270   runtime vendor    PowerPath vendor=EMC model=Invista
270   file    vendor    PowerPath vendor=EMC model=Invista
280   runtime vendor    PowerPath vendor=HITACHI model=OPEN
280   file    vendor    PowerPath vendor=HITACHI model=OPEN
290   runtime vendor    PowerPath vendor=HP model=OPEN
290   file    vendor    PowerPath vendor=HP model=OPEN
300   runtime vendor    PowerPath vendor=COMPAQ model=HSV111
300   file    vendor    PowerPath vendor=COMPAQ model=HSV111
310   runtime vendor    PowerPath vendor=HP model=HSV111
310   file    vendor    PowerPath vendor=HP model=HSV111
320   runtime vendor    PowerPath vendor=HP model=HSV210
320   file    vendor    PowerPath vendor=HP model=HSV210
330   runtime vendor    PowerPath vendor=EMC model=Celerra
330   file    vendor    PowerPath vendor=EMC model=Celerra
65535 runtime vendor    NMP       vendor=* model=*

Get a listing of all scsi devices on the ESX server and determine if PowerPath is managing the devices
C:\>vicfg-scsidevs.pl --l --server 10.127.79.58 --username root --password <password>

mpx.vmhba3:C0:T0:L0
   Device Type: cdrom
   Size: 0 MB
   Display Name: Local HL-DT-ST CD-ROM (mpx.vmhba3:C0:T0:L0)
   Plugin: NMP
   Console Device: /vmfs/devices/genscsi/mpx.vmhba3:C0:T0:L0
   Devfs Path: /vmfs/devices/genscsi/mpx.vmhba3:C0:T0:L0
   Vendor: HL-DT-ST  Model: RW/DVD GCC-4244N  Revis: 2.00
   SCSI Level: 5  Is Pseudo:   Status:
   Is RDM Capable:  Is Removable:
   Other Names:
      vml.0005000000766d686261333a303a30

naa.600601602b40230018637b9ca9fee011
   Device Type: disk
   Size: 20480 MB
   Display Name: DGC Fibre Channel Disk (naa.600601602b40230018637b9ca9fee011) L
UN1582
   Plugin: PowerPath
   Console Device: /vmfs/devices/disks/naa.600601602b40230018637b9ca9fee011
   Devfs Path: /vmfs/devices/disks/naa.600601602b40230018637b9ca9fee011
   Vendor: DGC       Model: RAID 5            Revis: 0429
   SCSI Level: 4  Is Pseudo:   Status:
   Is RDM Capable:  Is Removable:
   Other Names:
      vml.0200040000600601602b40230018637b9ca9fee011524149442035


0 comments:

Post a Comment