网卡信息查询
[root@localhost2:~] esxcfg-nics -l
Name PCI Driver Link Speed Duplex MAC Address MTU Description
vmnic0 0000:01:00.0 ntg3 Up 1000Mbps Full c8:1f:66:f2:25:fc 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic1 0000:01:00.1 ntg3 Down 0Mbps Half c8:1f:66:f2:25:fd 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic2 0000:02:00.0 ntg3 Down 0Mbps Half c8:1f:66:f2:25:fe 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic3 0000:02:00.1 ntg3 Up 1000Mbps Full c8:1f:66:f2:25:ff 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic4 0000:04:00.0 ixgben Down 0Mbps Half 90:e2:ba:93:9f:58 1500 Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection
vmnic5 0000:04:00.1 ixgben Up 10000Mbps Full 90:e2:ba:93:9f:5a 1500 Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection
获取主机总线适配器当前使用得驱动程序类型
[root@localhost2:~] esxcfg-scsidevs -a
vmhba0 vmw_ahci link-n/a sata.vmhba0 (0000:00:1f.2) Intel Corporation Patsburg 6 Port SATA AHCI Controller
vmhba1 lsi_mr3 link-n/a sas.5c81f660f7636700 (0000:03:00.0) LSI / Symbios Logic Dell PERC H710 Mini
vmhba64 iscsi_vmk online iscsi.vmhba64 iSCSI Software Adapter
存储路径查询
[root@localhost2:~] esxcli storage core path list
sas.5c81f660f7636700-sas.605c95593ce97768-naa.6c81f660f7636700235c95593ce97768
UID: sas.5c81f660f7636700-sas.605c95593ce97768-naa.6c81f660f7636700235c95593ce97768
Runtime Name: vmhba1:C2:T2:L0
Device: naa.6c81f660f7636700235c95593ce97768
Device Display Name: Local DELL Disk (naa.6c81f660f7636700235c95593ce97768)
Adapter: vmhba1
Channel: 2
Target: 2
LUN: 0
Plugin: NMP
State: active
Transport: sas
Adapter Identifier: sas.5c81f660f7636700
Target Identifier: sas.605c95593ce97768
Adapter Transport Details: 5c81f660f7636700
Target Transport Details: 605c95593ce97768
Maximum IO Size: 262144
sata.vmhba0-sata.0:4-mpx.vmhba0:C0:T4:L0
UID: sata.vmhba0-sata.0:4-mpx.vmhba0:C0:T4:L0
...
查询WWN号
esxcli storage san iscsi list
[root@localhost2:~] esxcli storage san iscsi list
Adapter: vmhba64
UID: iscsi.vmhba64
Driver: iscsi_vmk
State: online
Description: iSCSI Software Adapter
[root@localhost2:~] esxcli storage san iscsi list |grep UID
UID: iscsi.vmhba64
esxcli storage fc iscsi list
esxcli storage san fc list |grep -E 'Node Name:|Port Name'
query SCSI devices
#List the devices currently registered with the PSA.
esxcli storage core device list
#List the SCSI stats for SCSI Devices in the system
esxcli storage core device stats get
#List all the SCSI paths on the system.
esxcli storage core path list
#List the SCSI stats for the SCSI Paths in the system.
esxcli storage core path stats get