Microsoft visual basic scripting edition examples – HP Insight Management WBEM Providers User Manual
Page 20
File name
Version
Profile name
P00106_-_HP_CPU_Profile.pdf
1.0.0
P00106 HP CPU Profile
P00107_-_HP_CPU_Consolidated_Status_Profile.pdf
1.0.0
P00107 HP CPU Consolidated Status
Profile
P00108_-_HP_CPU_Physical_Asset_Profile.pdf
1.0.0
P00108 HP CPU Physical Asset
Profile
P00109_-_HP_Record_Log_Profile.pdf
1.1.0
P00109 HP Record Log Profile
P00110_-_HP_Memory_Profile.pdf
1.0.0
P00110 HP Memory Profile
P00111_-_HP_Memory_Physical_Asset_Profile.pdf
1.0.0
P00111 HP Memory Physical Asset
Profile
P00113_-_HP_Consolidated_Status_Profile.pdf
1.0.1
P00113 HP Consolidated Status
Profile
P00114_-_HP_Base_Server_Physical_Asset_Profile.pdf
1.4.0
P00114 HP Base Server Physical
Asset Profile
P00115_-_HP_Fan_Physical_Asset_Profile.pdf
1.1.0
P00115 HP Fan Physical Asset Profile
P00116_-_HP_Power_Supply_Physical_Asset_Profile.pdf
1.0.2
P00116 HP Power Supply Physical
Asset Profile
P00117_-_HP_Ethernet_Teaming Profile.pdf
1.0.1
P00117 HP Ethernet Teaming Profile
P00119_-_HP_FC_HBA_Profile.pdf
1.0.5
P00119 HP FC HBA Profile
P00120_-_HP_Storage_Enclosure_Profile.pdf
1.0.2
P00120 HP Storage Enclosure Profile
P00121_-_HP_Smart_Array_Profile.pdf
2.0.0
P00121 HP Smart Array Profile
P00122_-_HP_SAS_HBA_Profile.pdf
1.1.0
P00122 HP SAS HBA Array Profile
P00123_-_HP_SCSI_HBA_Profile.pdf
1.0.1
P00123 HP SCSI HBA Profile
P00124_-_HP_Location_Profile.pdf
1.1.0
P00124 HP Location Profile
P00125_-_HP_Blade_System_Lite_Profile.pdf
2.1.0
P00125 HP Blade System Lite Profile
P00129_-_HP_Standalone_Tape_Drive_profile.pdf
1.0.0
P00129 HP Standalone Tape Drive
Profile
P00130_-_HP_Host_Attached_SATA_profile.pdf
1.0.0
P00130 HP Host Attached SATA
Profile
Microsoft Visual Basic Scripting Edition examples
You can write scripts to obtain data from the Insight Providers using Microsoft® Visual Basic
Scripting Edition (VBScript) or any other scripting language that supports Microsoft® ActiveX.
The following are example codes for accessing Insight Provider data using VBScript code.
This VBScript code is used to display computer system operational status information:
strComputer = "."
strNamespace = "\root\hpq"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & strNamespace)
Set colComputerSystem = objWMIService.ExecQuery("Select * from HP_WinComputerSystem")
For Each objComputerSystem in colComputerSystem
WScript.Echo "Caption: " & objComputerSystem.Caption
For Each objStatusDescription in objComputerSystem.StatusDescriptions
WScript.Echo "Status description: " & objStatusDescription
Next
20
Insight Providers architecture