It looks like you're new here. If you want to get involved, click one of these buttons!
powershell -ExecutionPolicy ByPass -File esxi-cim-getinstance.ps1 -HostEsxi ESXIip -UserName "root" -UserPassword "password" -ClassName CIM_Controller -FieldName ElementName
Replace the ESXI host IP and credentials with their actual values. Intel Corporation PX7450 Network Controller
ACME 2017 IDE Controller No.1
USB controller
Now, if you wish to monitor HealthState property of "ACME 2017 IDE Controller No.1", the "Arguments" field for your monitor in IPHostMonitor client should look like this:
-ExecutionPolicy ByPass -File $AppFiles\esxi-cim-filter-class-instance.ps1 -HostEsxi $HostIP -UserName $WindowsUser -UserPassword $WindowsPassword -ClassName CIM_Controller -CreationClassName VMware_PCIDevice -ElementName "*IDE Controller*" -FieldName HealthState
(the asterisk in "-ElementName" parameter are wildcards and mean "any amount of any characters".-ExecutionPolicy ByPass -File $AppFiles\esxi-cim-filter-class-instance.ps1 -HostEsxi $HostIP -UserName $WindowsUser -UserPassword $WindowsPassword -ClassName CIM_Controller -CreationClassName VMware_PCIDevice -ElementName "ACME 2017 IDE Controller No.1" -FieldName HealthState
For more information, please refer to the mentioned API reference link above.
powershell -ExecutionPolicy ByPass esxi-cim-getinstance.ps1 -HostEsxi ESXIip -UserName "root" -UserPassword "password" -ClassName "CIM class"
For example, if you need help choosing proper CIM_Controller instance, run the command like
powershell -ExecutionPolicy ByPass esxi-cim-getinstance.ps1 -HostEsxi ESXIip -UserName "root" -UserPassword "password" -ClassName CIM_Controller > cim-output.txt
and send us the cim-output.txt file it creates, along with explanation of what are you looking for.