Bu yazıda ESXi üzerinde çalıştırabileceğimiz bazı hardware CLI komutlarını göstermeye çalışacağım.
esxcli hardware
komutu ile cpu, memory, clock gibi bileşenler hakkında bilgi alabilir, gerekli ayarları yapabilirsiniz.
[root@localhost:~] esxcli hardware
Usage: esxcli hardware {cmd} [cmd options]
Available Namespaces:
cpu CPU information.
ipmi IPMI information.
pci PCI device information and configuration.
power Power management information.
smartcard Smart card subsystem.
tpm TPM related functionality.
usb VMware USB Plugin.
bootdevice Boot device information.
clock Interaction with the hardware clock.
memory Memory information.
platform Platform information.
trustedboot Information about the status of trusted boot.
ESXi host üzerindeki CPU’ları listeleyebilirsiniz.
[root@localhost:~] esxcli hardware cpu list
CPU:0
Id: 0
Package Id: 0
Family: 23
Model: 49
Type: 0
Stepping: 0
Brand: AuthenticAMD
Core Speed: 2800000000
Bus Speed: 90322580
APIC ID: 0x0
Node: 0
L2 Cache Size: 524288
L2 Cache Associativity: 8
L2 Cache Line Size: 64
L2 Cache CPU Count: 1
L3 Cache Size: 16777216
L3 Cache Associativity: 16
L3 Cache Line Size: 64
L3 Cache CPU Count: 2
CPU:1
Id: 1
Package Id: 0
Family: 23
Model: 49
Type: 0
Stepping: 0
Brand: AuthenticAMD
Core Speed: 2800000000
Bus Speed: 90322580
APIC ID: 0x1
Node: 0
L2 Cache Size: 524288
L2 Cache Associativity: 8
L2 Cache Line Size: 64
L2 Cache CPU Count: 1
L3 Cache Size: 16777216
L3 Cache Associativity: 16
L3 Cache Line Size: 64
L3 Cache CPU Count: 2
Host üzerindeki IPMI bilgisini görebilir veya ayarlayabilirsiniz.
[root@esxi01:~] esxcli hardware ipmi bmc get
BMCFirmware Version: 1.52
IPMIVersion: 2.0
IPv4Address: 192.168.0.41
IPv4Gateway: 192.168.0.1
IPv4Subnet: 255.255.255.0
IPv6Addresses:
LANif Admin Status: true
MACAddress: 00:25:90:bc:47:ff
Manufacturer: Super Micro Computer Inc.
OSName Reported:
Host üzerindeki tüm PCI device’ları listeleyebilirsiniz.
[root@esxi01:~] esxcli hardware pci list
0000:c4:00.0
Address: 0000:c4:00.0
Segment: 0x0000
Bus: 0xc4
Slot: 0x00
Function: 0x0
VMkernel Name: vmhba7
Vendor Name: Advanced Micro Devices Inc
Device Name: FCH SATA Controller [AHCI Mode]
Configured Owner: VMkernel
Current Owner: VMkernel
Vendor ID: 0x1022
Device ID: 0x7901
SubVendor ID: 0x15d9
SubDevice ID: 0x7901
Device Class: 0x0106
Device Class Name: SATA controller
Programming Interface: 0x01
Revision ID: 0x51
Interrupt Line: 0x0b
IRQ: 255
Interrupt Vector: 0x44
PCI Pin: 0x00
Spawned Bus: 0x00
Flags: 0x3201
Module ID: 20
Module Name: vmw_ahci
Chassis: 0
Physical Slot: 4294967295
Slot Description:
Passthru Capable: true
Parent Device: PCI 0:192:8:3
Dependent Device: PCI 0:196:0:0
Reset Method: Function reset
FPT Sharable: true
Host üzerindeki memory bilgisini görebilirsiniz.
[root@esxi01:~] esxcli hardware memory get
Physical Memory: 1099366998016 Bytes
Reliable Memory: 0 Bytes
NUMA Node Count: 2
ESXi’ın kurulmuş olduğu platform hakkında bilgi alabilirsiniz.
[root@esxi01:~] esxcli hardware platform get
Platform Information
UUID: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x25 0x90 0xbc 0x43 0x8a
Product Name: AS -4023S-TRT
Vendor Name: Supermicro
Serial Number: S296347X9C05589
Enclosure Serial Number: C7450FI31MP0256
BIOS Asset Tag: To be filled by O.E.M.
IPMI Supported: true
Kullanılabilecek Power policy’leri listeleyebilirsiniz.
[root@localhost:~] esxcli hardware power policy choices list
Id Short name Name
-- ---------- ----
1 static High Performance
2 dynamic Balanced
3 low Low Power
4 custom Custom
Hangi Power policy’nin kullanımda olduğunu görebilirsiniz.
[root@localhost:~] esxcli hardware power policy get
Id: 1
Name: High Performance
Short Name: static
Power policy değişikliği yapabilirsiniz.
[root@localhost:~] esxcli hardware power policy set -s dynamic
[root@localhost:~] esxcli hardware power policy get
Id: 2
Name: Balanced
Short Name: dynamic