コンテンツへスキップ
ホーム » ESXi 6.7 u2 で wbemcli による監視ができない

ESXi 6.7 u2 で wbemcli による監視ができない

以前に、こんな記事を載せて wbemcli によるESXi監視をしていたのですが、最近 Dell EMC R630をセットアップした際に、wbemcli による監視ができなくっていたので、確認してみました。

コマンドを叩くとタイムアウト待ちの様な挙動を示していたので、?と思っていたのですが、結論から先に言うと Dell openmanage が元凶でした。このパッケージ、2019/09/02 時点では ESXi 6.7 u2 に対応しておらず、それを導入した為に wbemcli 経由で情報が取れなくなったようです。アンインストール方法はこちら。

# esxcli software vib list
# esxcli software vib remove --vibname=OpenManage

これで wbemcli による情報取得が可能になりました。

それから、cimv2に関してですが、意外と情報がなかったので掲載。cimv2で取得できる情報はメーカー毎に違います。一覧を取りたい場合にはこんな感じです。

# wbemcli ecn -noverify -nl 'https://root:*************@192.168.0.***:5989/root/cimv2'

192.168.0.***:5989/root/cimv2:CIM_AdminDomain
192.168.0.***:5989/root/cimv2:CIM_AlertIndication
192.168.0.***:5989/root/cimv2:CIM_AssociatedCacheMemory
192.168.0.***:5989/root/cimv2:CIM_AssociatedMemory
192.168.0.***:5989/root/cimv2:CIM_AssociatedSensor
192.168.0.***:5989/root/cimv2:CIM_Battery
192.168.0.***:5989/root/cimv2:CIM_Capabilities
192.168.0.***:5989/root/cimv2:CIM_Card
192.168.0.***:5989/root/cimv2:CIM_Chassis
192.168.0.***:5989/root/cimv2:CIM_Chip
192.168.0.***:5989/root/cimv2:CIM_Collection
192.168.0.***:5989/root/cimv2:CIM_Component
192.168.0.***:5989/root/cimv2:CIM_ComponentCS
192.168.0.***:5989/root/cimv2:CIM_ComputerSystem
192.168.0.***:5989/root/cimv2:CIM_ComputerSystemPackage
192.168.0.***:5989/root/cimv2:CIM_ConcreteComponent
192.168.0.***:5989/root/cimv2:CIM_Container
192.168.0.***:5989/root/cimv2:CIM_ControlledBy
192.168.0.***:5989/root/cimv2:CIM_Controller
192.168.0.***:5989/root/cimv2:CIM_CoolingDevice
192.168.0.***:5989/root/cimv2:CIM_Dependency
192.168.0.***:5989/root/cimv2:CIM_DeviceConnection
192.168.0.***:5989/root/cimv2:CIM_DiskDrive
192.168.0.***:5989/root/cimv2:CIM_ElementCapabilities
192.168.0.***:5989/root/cimv2:CIM_ElementConformsToProfile
192.168.0.***:5989/root/cimv2:CIM_ElementInConnector
192.168.0.***:5989/root/cimv2:CIM_ElementSettingData
192.168.0.***:5989/root/cimv2:CIM_ElementSoftwareIdentity
192.168.0.***:5989/root/cimv2:CIM_ElementStatisticalData
192.168.0.***:5989/root/cimv2:CIM_EnabledLogicalElement
192.168.0.***:5989/root/cimv2:CIM_EnabledLogicalElementCapabilities
192.168.0.***:5989/root/cimv2:CIM_EthernetPort
192.168.0.***:5989/root/cimv2:CIM_Fan
192.168.0.***:5989/root/cimv2:CIM_HardwareThread
192.168.0.***:5989/root/cimv2:CIM_HostedAccessPoint
192.168.0.***:5989/root/cimv2:CIM_HostedCollection
192.168.0.***:5989/root/cimv2:CIM_HostedDependency
192.168.0.***:5989/root/cimv2:CIM_HostedService
192.168.0.***:5989/root/cimv2:CIM_IPProtocolEndpoint
192.168.0.***:5989/root/cimv2:CIM_Indication
192.168.0.***:5989/root/cimv2:CIM_InstIndication
192.168.0.***:5989/root/cimv2:CIM_InstModification
192.168.0.***:5989/root/cimv2:CIM_InstalledSoftwareIdentity
192.168.0.***:5989/root/cimv2:CIM_Log
192.168.0.***:5989/root/cimv2:CIM_LogManagesRecord
192.168.0.***:5989/root/cimv2:CIM_LogRecord
192.168.0.***:5989/root/cimv2:CIM_LogicalDevice
192.168.0.***:5989/root/cimv2:CIM_LogicalElement
192.168.0.***:5989/root/cimv2:CIM_LogicalIdentity
192.168.0.***:5989/root/cimv2:CIM_LogicalPort
192.168.0.***:5989/root/cimv2:CIM_LogicalPortGroup
192.168.0.***:5989/root/cimv2:CIM_ManagedElement
192.168.0.***:5989/root/cimv2:CIM_ManagedSystemElement
192.168.0.***:5989/root/cimv2:CIM_MediaAccessDevice
192.168.0.***:5989/root/cimv2:CIM_MemberOfCollection
192.168.0.***:5989/root/cimv2:CIM_Memory
192.168.0.***:5989/root/cimv2:CIM_NetworkPort
192.168.0.***:5989/root/cimv2:CIM_NumericSensor
192.168.0.***:5989/root/cimv2:CIM_OwningCollectionElement
192.168.0.***:5989/root/cimv2:CIM_PCIBridge
192.168.0.***:5989/root/cimv2:CIM_PCIController
192.168.0.***:5989/root/cimv2:CIM_PCIDevice
192.168.0.***:5989/root/cimv2:CIM_PCIPort
192.168.0.***:5989/root/cimv2:CIM_PCIPortGroup
192.168.0.***:5989/root/cimv2:CIM_PCIeSwitch
192.168.0.***:5989/root/cimv2:CIM_PackageInConnector
192.168.0.***:5989/root/cimv2:CIM_PhysicalComponent
192.168.0.***:5989/root/cimv2:CIM_PhysicalConnector
192.168.0.***:5989/root/cimv2:CIM_PhysicalElement
192.168.0.***:5989/root/cimv2:CIM_PhysicalFrame
192.168.0.***:5989/root/cimv2:CIM_PhysicalMemory
192.168.0.***:5989/root/cimv2:CIM_PhysicalPackage
192.168.0.***:5989/root/cimv2:CIM_PowerManagementCapabilities
192.168.0.***:5989/root/cimv2:CIM_PowerManagementService
192.168.0.***:5989/root/cimv2:CIM_PowerSupply
192.168.0.***:5989/root/cimv2:CIM_ProcessIndication
192.168.0.***:5989/root/cimv2:CIM_Processor
192.168.0.***:5989/root/cimv2:CIM_ProcessorCore
192.168.0.***:5989/root/cimv2:CIM_ProtocolEndpoint
192.168.0.***:5989/root/cimv2:CIM_Realizes
192.168.0.***:5989/root/cimv2:CIM_RecordForLog
192.168.0.***:5989/root/cimv2:CIM_RecordLog
192.168.0.***:5989/root/cimv2:CIM_RedundancySet
192.168.0.***:5989/root/cimv2:CIM_Sensor
192.168.0.***:5989/root/cimv2:CIM_Service
192.168.0.***:5989/root/cimv2:CIM_ServiceAccessPoint
192.168.0.***:5989/root/cimv2:CIM_SettingData
192.168.0.***:5989/root/cimv2:CIM_Slot
192.168.0.***:5989/root/cimv2:CIM_SoftwareIdentity
192.168.0.***:5989/root/cimv2:CIM_StatisticalData
192.168.0.***:5989/root/cimv2:CIM_StatisticalInformation
192.168.0.***:5989/root/cimv2:CIM_Statistics
192.168.0.***:5989/root/cimv2:CIM_StorageExtent
192.168.0.***:5989/root/cimv2:CIM_System
192.168.0.***:5989/root/cimv2:CIM_SystemComponent
192.168.0.***:5989/root/cimv2:CIM_SystemDevice
192.168.0.***:5989/root/cimv2:CIM_SystemPackaging
192.168.0.***:5989/root/cimv2:CIM_SystemSpecificCollection
192.168.0.***:5989/root/cimv2:CIM_UnitaryComputerSystem
192.168.0.***:5989/root/cimv2:CIM_UseOfLog
192.168.0.***:5989/root/cimv2:IODM_AdapterIndication
192.168.0.***:5989/root/cimv2:IODM_Datastore
192.168.0.***:5989/root/cimv2:IODM_ElementStatisticalData
192.168.0.***:5989/root/cimv2:IODM_ExtentsOfDatastore
192.168.0.***:5989/root/cimv2:IODM_FCAdapter
192.168.0.***:5989/root/cimv2:IODM_FCAdapterStatisticalData
192.168.0.***:5989/root/cimv2:IODM_FCAdapterStats
192.168.0.***:5989/root/cimv2:IODM_FCoEAdapter
192.168.0.***:5989/root/cimv2:IODM_FCoEAdapterStatisticalData
192.168.0.***:5989/root/cimv2:IODM_FCoEAdapterStats
192.168.0.***:5989/root/cimv2:IODM_SCSIAdapter
192.168.0.***:5989/root/cimv2:IODM_SCSIAdapterStatisticalData
192.168.0.***:5989/root/cimv2:IODM_SCSIAdapterStats
192.168.0.***:5989/root/cimv2:IODM_SCSIDevice
192.168.0.***:5989/root/cimv2:IODM_SCSIDeviceStatisticalData
192.168.0.***:5989/root/cimv2:IODM_SCSIDeviceStats
192.168.0.***:5989/root/cimv2:IODM_SCSILocalDevice
192.168.0.***:5989/root/cimv2:IODM_SCSILocalDeviceSMART
192.168.0.***:5989/root/cimv2:IODM_SCSILocalDeviceSMARTData
192.168.0.***:5989/root/cimv2:IODM_SCSIPath
192.168.0.***:5989/root/cimv2:IODM_SCSIPathStatisticalData
192.168.0.***:5989/root/cimv2:IODM_SCSIPathStats
192.168.0.***:5989/root/cimv2:IODM_SCSIPathsOfDevice
192.168.0.***:5989/root/cimv2:IODM_Service
192.168.0.***:5989/root/cimv2:IODM_VvolContainer
192.168.0.***:5989/root/cimv2:IODM_VvolContainerStats
192.168.0.***:5989/root/cimv2:IODM_VvolDevice
192.168.0.***:5989/root/cimv2:IODM_VvolDeviceStats
192.168.0.***:5989/root/cimv2:IODM_VvolDevicesOnContainer
192.168.0.***:5989/root/cimv2:IODM_VvolDevicesOnProtocolEndpoint
192.168.0.***:5989/root/cimv2:IODM_VvolProtocolEndpoint
192.168.0.***:5989/root/cimv2:IODM_VvolProtocolEndpointStats
192.168.0.***:5989/root/cimv2:IODM_VvolProtocolEndpointsOfContainer
192.168.0.***:5989/root/cimv2:IODM_VvolStatsForContainer
192.168.0.***:5989/root/cimv2:IODM_VvolStatsForDevice
192.168.0.***:5989/root/cimv2:IODM_VvolStatsForProtocolEndpoint
192.168.0.***:5989/root/cimv2:OMC_AssociatedCPUCacheMemory
192.168.0.***:5989/root/cimv2:OMC_AssociatedMemory
192.168.0.***:5989/root/cimv2:OMC_AssociatedSensor
192.168.0.***:5989/root/cimv2:OMC_Battery
192.168.0.***:5989/root/cimv2:OMC_CacheMemory
192.168.0.***:5989/root/cimv2:OMC_Card
192.168.0.***:5989/root/cimv2:OMC_Chassis
192.168.0.***:5989/root/cimv2:OMC_ComponentCS
192.168.0.***:5989/root/cimv2:OMC_ComputerSystemPackage
192.168.0.***:5989/root/cimv2:OMC_DeviceCapabilities
192.168.0.***:5989/root/cimv2:OMC_DiscreteSensor
192.168.0.***:5989/root/cimv2:OMC_DiskDrive
192.168.0.***:5989/root/cimv2:OMC_ElementConformsToBaseServerProfile
192.168.0.***:5989/root/cimv2:OMC_ElementConformsToBatteryProfile
192.168.0.***:5989/root/cimv2:OMC_ElementConformsToCPUProfile
192.168.0.***:5989/root/cimv2:OMC_ElementConformsToFanProfile
192.168.0.***:5989/root/cimv2:OMC_ElementConformsToPhysicalAssetProfile
192.168.0.***:5989/root/cimv2:OMC_ElementConformsToPowerSupplyProfile
192.168.0.***:5989/root/cimv2:OMC_ElementConformsToProfile
192.168.0.***:5989/root/cimv2:OMC_ElementConformsToProfileRegistrationProfile
192.168.0.***:5989/root/cimv2:OMC_ElementConformsToRecordLogProfile
192.168.0.***:5989/root/cimv2:OMC_ElementConformsToSensorProfile
192.168.0.***:5989/root/cimv2:OMC_ElementConformsToSoftwareInventoryProfile
192.168.0.***:5989/root/cimv2:OMC_ElementConformsToSystemMemoryProfile
192.168.0.***:5989/root/cimv2:OMC_Fan
192.168.0.***:5989/root/cimv2:OMC_FanRedundancySet
192.168.0.***:5989/root/cimv2:OMC_HardwareSubSystem
192.168.0.***:5989/root/cimv2:OMC_HardwareThread
192.168.0.***:5989/root/cimv2:OMC_HardwareThreadConcreteComponent
192.168.0.***:5989/root/cimv2:OMC_IPMIAccessPoint
192.168.0.***:5989/root/cimv2:OMC_IPMIHostedIPProtocolEndpointAccessPoint
192.168.0.***:5989/root/cimv2:OMC_IPMIIPProtocolEndpoint
192.168.0.***:5989/root/cimv2:OMC_IPMIInterface
192.168.0.***:5989/root/cimv2:OMC_IPMISubSystem
192.168.0.***:5989/root/cimv2:OMC_InstalledSoftwareIdentity
192.168.0.***:5989/root/cimv2:OMC_IpmiAlertIndication
192.168.0.***:5989/root/cimv2:OMC_IpmiEnabledLogCapabilities
192.168.0.***:5989/root/cimv2:OMC_IpmiLogCapabilities
192.168.0.***:5989/root/cimv2:OMC_IpmiLogManagesRecord
192.168.0.***:5989/root/cimv2:OMC_IpmiLogRecord
192.168.0.***:5989/root/cimv2:OMC_IpmiRecordLog
192.168.0.***:5989/root/cimv2:OMC_MAPComputerSystemComponent
192.168.0.***:5989/root/cimv2:OMC_MCFirmwareIdentity
192.168.0.***:5989/root/cimv2:OMC_MemberOfCollection
192.168.0.***:5989/root/cimv2:OMC_MemberOfFanRedundancySet
192.168.0.***:5989/root/cimv2:OMC_MemberOfPowerSupplyRedundancySet
192.168.0.***:5989/root/cimv2:OMC_Memory
192.168.0.***:5989/root/cimv2:OMC_MemoryContainer
192.168.0.***:5989/root/cimv2:OMC_MemoryPackageInConnector
192.168.0.***:5989/root/cimv2:OMC_MemoryPhysicalPackage
192.168.0.***:5989/root/cimv2:OMC_MemoryRealizes
192.168.0.***:5989/root/cimv2:OMC_MemorySlot
192.168.0.***:5989/root/cimv2:OMC_MemorySystemDevice
192.168.0.***:5989/root/cimv2:OMC_ModularComputerSystem
192.168.0.***:5989/root/cimv2:OMC_NumericSensor
192.168.0.***:5989/root/cimv2:OMC_OwningRedundancyCollectionElement
192.168.0.***:5989/root/cimv2:OMC_PhysicalConnector
192.168.0.***:5989/root/cimv2:OMC_PhysicalMemory
192.168.0.***:5989/root/cimv2:OMC_PowerSupply
192.168.0.***:5989/root/cimv2:OMC_PowerSupplyRedundancySet
192.168.0.***:5989/root/cimv2:OMC_Processor
192.168.0.***:5989/root/cimv2:OMC_ProcessorChip
192.168.0.***:5989/root/cimv2:OMC_ProcessorContainer
192.168.0.***:5989/root/cimv2:OMC_ProcessorCore
192.168.0.***:5989/root/cimv2:OMC_ProcessorCoreConcreteComponent
192.168.0.***:5989/root/cimv2:OMC_ProcessorPackageInConnector
192.168.0.***:5989/root/cimv2:OMC_ProcessorPhysicalPackage
192.168.0.***:5989/root/cimv2:OMC_ProcessorRealizes
192.168.0.***:5989/root/cimv2:OMC_ProcessorSlot
192.168.0.***:5989/root/cimv2:OMC_RawIpmiEntity
192.168.0.***:5989/root/cimv2:OMC_RawIpmiSensor
192.168.0.***:5989/root/cimv2:OMC_RedundancySet
192.168.0.***:5989/root/cimv2:OMC_SMASHFirmwareIdentity
192.168.0.***:5989/root/cimv2:OMC_SMASHSoftwareIdentity
192.168.0.***:5989/root/cimv2:OMC_Slot
192.168.0.***:5989/root/cimv2:OMC_SmashCLPAdminDomain
192.168.0.***:5989/root/cimv2:OMC_SoftwareIdentity
192.168.0.***:5989/root/cimv2:OMC_SystemDevice
192.168.0.***:5989/root/cimv2:OMC_UnitaryComputerSystem
192.168.0.***:5989/root/cimv2:OMC_UseOfIpmiLog
192.168.0.***:5989/root/cimv2:VMware_CIMHeartbeat
192.168.0.***:5989/root/cimv2:VMware_ComponentSoftwareIdentity
192.168.0.***:5989/root/cimv2:VMware_DiscreteSensor
192.168.0.***:5989/root/cimv2:VMware_EPCoalesceElementSettingData
192.168.0.***:5989/root/cimv2:VMware_EPCoalesceSettingData
192.168.0.***:5989/root/cimv2:VMware_EPDriverElementSoftwareIdentity
192.168.0.***:5989/root/cimv2:VMware_EPDriverSoftwareIdentity
192.168.0.***:5989/root/cimv2:VMware_EPFirmwareElementSoftwareIdentity
192.168.0.***:5989/root/cimv2:VMware_EPFirmwareSoftwareIdentity
192.168.0.***:5989/root/cimv2:VMware_EPPauseParamsElementSettingData
192.168.0.***:5989/root/cimv2:VMware_EPPauseParamsSettingData
192.168.0.***:5989/root/cimv2:VMware_EPRingAbstractSettingData
192.168.0.***:5989/root/cimv2:VMware_EPRingCurrentElementSettingData
192.168.0.***:5989/root/cimv2:VMware_EPRingCurrentSettingData
192.168.0.***:5989/root/cimv2:VMware_EPRingPresetElementSettingData
192.168.0.***:5989/root/cimv2:VMware_EPRingPresetSettingData
192.168.0.***:5989/root/cimv2:VMware_EPStatisticalInformation
192.168.0.***:5989/root/cimv2:VMware_EPStatistics
192.168.0.***:5989/root/cimv2:VMware_EthernetPort
192.168.0.***:5989/root/cimv2:VMware_HypervisorSoftwareIdentity
192.168.0.***:5989/root/cimv2:VMware_HypervisorStorageExtent
192.168.0.***:5989/root/cimv2:VMware_HypervisorStorageExtentIdentityAssociation
192.168.0.***:5989/root/cimv2:VMware_InstalledSoftwareIdentity
192.168.0.***:5989/root/cimv2:VMware_KernelIPChangedIndication
192.168.0.***:5989/root/cimv2:VMware_KernelIPProtocolEndpoint
192.168.0.***:5989/root/cimv2:VMware_KernelIPv4ProtocolEndpoint
192.168.0.***:5989/root/cimv2:VMware_KernelIPv6ProtocolEndpoint
192.168.0.***:5989/root/cimv2:VMware_KernelModuleService
192.168.0.***:5989/root/cimv2:VMware_PCIBridge
192.168.0.***:5989/root/cimv2:VMware_PCIControlledBy
192.168.0.***:5989/root/cimv2:VMware_PCIDevice
192.168.0.***:5989/root/cimv2:VMware_PCIDeviceConnection
192.168.0.***:5989/root/cimv2:VMware_PCIHostedCollection
192.168.0.***:5989/root/cimv2:VMware_PCIMemberOfCollection
192.168.0.***:5989/root/cimv2:VMware_PCIPort
192.168.0.***:5989/root/cimv2:VMware_PCIPortGroup
192.168.0.***:5989/root/cimv2:VMware_PCISystemDevice
192.168.0.***:5989/root/cimv2:VMware_PCIeSwitch
192.168.0.***:5989/root/cimv2:VMware_PowerManagementService
192.168.0.***:5989/root/cimv2:VMware_PowerManagementServiceCapabilities
192.168.0.***:5989/root/cimv2:VMware_PowerManagementServiceElementCapabilities
192.168.0.***:5989/root/cimv2:VMware_PowerManagementServiceElementConformsToProfile
192.168.0.***:5989/root/cimv2:VMware_PowerManagementServiceHostedService
192.168.0.***:5989/root/cimv2:VMware_Processor
192.168.0.***:5989/root/cimv2:VMware_SCSIAdapter
192.168.0.***:5989/root/cimv2:VMware_SCSIAdapterStats
192.168.0.***:5989/root/cimv2:VMware_SCSIDevice
192.168.0.***:5989/root/cimv2:VMware_SCSIDeviceStats
192.168.0.***:5989/root/cimv2:VMware_SCSIPath
192.168.0.***:5989/root/cimv2:VMware_SCSIPathStats
192.168.0.***:5989/root/cimv2:VMware_SoftwareIdentity
192.168.0.***:5989/root/cimv2:VMware_StatisticalData
192.168.0.***:5989/root/cimv2:VMware_VvolContainer
192.168.0.***:5989/root/cimv2:VMware_VvolContainerStats
192.168.0.***:5989/root/cimv2:VMware_VvolDevice
192.168.0.***:5989/root/cimv2:VMware_VvolDeviceStats
192.168.0.***:5989/root/cimv2:VMware_VvolProtocolEndpoint
192.168.0.***:5989/root/cimv2:VMware_VvolProtocolEndpointStats

root の後ろにはパスワード、そしてサーバのIPを環境に合わせて埋め込んでください。そうすると一覧が取得できます。例えば、ファンの情報を取りたければこんな感じ。

# wbemcli ei -noverify -nl 'https://root:************@192.168.0.***:5989/root/cimv2:CIM_Fan'
.
.
.

# wbemcli ei -noverify -nl 'https://root::************@192.168.0.***:5989/root/cimv2:CIM_Fan' | grep ElementName
-ElementName="Fan5B"
-ElementName="Fan5A"
-ElementName="Fan4B"
-ElementName="Fan4A"
-ElementName="Fan3B"
-ElementName="Fan3A"
-ElementName="Fan2B"
-ElementName="Fan2A"
-ElementName="Fan1B"
-ElementName="Fan1A"

grep すれば色々な情報を取得できます。自分は zabbix-agent にこれらを埋め込んだスクリプトを叩いて数値を取得し、その数値の変動を見てアラートを上げるようにしています。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です


このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください