はじめに
かつてESXiのサーバー(Ver 4, 5, 6)を多数運用していたことがあり、調査時に使用したコマンドをまとめたときのものになります。そのため実行結果の日付が古いです。192.168.XX.YYのようなところは伏字ですので、各環境に合わせて置き換えてご利用ください。
1. 一般的なコマンド
1.1 基本的な操作
ping: ネットワーク接続確認
WindowsのPingとほぼ同じ。若干オプションが異なる。実体はvmkpingコマンドでpingがエイリアスとなっている
ping 192.168.XX.YY
PING 192.168.XX.YY (192.168.XX.YY): 56 data bytes
64 bytes from 192.168.XX.YY: icmp_seq=0 ttl=126 time=2.990 ms
64 bytes from 192.168.XX.YY: icmp_seq=1 ttl=126 time=2.776 ms
64 bytes from 192.168.XX.YY: icmp_seq=2 ttl=126 time=2.638 ms
esxtop (top): リアルタイムのリソース監視
ESXi自身のプロセスの他、仮想マシンのリソース状態が確認できる。オプションを指定して起動することで、内容のテキスト出力も可能。
n # Network
m # Memory
c # CPU
q # Quit
V # VMごとに絞り込み(大文字でV)
esxtop
12:16:43am up 3 days 13:02, 640 worlds, 2 VMs, 6 vCPUs; CPU load average: 0.04, 0.03, 0.04
PCPU USED(%): 1.0 0.5 0.4 1.4 2.7 0.7 0.6 0.6 AVG: 1.0
PCPU UTIL(%): 3.5 1.8 1.5 4.3 4.5 2.3 2.2 1.9 AVG: 2.8
CORE UTIL(%): 5.1 5.6 6.6 4.0 AVG: 5.3
ID GID NAME NWLD %USED %RUN %SYS %WAIT %VMWAI
18445 18445 vm001 12 2.68 7.95 0.04 1200.00 0.0
18460 18460 vm002 10 1.75 5.24 0.02 1000.00 0.0
iperf: ネットワーク帯域幅の測定
iperfは2台のPC間のネットワーク帯域を測定するために使用する。
# 受信側
iperf -s -p 8080
# 送信側
iperf -c 192.168.AA.BB -p 8080
------------------------------------------------------------
Client connecting to 192.168.AA.BB, TCP port 8080
TCP window size: 32.5 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.BB.CC port 23220 connected with 192.168.AA.BB port 8080
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 109 MBytes 913 Mbits/sec
[ 3] 1.0- 2.0 sec 111 MBytes 929 Mbits/sec
[ 3] 2.0- 3.0 sec 106 MBytes 887 Mbits/sec
[ 3] 3.0- 4.0 sec 82.5 MBytes 692 Mbits/sec
[ 3] 4.0- 5.0 sec 83.2 MBytes 698 Mbits/sec
dcui: ダイレクトコンソールへのアクセス
ESXiの本体のモニターによく表示されている画面をダイレクトコンソールという。SSH経由でも利用可能。
dcui
# 終了するには Ctrl + C
1.2 ログ・ファイル操作
vi: テキストエディタ
UNIX環境では必ず入っているテキストエディタ。設定ファイルの書き換え作業などに使用する。
# test.txtというファイルを編集
vi test.txt
#終了するには以下入力
ESC -> : -> q -> ! -> Enter
less: テキストビューア
読み込み専用のテキストビューア。viと違って書き込みはできないため、不用意な編集を使用したくない場合に利用。ログファイルを閲覧する場合など。
# vmkernel.logというログファイルを読む
less /var/log/vmkernel.log
# カーソルキーの上下、PageUp,PageDownでスクロールできる
G # 最終行へ移動
q # Quit
tail: ログ閲覧
主にログファイルを閲覧するコマンド。taif-fコマンドを使用することでリアルタイムで画面内容を更新。
tail -f /var/log/vmkernel.log
2018-03-18T22:48:04.169Z cpu2:65563)ScsiDeviceIO: 2948: Cmd(0x439500abf700) 0x1a, CmdSN 0x3697ec from world 0 to dev "mpx.vmhba1:C0:T4:L0" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x20 0x0.
2018-03-18T22:56:15.694Z cpu4:65639)nhpsa: hpsa_vmkScsiCmdDone:5239: Sense data: error code: 0x70, key: 0x5, info:00 00 00 00 , cmdInfo:00 00 00 00 , CmdSN: 0x1cf48, worldId: 0x10771, Cmd: 0x85, ASC: 0x20, ASCQ: 0x0
2018-03-18T22:56:15.694Z cpu4:65639)nhpsa: hpsa_vmkScsiCmdDone:5239: Sense data: error code: 0x70, key: 0x5, info:00 00 00 00 , cmdInfo:00 00 00 00 , CmdSN: 0x1cf49, worldId: 0x10771, Cmd: 0x4d, ASC: 0x20, ASCQ: 0x0
# Ctrl + Q で終了
wget: ファイルのダウンロード
ダウンロードファイルのあるURLを指定するとカレントディレクトリにファイルをダウンロードする。
ESXiのバージョンが古いとwgetのバージョンも古く、httpsに対応していないことがある。
wget http://URL/sample.zip #sample.zipというファイルをダウンロード
ESXi5.0からunzipコマンドが追加されたため、ダウンロードしたZipファイルを解凍することもできる。
2. ソフトウェア系情報
2.1 ホストOS情報
ESXiのバージョン確認方法
vmware -vl
VMware ESXi 6.5.0 build-5146846
VMware ESXi 6.5.0 GA
esxcli system version get
Product: VMware ESXi
Version: 6.5.0
Build: Releasebuild-5146846
Update: 0
Patch: 14
vsish -e get /system/version
version {
product:VMware ESXi
productVersion:6.5.0
buildVersion:Releasebuild-5146846
buildType:Release
buildVersionNumeric:5146846
releaseUpdate:0
releasePatch:14
buildDate:Mar 3 2017 # ESXiのビルドの日付の他、時刻まで出力される
buildTime:01:50:59
cpu architecture:CPU architecture: 1 -> x86_64
vmkernelBuild:5146846
vmkcall:InterfaceVersion {
major:45
minor:0
}
sysinfoHash:0x451527db2ffec3b0
}
筐体に関する情報(モデル、シリアル等)
esxcli hardware platform get
Platform Information:
UUID: 0x38 0x4a 0x30 0x51 0x41 0x31 0x47 0x53 0x48 0x37 0x31 0x35 XXXX XXXX XXXX XXXX
Product Name: ProLiant DL120 Gen9
Vendor Name: HP
Serial Number: SGH71XXXX
IPMI Supported: true
esxcli hardware ipmi fru list | less
#抜粋
Record:Board:
Type: Board
Entity-Instance: 0.0
Part Name: ProLiant DL120 Gen9
Version:
Manufacturer Name: HP
Part Number: Q0JXXX
Serial Number: SGH71XXXX
Asset Tag:
Manufacturer TimeStamp: 2009-05-28T00:00:00
Raw:
Formatted-Raw:
esxcfg-info | less
#途中省略
|----Product Name.............................................ProLiant DL120 Gen9
|----Vendor Name..............................................HP
|----Serial Number............................................SGH71XXXX
|----Hardware Uptime..........................................49912207549
|----Ipmi Supported...........................................true
smbiosDump | less
#途中省略
System Info: #5
Manufacturer: "HP"
Product: "ProLiant DL120 Gen9"
Serial: "SGH71XXXX"
UUID: 305632583132374847534XXXXXXXXXX
Wake-up: 0x06 (Power Switch)
起動デバイス、起動時の処理、起動順番など
localcli system boot device get
SystemBootDevice:
Boot Filesystem UUID: f7f7167a-41a0e36d-7384-XXXXXXXX
Boot NIC:
Stateless Boot NIC:
vsish -e get /system/bootOption
Boot options {
Audit Mode:0
Filesystem check required:0
Booted after a rollback.:0
localcli hpbootcfg show
Found iLO4 device
Boot mode: 01 01 UEFI BIOS boot mode, UEFI optimized boot mode enabled
Boot order: 00 00: Normal Device first, normal boot process
BIOS関連
BIOSのバージョンの他、どういった機能がサポートされているのかまで情報が得られる。
vsish -e get /hardware/bios/biosInfo
BIOS Information (type 0) {
BIOS Vendor:HP
BIOS Version:P86
BIOS Release Date:02/17/2017
BIOS Major Release:2
BIOS Minor Release:40
Embedded Controller Firmware Major Release:2
Embedded Controller Firmware Minor Release:50
}
localcli hardware ipmi fru list | less
#抜粋
Record:Product:
Type: Product
Entity-Instance: 34.1
Part Name: SYSTEM BIOS
Version: 02/17/2017
Manufacturer Name: HPE
Part Number: P86
Serial Number:
Asset Tag:
Manufacturer TimeStamp:
Raw:
Formatted-Raw:
smbiosDump | less
#途中省略
BIOS Info: #4
Size: 0x00018
Vendor: "HP"
Version: "P86"
Date: "02/17/2017"
Start Address: 0xf0000
ROM Size: 16384 kB
Features: 0x0f03000000007dc9da80
PCI supported
PnP supported
BIOS flashable
BIOS shadowing allowed
ESCD supported
CD boot supported
Selectable boot supported
EDD spec supported
360kB Floppy supported
1.2MB Floppy supported
720kB Floppy supported
Print Screen supported
8042 Keyboard Services supported
Serial Services supported
Printer Services supported
CGA/Mono Video supported
ACPI supported
USB Legacy supported
BIOS Boot Spec supported
F12 Network boot supported
Enable targeted content distribution
UEFI supported
System BIOS release: 2.40
Embedded controller firmware release: 2.50
esxcfg-info | less
#途中省略
|----BIOS UUID................................................0x38 0x4a 0x30 0x51 0x41 0x31 0x47 0x53 0x48 0x37 0x31 0x35 XXXX XXXX XXXX XXXX
|----BIOS Vendor..............................................HP
|----BIOS Version.............................................P86
|----BIOS ReleaseDate.........................................2017-02-17T00:00:00
2.2 ゲストOS情報
2.2.1 一覧
ゲストマシンの情報を取得するためにはVmidと呼ばれる番号を調べる必要がある。
VM ID別一覧
vim-cmd vmsvc/getallvms
Vmid Name File Guest OS Version Annotation
1 windows001 [datastore1] windows001/windows001.vmx windows8Server64Guest vmx-13
2 windows002 [datastore1] windows002/windows002.vmx windows8Server64Guest vmx-13
WORLD ID別一覧
esxcli vm process list
windows001
World ID: 68066
Process ID: 0
VMX Cartel ID: 68057
UUID: 56 4d 40 10 1b 15 c6 28-fb 5d e8 d5 a8 c7 e2 76
Display Name: windows001
Config File: /vmfs/volumes/5924011a-d7ff3ff1-ead3-9cdc71db8ff0/windows001/windows001.vmx
windows002
World ID: 68958
Process ID: 0
VMX Cartel ID: 68957
UUID: 56 4d b2 f0 a9 6f 0a c7-2c 7b e4 93 a4 bc c5 e4
Display Name: windows002
Config File: /vmfs/volumes/5924011a-d7ff3ff1-ead3-9cdc71db8ff0/windows002/windows002.vmx
2.2.2 個別
Vmid1番のVM情報
vim-cmd vmsvc/get.guest 1 | less # ゲストマシン番号1の場合
#以下、抜粋
Guest information:
#VM全般
(vim.vm.GuestInfo) {
toolsStatus = "toolsOk",
toolsVersionStatus = "guestToolsCurrent",
toolsVersionStatus2 = "guestToolsCurrent",
toolsRunningStatus = "guestToolsRunning",
toolsVersion = "10272",
toolsInstallType = "guestToolsTypeMSI",
toolsUpdateStatus = (vim.vm.GuestInfo.ToolsUpdateStatus) null,
guestId = "windows8Server64Guest",
guestFamily = "windowsGuest",
guestFullName = "Microsoft Windows Server 2012 (64-bit)",
hostName = "windows001.windows001.local",
ipAddress = "192.168.XX.YY",
#ネットワーク
net = (vim.vm.GuestInfo.NicInfo) [
(vim.vm.GuestInfo.NicInfo) {
network = "VM Network",
ipAddress = (string) [
"fe80::6597:46d3:1f24:b34e",
"192.168.XX.YY"
],
ipStack = (vim.vm.GuestInfo.StackInfo) [
(vim.vm.GuestInfo.StackInfo) {
dnsConfig = (vim.net.DnsConfigInfo) {
dhcp = false,
hostName = "windows001",
domainName = "windows001.local",
ipAddress = (string) [
"127.0.0.1"
],
searchDomain = <unset>
},
#ディスク
disk = (vim.vm.GuestInfo.DiskInfo) [
(vim.vm.GuestInfo.DiskInfo) {
diskPath = "C:\",
capacity = 1099142524928,
freeSpace = 247126302720
}
],
#その他
screen = (vim.vm.GuestInfo.ScreenInfo) {
width = 1018,
height = 765
},
guestState = "running",
2.3 ドライバ・モジュール
インストール済みVIBリスト
esxcli software vib list | less
#一部抜粋
Name Version Vendor Acceptance Level Install Date
----------------------------- ----------------------------------- --------------- ---------------- ------------
scsi-mpt2sas 15.10.06.00-1OEM.550.0.0.1331820 Avago VMwareCertified 2017-07-19
net-tg3 3.137l.v60.1-1OEM.600.0.0.2494585 BRCM VMwareCertified 2017-07-19
elx-esx-libelxima.so 11.1.216.0-03 ELX VMwareCertified 2017-07-19
elxiscsi 11.1.216.0-1OEM.650.0.0.4240417 EMU VMwareCertified 2017-07-19
elxnet 11.1.196.3-1OEM.650.0.0.4240417 EMU VMwareCertified 2017-07-19
システムにロードされたモジュール一覧
VIBがインストールされていても、ロードして有効になっているとは限らない。それらの情報を取得する。
esxcli system module list # あたらしいESXiで使用できる。見やすい。
Name Is Loaded Is Enabled
----------------------------- --------- ----------
vmkernel true true
chardevs true true
user true true
vsanapi true true
vsanbase true true
vprobe true true
tg3 true true
vmkload_mod -l | less # 古いESXiでも使用できる
#一部抜粋
Name Used Size (kb)
vmkernel 121 10567
chardevs 105 48
user 1 3064
crypto 69 116
vsanapi 1 92
vsanbase 0 96
vprobe 0 392
ntg3 2 52
ネットワーク、ストレージごとのドライバリスト
esxcli device driver list
Device Driver Status KB Article
------ -------- ------ ----------
vmnic3 ntg3 normal # ネットワーク
vmnic2 ntg3 normal # ネットワーク
vmnic5 bnx2x normal # ネットワーク
vmhba3 nhpsa normal # ストレージ
vmnic4 bnx2x normal # ネットワーク
vmnic1 igbn normal # ネットワーク
vmnic0 igbn normal # ネットワーク
vmhba1 vmw_ahci normal # ストレージ
個別のVIB情報
net-tg3というVIBの情報を知りたい場合
esxcli software vib get -n net-tg3
BRCM_bootbank_net-tg3_3.137l.v60.1-1OEM.600.0.0.2494585
Name: net-tg3
Version: 3.137l.v60.1-1OEM.600.0.0.2494585
Type: bootbank
Vendor: BRCM
Acceptance Level: VMwareCertified
Summary: tg3: net driver for VMware ESX
Description: Broadcom NetXtreme I Gigabit Ethernet Driver
ReferenceURLs:
Creation Date: 2015-06-14
Depends: vmkapi_2_3_0_0, com.vmware.driverAPI-9.2.3.0
Conflicts:
Replaces:
Provides: com.broadcom.tg3-9.2.3.0
Maintenance Mode Required: True
Hardware Platforms Required:
Live Install Allowed: False
Live Remove Allowed: False
Stateless Ready: True
Overlay: False
Tags: driver, module
Payloads: net-tg3
localcli system module get --module ntg3
ModuleDetails:
Module: ntg3
Module File: /usr/lib/vmware/vmkmod/ntg3
License: VMware
Version: 4.1.0.0-1vmw.650.0.0.4564106
Build Type: release
Provided Namespaces:
Required Namespaces: com.vmware.vmkapi@v2_4_0_0
Containing VIB: ntg3
VIB Acceptance Level: certified
cat /proc/driver/hpsa/hpsa0 # hpsaドライバの場合
hpsa0: HP Smart Array P440 Controller
Board ID: 0x21c2103c
PCI ID: 0x3239103c
Firmware Version: 4.54
Driver Version: HP HPSA Driver (v 6.0.0.116-1OEM)
Driver Build: 01
IRQ: 39
VMkernel device name: vmhba3
Drives: 1
Current Q depth: 0
Current # commands on controller: 0
Max SG entries since init: 31
Max Commands supported: 1024
SCSI host number: 0
Controller state: RAID
hpsa0/ vmhba3:C0:T0:L1 Direct-Access LOGICAL VOLUME 4.54 RAID-5 HP SSD Smart Path Disabled
vsish -e get /system/modules/ntg3/general
Module {
name:ntg3
version:4.1.0.0-1vmw.650.0.0.4564106
license:VMware
moduleId:21
parameters:
symbols:149
symbolsLen:2407
symbolsExp:0
readOnlyLoadAddr:0x41800d4f3000
readOnlyLength:0x0000c000
writableLoadAddr:0x417fc5200000
writableLength:0x00001000
textBaseAddr:0x41800d4f3000
dataBaseAddr:0x417fc5200000
bssBaseAddr:0x417fc52002a0
loaded:1
useCount:2
consumedResourceCount:4
lastExternalRefs:[0]: 0x0
[1]: 0x0
[2]: 0x0
[3]: 0x0
[4]: 0x0
lastConsumedResourceRefs:[0]: 0x0
[1]: 0x0
[2]: 0x0
[3]: 0x0
[4]: 0x0
}
3. ハードウェア系情報
3.1 CPU
esxcli hardware cpu list | less
# 抜粋
CPU:0
Id: 0
Package Id: 0
Family: 6
Model: 79
Type: 0
Stepping: 1
Brand: GenuineIntel
Core Speed: 3495950656
Bus Speed: 99884302
APIC ID: 0x0
Node: 0
L2 Cache Size: 262144
L2 Cache Associativity: 8
L2 Cache Line Size: 64
L2 Cache CPU Count: 2
L3 Cache Size: 10485760
L3 Cache Associativity: 20
L3 Cache Line Size: 64
L3 Cache CPU Count: 2
CPU:1
Id: 1
Package Id: 0
Family: 6
Model: 79
vsish -e get /hardware/cpu/cpuInfo
CPU global information {
Hyperthreading state:Hyperthreading state: 3 -> enabled
HV state:HV state: 3 -> HV Enabled
Number of packages:1
Number of cores:4
Number of CPUs (threads):8
Number of licensable cores:4
SLC64 capable:0
HV Replay capable:1
First of reasons why replay is disabled on Host:Reason replay is disabled on Host: 0 -> HV Replay is supported
Several reasons why replay is disabled on Host:Reason replay is disabled on Host: 0 -> HV Replay is supported
NVOA:0
}
esxcli hardware cpu global get
Cpu:
CPU Packages: 1
CPU Cores: 4
CPU Threads: 8
Hyperthreading Active: true
Hyperthreading Supported: true
Hyperthreading Enabled: true
HV Support: 3
HV Replay Capable: false
HV Replay Disabled Reasons: incompatible CPU
smbiosDump | less
#抜粋
Processor Info: #3
Payload length: 0x2a
Socket: "Proc 1"
Socket Type: 0x2b (Socket LGA2011-3)
Socket Status: Populated
Type: 0x03 (CPU)
Family: 0xb3 (Xeon)
Manufacturer: "Intel(R) Corporation"
Version: "Intel(R) Xeon(R) CPU E5-1620 v3 @ 3.50GHz"
Asset Tag: "UNKNOWN"
Processor ID: 0xbfebfbff000306f2
Status: 0x01 (Enabled)
Voltage: 1.6 V
External Clock: 100 MHz
Max. Speed: 4000 MHz
Current Speed: 3500 MHz
L2 Cache: #1
L3 Cache: #2
Core Count: #4
Core Enabled Count: #4
Thread Count: #8
Cache Info: #0
Designation: "L1-Cache"
Level: L1
State: Enabled
Mode: 0x01 (Write Back)
Location: 0x00 (Internal, Not Socketed)
ECC: 0x05 (Single-bit)
Type: 0x05 (Unified)
Associativity: 0x07 (8-way Set-Associative)
Max. Size: 256 kB
Current Size: 256 kB
Supported SRAM Types: 0x0020 (Synchronous)
Current SRAM Type: 0x0020 (Synchronous)
#抜粋
Cache Info: #1
Designation: "L2-Cache"
Level: L2
State: Enabled
Mode: 0x02 (Varies with Memory Address)
Location: 0x00 (Internal, Not Socketed)
ECC: 0x05 (Single-bit)
Type: 0x05 (Unified)
Associativity: 0x07 (8-way Set-Associative)
Max. Size: 1024 kB
Current Size: 1024 kB
Supported SRAM Types: 0x0020 (Synchronous)
Current SRAM Type: 0x0020 (Synchronous)
Cache Info: #2
Designation: "L3-Cache"
Level: L3
State: Enabled
3.2 メモリ
vsish -e get /memory/memInfo
Memory information {
System heap free (pages):7396
System memory usage (pages):476801
Number of NUMA nodes:1
Number of memory nodes:2
Last valid MPN:8912895
}
esxcli hardware memory get
Memory:
Physical Memory: 34223464448 Bytes
Reliable Memory: 0 Bytes
NUMA Node Count: 1
smbiosDump | less
#抜粋
Physical Memory Array: #6
Use: 0x03 (System memory)
Location: 0x03 (Motherboard)
Slots: 8
Max. Size: 1024 GB
ECC: 0x06 (Multi-bit)
Memory Device: #7
Location: "PROC 1 DIMM 1"
Manufacturer: "HP"
Part Number: "752368-081"
Memory Array: #6
Form Factor: 0x09 (DIMM)
Type: 0x1a (Other)
Type Detail: 0x2080 (Synchronous, Registered)
Data Width: 64 bits (+8 ECC bits)
Size: 8 GB
Speed: 2133 MHz
3.3 ネットワーク
3.3.1 IP確認
他にも方法がありますが、端的に出力する方法。
esxcli network ip interface ipv4 get
Name IPv4 Address IPv4 Netmask IPv4 Broadcast Address Type Gateway DHCP DNS
---- --------------- ------------- --------------- ------------ --------------- --------
vmk0 192.168.BB.CC 255.255.255.0 192.168.BB.255 STATIC 192.168.BB.254 false
3.3.2 ファイアウォール情報
esxcli network firewall ruleset list
Name Enabled
------------------------ -------
sshServer true
sshClient false
nfsClient false
nfs41Client false
dhcp true
dns true
snmp true
ntpClient false
CIMHttpServer true
CIMHttpsServer true
CIMSLP true
iSCSI true
vpxHeartbeats true
updateManager true
faultTolerance true
webAccess true
3.3.3 NIC
3.3.3.1 NIC一覧
localcli hardware ipmi fru list | less
# 抜粋
Record:Board:
Type: Board
Entity-Instance: 49.3
Part Name: HP Ethernet 10Gb 2-port 530T Adapter
Version:
Manufacturer Name: HP
Part Number: 657128-001
Serial Number: MY571XXXXX
Asset Tag:
Manufacturer TimeStamp: 2017-04-07T17:19:00
Raw:
Formatted-Raw:
NIC単位での調査のためには、ESXiでのNICの名前の呼び方を知る必要がある。(例:vmnic0)
ハードウェア情報から調べる場合
esxcli network nic list
Name PCI Device Driver Admin Status Link Status Speed Duplex MAC Address MTU Description
------ ------------ ------ ------------ ----------- ----- ------ ----------------- ---- -------------------------------------------------------------
vmnic0 0000:02:00.0 igbn Up Up 1000 Full f4:03:43:06:89:73 1500 Intel Corporation Ethernet 1Gb 2-port 361i Adapter
vmnic1 0000:02:00.1 igbn Up Down 0 Half f4:03:43:06:89:74 1500 Intel Corporation Ethernet 1Gb 2-port 361i Adapter
vmnic2 0000:09:00.0 ntg3 Up Down 0 Half 3c:a8:2a:ed:0a:c8 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic3 0000:09:00.1 ntg3 Up Down 0 Half 3c:a8:2a:ed:0a:c9 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic4 0000:06:00.0 bnx2x Up Up 1000 Full f4:03:43:ab:d8:c0 1500 Broadcom Corporation QLogic 57810 10 Gigabit Ethernet Adapter
vmnic5 0000:06:00.1 bnx2x Up Up 1000 Full f4:03:43:ab:d8:c4 1500 Broadcom Corporation QLogic 57810 10 Gigabit Ethernet Adapter
esxcfg-nics -l
Name PCI Driver Link Speed Duplex MAC Address MTU Description
vmnic0 0000:02:00.0 igbn Up 1000Mbps Full f4:03:43:06:75:AA 1500 Intel Ethernet 1Gb 2-port 361i Adapter
vmnic1 0000:02:00.1 igbn Down 0Mbps Half f4:03:43:06:75:BB 1500 Intel Ethernet 1Gb 2-port 361i Adapter
vmnic2 0000:09:00.0 ntg3 Up 1000Mbps Full 3c:a8:2a:ea:7a:CC 1500 Broadcom NetXtreme BCM5720 Gigabit Ethernet
vmnic3 0000:09:00.1 ntg3 Down 0Mbps Half 3c:a8:2a:ea:7a:DD 1500 Broadcom NetXtreme BCM5720 Gigabit Ethernet
vmnic4 0000:06:00.0 bnx2x Up 1000Mbps Full 9c:dc:71:db:8f:EE 1500 Broadcom QLogic 57810 10 Gigabit Ethernet
vmnic5 0000:06:00.1 bnx2x Down 0Mbps Half 9c:dc:71:db:8f:FF 1500 Broadcom QLogic 57810 10 Gigabit Ethernet
ゲストマシンが使用しているNICを調べる場合
esxtop
# esxtopを起動してから「n」を押すとネットワーク情報画面に遷移する
12:58:49am up 9 days 15:59, 624 worlds, 2 VMs, 6 vCPUs; CPU load average: 0.04, 0.04, 0.03
PORT-ID USED-BY TEAM-PNIC DNAME
33554433 Management n/a vSwitch0
33554434 vmnic2 - vSwitch0
33554435 Shadow of vmnic2 n/a vSwitch0
33554436 vmnic4 - vSwitch0
33554437 Shadow of vmnic4 n/a vSwitch0
33554438 vmk0 vmnic2 vSwitch0
33554439 68066:windows001 vmnic2 vSwitch0 # vmnic2がNIC名
33554440 68066:windows001 vmnic4 vSwitch0 # vmnic4がNIC名
33554441 68958:windows002 vmnic4 vSwitch0
3.3.3.2 個別NIC
NICの呼び方(例:vmnic0)が分かれば、名前を指定して詳細情報を取得できる。
個別のNICハードウェア
# vmnic4の場合
esxcli device alias get -n vmnic4
Alias Hardware Location Bus Type Bus-specific Address
------ ----------------- -------- --------------------
vmnic4 PCI-E Slot 3 pci 0000:06:00.0 # PCI-Expressの3スロットに刺さっている
NICファームウェア情報
# vmnic0というNICの場合
esxcli network nic get -n vmnic0
Advertised Auto Negotiation: true
Advertised Link Modes: 10baseT/Half, 10baseT/Full, 100baseT/Half, 100baseT/Full, 1000baseT/Half, 1000baseT/Full
Auto Negotiation: true
Cable Type: Twisted Pair # 刺さっているケーブルの種類が分かる
Current Message Level: 255 # ノイズなどの影響で、速度が落ちてないかが分かる
Driver Info:
Bus Info: 0000:02:00.0
Driver: tg3
Firmware Version: 5717C-v2.08 NCSI v1.3.12.0
Version: 3.137l.v60.1
Link Detected: false
Link Status: Down
Name: vmnic0
PHYAddress: 1
Pause Autonegotiate: true
Pause RX: true
Pause TX: true
Supported Ports: TP
Supports Auto Negotiation: true
Supports Pause: true
# vmnic0というNICの場合。あたらしいESXiではこのコマンドは使用できない.
ethtool -i vmnic0
driver: tg3
version: 3.137l.v60.1
firmware-version: 5717C-v2.08 NCSI v1.3.12.0
bus-info: 0000:02:00.0
# vmnic1というNICの場合
vsish -e get /net/pNics/vmnic1/properties
properties {
Driver Name:tg3
Driver Version:3.137l.v60.1
Driver Firmware Version:5717C-v2.08 NCSI v1.3.12.0
System Device Name:vmnic1
Module Interface Used By The Driver:vmklinux
Device Hardware Cap Supported:: 0x403c032b -> VMNET_CAP_SG VMNET_CAP_IP4_CSUM VMNET_CAP_HIGH_DMA VMNET_CAP_TSO VMNET_CAP_HW_TX_VLAN VMNET_CAP_HW_RX_VLAN VMNET_CAP_SG_SPAN_PAGES VMNET_CAP_IP6_CSUM VMNET_CAP_TSO6 VMNET_CAP_TSO256k VMNET_CAP_SCHED
Device Hardware Cap Activated:: 0x3c032b -> VMNET_CAP_SG VMNET_CAP_IP4_CSUM VMNET_CAP_HIGH_DMA VMNET_CAP_TSO VMNET_CAP_HW_TX_VLAN VMNET_CAP_HW_RX_VLAN VMNET_CAP_SG_SPAN_PAGES VMNET_CAP_IP6_CSUM VMNET_CAP_TSO6 VMNET_CAP_TSO256k
Device Software Cap Activated:: 0x30800000 -> VMNET_CAP_RDONLY_INETHDRS VMNET_CAP_IP6_CSUM_EXT_HDRS VMNET_CAP_TSO6_EXT_HDRS
PCI Segment:0
PCI Bus:2
PCI Slot:0
PCI Fn:1
Device NUMA Node:0
PCI Vendor:0x14e4
PCI Device ID:0x1665
Link Up:1
Operational Status:1
Administrative Status:1
Full Duplex:1
Auto Negotiation:0
Speed (Mb/s):1000
Uplink Port ID:0x02000002
Flags:: 0x41a0e -> DEVICE_PRESENT DEVICE_OPENED DEVICE_EVENT_NOTIFIED DEVICE_SCHED_CONNECTED DEVICE_RESPOOLS_SCHED_ALLOWED DEVICE_RESPOOLS_SCHED_SUPPORTED DEIVCE_ASSOCIATED
Network Hint:0 192.168.60.106/255.255.255.255
MAC address:1c:98:ec:52:18:fd
VLanHwTxAccel:1
VLanHwRxAccel:1
States:: 0xff -> DEVICE_PRESENT DEVICE_READY DEVICE_RUNNING DEVICE_QUEUE_OK DEVICE_LINK_OK DEVICE_PROMISC DEVICE_BROADCAST DEVICE_MULTICAST
Pseudo Device:0
Legacy vmklinux device:1
Respools sched allowed:1
Respools sched supported:1
}
3.3.4 ポート
3.3.4.1 一覧
簡単な方法
net-stats -l
PortNum Type SubType SwitchName MACAddress ClientName
33554434 4 0 vSwitch0 1c:98:ec:52:18:fd vmnic1
33554436 4 0 vSwitch0 28:80:23:b7:b2:7f vmnic3
33554438 3 0 vSwitch0 1c:98:ec:52:18:fd vmk0
33554439 5 7 vSwitch0 00:0c:29:9f:18:09 windows004
33554440 5 7 vSwitch0 00:0c:29:9f:18:ff windows004
33554441 5 7 vSwitch0 00:0c:29:ba:28:48 windows005
ESXTopを使う方法
3:24:57am up 83 days 1:36, 538 worlds, 2 VMs, 5 vCPUs; CPU load average: 0.03, 0.04, 0.04
PORT-ID USED-BY TEAM-PNIC DNAME
33554433 Management n/a vSwitch0
33554434 vmnic1 - vSwitch0
33554435 Shadow of vmnic1 n/a vSwitch0
33554436 vmnic3 - vSwitch0
33554437 Shadow of vmnic3 n/a vSwitch0
33554438 vmk0 vmnic3 vSwitch0
33554439 37092:windows004 vmnic3 vSwitch0
33554440 37092:windows004 vmnic1 vSwitch0
33554441 37120:windows005 vmnic1 vSwitch0
VMのWorldIDからポート番号を調べる方法
# 最初にWorld IDを取得する
localcli vm process list
windows006:
World ID: 68066 # これ
Process ID: 0
VMX Cartel ID: 68057
UUID: 56 4d 40 10 1b 15 c6 28-fb 5d e8 d5 a8 c7 e2 76
Display Name: windows006
Config File: /vmfs/volumes/5924011a-d7ff3ff1-ead3-9cdc71db8ff0/windows006/windows006.vmx
windows007:
World ID: 68958
Process ID: 0
VMX Cartel ID: 68957
UUID: 56 4d b2 f0 a9 6f 0a c7-2c 7b e4 93 a4 bc c5 e4
Display Name: windows007
Config File: /vmfs/volumes/5924011a-d7ff3ff1-ead3-9cdc71db8ff0/windows007/windows007.vmx
# そのWorldIDを引数に次のコマンドを実行
localcli network vm port list --world-id 68066
Port:
Port ID: 33554439
vSwitch: vSwitch0
Portgroup: VM Network
DVPort ID:
MAC Address: 00:0c:29:c7:e2:80
IP Address: 0.0.0.0
Team Uplink: vmnic2 # NIC
Uplink Port ID: 33554434 # ポートID
Active Filters:
Port:
Port ID: 33554440
vSwitch: vSwitch0
3.3.4.2 個別ポート
# ポート33554436の場合
vsish -e get /net/portsets/vSwitch0/ports/33554436/status
port {
port index:4
portCfg:
dvPortId:
clientName:vmnic3
clientType:port types: 4 -> Physical NIC
clientSubType:port types: 0 -> NONE
world leader:0
flags:port flags: 0x10c043 -> IN_USE ENABLED UPLINK DISPATCH_STATS_IN DISPATCH_STATS_OUT DISPATCH_STATS CONNECTED TUNNEL_ENDPOINT
Impl customized blocked flags:0x00000000
Passthru status:: 0x1 -> WRONG_VNIC
fixed Hw Id:28:80:23:b7:b2:7f:
ethFRP:frame routing {
requested:filter {
flags:0x00000000
unicastAddr:00:00:00:00:00:00:
numMulticastAddresses:0
multicastAddresses:
LADRF:[0]: 0x0
[1]: 0x0
}
accepted:filter {
flags:0x00000000
unicastAddr:00:00:00:00:00:00:
numMulticastAddresses:0
multicastAddresses:
LADRF:[0]: 0x0
[1]: 0x0
}
}
filter supported features:features: 0 -> NONE
filter properties:properties: 0 -> NONE
rx mode:properties: 0 -> INLINE
tune mode:Tuning mode: 0 -> default
}
3.3.5 仮想スイッチ
localcli network vswitch standard list
vSwitch0:
Name: vSwitch0
Class: etherswitch
Num Ports: 1792
Used Ports: 9
Configured Ports: 128
MTU: 1500
CDP Status: listen
Beacon Enabled: false
Beacon Interval: 1
Beacon Threshold: 3
Beacon Required By:
Uplinks: vmnic4, vmnic2
Portgroups: VM Network, Management Network
esxcfg-vswitch -l
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vSwitch0 1792 9 128 1500 vmnic1,vmnic3
PortGroup Name VLAN ID Used Ports Uplinks
VM Network 0 3 vmnic1,vmnic3
Management Network 0 1 vmnic1,vmnic3
3.3.6 通信状況
NICの通信状態
NICの通信状況
# vmnic0というNICの場合
vsish -e get /net/pNics/vmnic0/stats
device {
-- General Statistics:
Rx Packets:0
Tx Packets:0
Rx Bytes:0
Tx Bytes:0
Rx Errors:0
Tx Errors:0
Rx Dropped:0
Tx Dropped:0
Rx Multicast:0
Rx Broadcast:0
Tx Multicast:0
Tx Broadcast:0
Collisions:0
Rx Length Errors:0
Rx Over Errors:0
Rx CRC Errors:0
Rx Frame Errors:0
Rx Fifo Errors:0
Rx Missed Errors:0
Tx Aborted Errors:0
Tx Carrier Errors:0
Tx Fifo Errors:0
Tx Heartbeat Errors:0
Tx Window Errors:0
Module Interface Rx packets:0
Module Interface Tx packets:0
Module Interface Rx dropped:0
Module Interface Tx dropped:0
-- Driver Specific Statistics:Driver Private Statistics
Global
RCTL = 0x0400803e
TCTL = 0xa50400fa
EIMS = 0x80000007
EIAM = 0x00000007
EIAC = 0x00000007
Rx Queue #0
ring size = 1024
next2fill = 1021
next2proc = 0
RDH = 0
RDT = 1021
RXDCTL = 02010a0c
dropped = 0
allocFail = 0
csumError = 0
# vmnic0というNICの場合
localcli network nic stats get -n vmnic0
NIC statistics for vmnic0:
Packets received: 2534051
Packets sent: 0
Bytes received: 450715951
Bytes sent: 0
Receive packets dropped: 0
Transmit packets dropped: 0
Multicast packets received: 706348
Broadcast packets received: 1767651
Multicast packets sent: 0
Broadcast packets sent: 0
Total receive errors: 0
Receive length errors: 0
Receive over errors: 0
Receive CRC errors: 0
Receive frame errors: 0
Receive FIFO errors: 0
Receive missed errors: 0
Total transmit errors: 0
Transmit aborted errors: 0
Transmit carrier errors: 0
Transmit FIFO errors: 0
Transmit heartbeat errors: 0
Transmit window errors: 0
ポート単位の通信状態
# ポート33554436の場合
esxcli network port stats get --portid 33554441
Packet statistics for port 33554441:
Packets received: 2381346299
Packets sent: 1785571083
Bytes received: 2469028538470
Bytes sent: 467602887668
Broadcast packets received: 1765135
Broadcast packets sent: 3605
Multicast packets received: 44410
Multicast packets sent: 16862
Unicast packets received: 2379536754
Unicast packets sent: 1785550616
Receive packets dropped: 142
Transmit packets dropped: 0
# ポート33554436の場合
vsish -e get /net/portsets/vSwitch0/ports/33554436/stats
packet stats {
pktsTx:454503977
pktsTxMulticast:5128
pktsTxBroadcast:34
pktsRx:25008373
pktsRxMulticast:5565676
pktsRxBroadcast:14124394
droppedTx:0
droppedRx:577749
}
仮想スイッチの通信状況
#vSwitch0の場合
vsish -e get /net/portsets/vSwitch0/stats
packet stats {
pktsTx:28630628790
pktsTxMulticast:13387619
pktsTxBroadcast:50951805
pktsRx:16381808903
pktsRxMulticast:353767
pktsRxBroadcast:228747
droppedTx:79613025 #送信データがかなりロスしている
droppedRx:3
}
3.4 ストレージ全般
3.4.1 ストレージデバイス
ストレージデバイスのリスト
esxcli storage core device list
naa.600508b1001c4514b11fd43235fbe347
Display Name: HP Serial Attached SCSI Disk (naa.600508b1001c4514b11fd43235fbe347)
Has Settable Display Name: true
Size: 1716879
Device Type: Direct-Access
Multipath Plugin: NMP
Devfs Path: /vmfs/devices/disks/naa.600508b1001c4514b11fd43235fbe347
Vendor: HP
Model: LOGICAL VOLUME
Revision: 4.54
SCSI Level: 5
Is Pseudo: false
Status: degraded
Is RDM Capable: true
Is Local: false
Is Removable: false
Is SSD: false
Is VVOL PE: false
Is Offline: false
Is Perennially Reserved: false
Queue Full Sample Size: 0
Queue Full Threshold: 0
Thin Provisioning Status: unknown
Attached Filters:
VAAI Status: unknown
Other UIDs: vml.0200010000600508b1001c4514b11fd43235fbe3474c4f47494341
Is Shared Clusterwide: true
Is Local SAS Device: false
Is SAS: true
Is USB: false
Is Boot USB Device: false
Is Boot Device: true
Device Max Queue Depth: 1024
No of outstanding IOs with competing worlds: 32
Drive Type: logical
RAID Level: RAID5
Number of Physical Drives: 5
Protection Enabled: false
PI Activated: false
PI Type: 0
PI Protection Mask: NO PROTECTION
Supported Guard Types: NO GUARD SUPPORT
DIX Enabled: false
DIX Guard Type: NO GUARD SUPPORT
Emulated DIX/DIF Enabled: false
SCSIデバイスのリスト
esxcfg-scsidevs -a
vmhba0 hpdsa link-n/a unknown.vmhba0 (0000:01:00.7) Hewlett-Packard Company HP|Dynamic Smart Array B140i RAID Controller
vmhba3 hpsa link-n/a sas.5001438034935a40 (0000:09:00.0) Hewlett-Packard Company Smart Array P440
SCSIデバイス個別の情報
# vmhba1の場合
vsish -e get /storage/scsifw/adapters/vmhba1/info
Adapter information {
adapter:vmhba1
driver:vmw_ahci
channels:1
PCI segment:0
PCI bus:0
PCI slot:31
PCI function:2
max SG length:128
host max sectors:65536
SG Elem Straddle Mask:0xffffffffffffffff
PAE capable:1
Underlying transport:Transport Type: 7 -> SATA
Adapter scan state:1
Adapter capabilities mask:0x00000000
PI:Protection info {
Protection mask:0x00000000
Guard type mask:0
}
}
NMPデバイス(VMWare標準のプラグインを利用している)のリスト
esxcli storage nmp device list
naa.600508b1001cf3423a025873bedeab64
Device Display Name: Local HP Disk (naa.600508b1001cf3423a025873bedeab64)
Storage Array Type: VMW_SATP_LOCAL
Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device configuration.
Path Selection Policy: VMW_PSP_FIXED
Path Selection Policy Device Config: {preferred=vmhba1:C0:T0:L1;current=vmhba1:C0:T0:L1}
Path Selection Policy Device Custom Config:
Working Paths: vmhba1:C0:T0:L1
Is USB: false
ストレージパスのリスト
esxcli storage core path list
sas.5001438040c82760-sas.1438040c82760-naa.600508b1001cf3423a025873bedeab64
UID: sas.5001438040c82760-sas.1438040c82760-naa.600508b1001cf3423a025873bedeab64
Runtime Name: vmhba1:C0:T0:L1
Device: naa.600508b1001cf3423a025873bedeab64
Device Display Name: Local HP Disk (naa.600508b1001cf3423a025873bedeab64)
Adapter: vmhba1
Channel: 0
Target: 0
LUN: 1
Plugin: NMP
State: active
Transport: sas
Adapter Identifier: sas.5001438040c82760
Target Identifier: sas.1438040c82760
Adapter Transport Details: 5001438040c82760
Target Transport Details: 1438040c82760
Maximum IO Size: 4194304
ファイルシステム一覧
esxcli storage filesystem list
Mount Point Volume Name UUID Mounted Type Size Free
------------------------------------------------- ----------- ----------------------------------- ------- ------ ------------- -------------
/vmfs/volumes/5968a754-23e10dbd-63d0-f40343abd8c0 datastore1 5968a754-23e10dbd-63d0-f40343abd8c0 true VMFS-5 2392296783872 1435244691456
/vmfs/volumes/58961c70-4f7dc6db-9fe1-9653b80cfee9 58961c70-4f7dc6db-9fe1-9653b80cfee9 true vfat 261853184 80375808
/vmfs/volumes/596f6357-564156a0-5f62-f40343abd8c0 596f6357-564156a0-5f62-f40343abd8c0 true vfat 4293591040 4231528448
/vmfs/volumes/ef394f76-a513abe6-9d81-dda32e0f3593 ef394f76-a513abe6-9d81-dda32e0f3593 true vfat 261853184 62750720
/vmfs/volumes/5968a733-7fe5314a-6f37-f40343abd8c0 5968a733-7fe5314a-6f37-f40343abd8c0 true vfat 299712512 83927040
3.4.2 RAID
3.4.2.1 RAIDコントローラの一覧
古いESXiだと「hpacucli」を使用する。新しければ「hpssacli」を利用する。名前が違うだけなので、読み替えて入力すること。
RAIDコントローラの情報を掴むためにはまず、コントローラのスロット番号を知る必要がある。
Dynamic Smart Array B140iがスロット番号0b、Smart Array P440がスロット番号3、ということがわかる。
/opt/hp/hpssacli/bin/hpssacli ctrl all show
Dynamic Smart Array B140i in Slot 0b ()
Smart Array P440 in Slot 3 (sn: PDNMF0ARXXXXXX)
3.4.2.2 コントローラが把握する個別の情報
RAIDコントローラ
#スロット番号が3の場合
/opt/hp/hpssacli/bin/hpssacli ctrl slot=3 show detail
Smart Array P440 in Slot 3
Bus Interface: PCI
Slot: 3
Serial Number: PDNMF0ARXXXXXX
Cache Serial Number: PDNMD0BRHXXXXX
RAID 6 (ADG) Status: Enabled
Controller Status: OK
Hardware Revision: B
Firmware Version: 4.54
Rebuild Priority: High
Expand Priority: Medium
Surface Scan Delay: 3 secs
Surface Scan Mode: Idle
Parallel Surface Scan Supported: Yes
Current Parallel Surface Scan Count: 1
Max Parallel Surface Scan Count: 16
Queue Depth: Automatic
Monitor and Performance Delay: 60 min
Elevator Sort: Enabled
Degraded Performance Optimization: Disabled
Inconsistency Repair Policy: Disabled
Wait for Cache Room: Disabled
Surface Analysis Inconsistency Notification: Disabled
Post Prompt Timeout: 15 secs
Cache Board Present: True
Cache Status: OK
Cache Ratio: 10% Read / 90% Write
Drive Write Cache: Disabled
Total Cache Size: 4.0 GB
Total Cache Memory Available: 3.8 GB
No-Battery Write Cache: Disabled
SSD Caching RAID5 WriteBack Enabled: True
SSD Caching Version: 2
Cache Backup Power Source: Batteries
Battery/Capacitor Count: 1
Battery/Capacitor Status: OK
SATA NCQ Supported: True
Spare Activation Mode: Activate on physical drive failure (default)
Controller Temperature (C): 70
Cache Module Temperature (C): 38
Number of Ports: 1 Internal only
Encryption: Disabled
Express Local Encryption: False
Driver Name: HP HPSA
Driver Version: 6.0.0
PCI Address (Domain:Bus:Device.Function): 0000:09:00.0
Negotiated PCIe Data Rate: PCIe 3.0 x8 (7880 MB/s)
Controller Mode: RAID
Controller Mode Reboot: Not Required
RAIDアレイ
# スロット番号が3の場合
/opt/hp/hpssacli/bin/hpssacli ctrl slot=3 array all show detail
Smart Array P440 in Slot 3
Array: A
Interface Type: SAS
Unused Space: 0 MB (0.0%)
Used Space: 2.2 TB (100.0%)
Status: OK
Array Type: Data Spare Type: dedicated
HPE SSD Smart Path: disable
RAIDエンクロージャー(RAIDの筐体)
# スロット番号が3の場合
/opt/hp/hpssacli/bin/hpssacli ctrl slot=3 enclosure all show detail
Smart Array P440 in Slot 3
Internal Drive Cage at Port 1I, Box 1, OK
Power Supply Status: Not Redundant
Drive Bays: 4
Port: 1I
Box: 1
Location: Internal
Physical Drives
physicaldrive 1I:1:5 (port 1I:box 1:bay 5, SAS, 600 GB, OK)
Internal Drive Cage at Port 1I, Box 1, OK
Power Supply Status: Not Redundant
Drive Bays: 4
Port: 1I
Box: 1
Location: Internal
Physical Drives
physicaldrive 1I:1:5 (port 1I:box 1:bay 5, SAS, 600 GB, OK)
論理ドライブ
# スロット番号が3の場合
/opt/hp/hpssacli/bin/hpssacli ctrl slot=3 logicaldrive all show detail
Smart Array P440 in Slot 3
array A
Logical Drive: 1
Size: 1.6 TB
Fault Tolerance: 5
Heads: 255
Sectors Per Track: 63
Cylinders: 65535
Strip Size: 256 KB
Full Stripe Size: 768 KB
Status: OK
Caching: Enabled
Parity Initialization Status: Initialization Completed
Unique Identifier: 600508B1001C4514B11FD43235FBE347
Logical Drive Label: 019F319FPDNMF0ARH190IL60DA
Drive Type: Data
LD Acceleration Method: Controller Cache
物理ドライブ
# スロット番号が3の場合
/opt/hp/hpssacli/bin/hpssacli ctrl slot=3 physicaldrive all show detail
#抜粋
Smart Array P440 in Slot 3
array A
physicaldrive 1I:1:1
Port: 1I
Box: 1
Bay: 1
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 600 GB
Drive exposed to OS: False
Native Block Size: 512
Rotational Speed: 15000
Firmware Revision: HPD4
Serial Number: 0XJKXXXX
Model: HP EH0600JDYTL
Current Temperature (C): 52
Maximum Temperature (C): 60
PHY Count: 2
PHY Transfer Rate: 12.0Gbps, Unknown
Drive Authentication Status: OK
Carrier Application Version: 11
Carrier Bootloader Version: 6
Sanitize Erase Supported: False
# naa.600508b1001c4514b11fd43235fbe347の場合
esxcli storage core device raid list -d naa.600508b1001c4514b11fd43235fbe347
Physical Location: port:box:bay 1I:1:1
Physical Location: port:box:bay 1I:1:2
Physical Location: port:box:bay 1I:1:3
Physical Location: port:box:bay 1I:1:5
Physical Location: port:box:bay 1I:1:4
3.4.2.3 コントローラが正常に動作していなくても取得可能な情報
esxcli hardware pci list | less
# 抜粋
0000:03:00.0:
Address: 0000:03:00.0
Segment: 0x0000
Bus: 0x03
Slot: 0x00
Function: 0x0
VMkernel Name: vmhba3
Vendor Name: Hewlett-Packard Company
Device Name: Smart Array P440
Configured Owner: Unknown
Current Owner: VMkernel
Vendor ID: 0x103c
Device ID: 0x3239
SubVendor ID: 0x103c
SubDevice ID: 0x21c2
Device Class: 0x0104
Device Class Name: RAID bus controller
Programming Interface: 0x00
Revision ID: 0x01
Interrupt Line: 0xff
IRQ: 255
Interrupt Vector: 0x00
PCI Pin: 0x00
Spawned Bus: 0x00
Flags: 0x3201
Module ID: 22
Module Name: nhpsa
Chassis: 0
Physical Slot: 1
Slot Description: PCI-E Slot 1
Passthru Capable: true
Parent Device: PCI 0:0:3:0
Dependent Device: PCI 0:3:0:0
Reset Method: Bridge reset
FPT Sharable: true
esxcli hardware ipmi fru list | less
# 抜粋
Record:Product:
Type: Product
Entity-Instance: 49.1
Part Name: Smart Array P440 Controller
Version: B
Manufacturer Name:
Part Number: 749797-001
Serial Number:
Asset Tag:
Manufacturer TimeStamp:
Raw:
Formatted-Raw:
smbiosDump | less
#抜粋
Type 203 Record: #133
Data 00: cb 22 85 00 6d 00 53 00 3c 10 39 32 3c 10 c2 21
Data 10: 01 04 fe ff 00 00 07 0a 03 01 ff ff 01 02 03 04
Data 20: fe ff
String 1: "PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)"
String 2: "RAID.Slot.3.1"
String 3: "Smart Array P440 Controller"
String 4: "Slot 3"
#抜粋
Type 203 Record: #140
Data 00: cb 22 8c 00 7a 00 fe ff 3c 10 3f 19 3c 10 81 33
Data 10: ff 00 fe ff 00 00 0e 0d 15 01 ff ff 01 02 03 04
Data 20: fe ff
String 1: "PciRoot(0x0)/Pci(0x1C,0x2)/Pci(0x0,0x7)"
String 2: "Storage.Emb.21.1"
String 3: "Dynamic Smart Array B140i"
String 4: "Embedded Storage"
3.4.2.4 RAIDバッテリー
localcli hardware ipmi fru list | less
# 抜粋
Record:Product:
Type: Product
Entity-Instance: 0.0
Part Name: HPE Smart Storage Battery
Version: 01
Manufacturer Name: SMP
Part Number: 727258-B21
Serial Number:
Asset Tag:
Manufacturer TimeStamp:
Raw:
Formatted-Raw:
smbiosDump | less
#抜粋
Type 216 Record: #51
Data 00: d8 17 33 00 0d 00 01 02 06 01 01 00 00 00 00 00
Data 10: 00 00 00 00 00 00 00
String 1: "HPE Smart Storage Battery 1 Firmware"
String 2: "1.1"
3.4.3 ディスクIO
デバイスID別
# naa.600508b1001c4514b11fd43235fbe347の場合
vsish -e get /storage/scsifw/devices/naa.600508b1001c4514b11fd43235fbe347/stats
Statistics {
Successful Commands:400735329
Failed Commands:8836
Blocks Read:28861504976
Failed Blocks Read:0
Blocks Written:2096254270
Failed Blocks Written:0
Read Operations:286371257
Failed Read Operations:0
Write Operations:114114042
Failed Write Operations:0
Reserve Operations:4312
Failed Reserve Operations:0
reservationConflicts:0
total cmds split:0
total pae cmds:0
esxcli storage core device stats get
naa.600508b1001c4514b11fd43235fbe347
Device: naa.600508b1001c4514b11fd43235fbe347
Successful Commands: 422956319
Blocks Read: 30457399826
Blocks Written: 2186132238
Read Operations: 302450756
Write Operations: 120243639
Reserve Operations: 4318
Reservation Conflicts: 0
Failed Commands: 9215
Failed Blocks Read: 0
Failed Blocks Written: 0
Failed Read Operations: 0
Failed Write Operations: 0
Failed Reserve Operations: 0
アダプタ別
# vmhba3の場合
vsish -e get /storage/scsifw/adapters/vmhba3/stats
Statistics {
Successful Commands:484279561
Failed Commands:54429
Blocks Read:28861529611
Failed Blocks Read:0
Blocks Written:2096266445
Failed Blocks Written:0
Read Operations:367938213
Failed Read Operations:0
Write Operations:116068505
Failed Write Operations:0
Reserve Operations:4312
Failed Reserve Operations:0
reservationConflicts:0
total cmds split:0
total pae cmds:0
3.5 電源ユニット
モデルやシリアル番号を知りたい場合に。
smbiosDump | less
#抜粋
Type 39 Record: #34
Data 00: 27 16 22 00 01 00 01 02 03 00 04 00 ee 02 a3 11
Data 10: ff ff ff ff ff ff
String 1: "Power Supply 1"
String 2: "HP"
String 3: "5AQNB0C4D24147"
String 4: "512327-B21"
Type 39 Record: #35
Data 00: 27 16 23 00 01 00 01 02 03 00 04 00 ee 02 a3 11
Data 10: ff ff ff ff ff ff
String 1: "Power Supply 2"
String 2: "HP"
String 3: "5AQNB0C4D2412F"
String 4: "512327-B21"
3.6 USBデバイス
lsusb
Bus 004 Device 004: ID 1bcf:0005 Sunplus Innovation Technology Inc. # マウスが接続されているのが分かる
Bus 004 Device 003: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard # キーボードが接続されているのが分かる
Bus 004 Device 002: ID 0424:2660 Standard Microsystems Corp.
Bus 002 Device 002: ID 8087:8002 Intel Corp.
Bus 001 Device 002: ID 8087:800a Intel Corp.
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
3.7 その他ハードウェア情報(CPU、メモリ、HDD、ファン、温度)
情報量が多すぎるため、Grepで絞り込んでいる。
vim-cmd hostsvc/hostsummary | grep -E "(name|label|summary) ="
name = "Power Supply 3 Power Supplies - Fully redundant",
label = "Green",
summary = "Sensor is operating under normal conditions",
name = "Memory",
label = "Green",
summary = "Physical element is functioning as expected",
name = "Proc 1",
label = "Green",
summary = "Physical element is functioning as expected",
name = "HP Smart Array P440 RAID Controller : Slot 1 : HPSA1",
label = "Green",
summary = "Physical element is functioning as expected",
name = "Battery on HPSA1",
label = "Green",
summary = "Physical element is functioning as expected",
name = "Disk 1 on HPSA1 : Port 1I Box 1 Bay 5 : 558GB : Data Disk",
label = "Green",
summary = "Physical element is functioning as expected",
以上