HP DL360 HP Insight Management WBEM Providers for Windows Server 2003 and Wind - Page 31

Insight Providers usage

Page 31 highlights

WScript.Echo "Operational status: " & objOperationalStatus Next WScript.Echo Next This VBScript code is used to clear the record log: strComputer = "." strNamespace = "\root\hpq" Set objWMIService = GetObject("winmgmts:\\" & strComputer & strNamespace) Set colCommonRecordLog = objWMIService.ExecQuery("Select * from HPQ_CommonRecordLog") Wscript.Echo "Clearing the record log..." For Each objCommonRecordLog in colCommonRecordLog objCommonRecordLog.ClearLog() Next This VBScript code is used to receive an alert indication: strComputer = "." strNamespace = "\root\hpq" Set objWMIService = GetObject("winmgmts:\\" & strComputer & strNamespace) Set objIndication = objWMIService.ExecNotificationQuery("SELECT * FROM HP_AlertIndication") Wscript.Echo "Waiting for alert indication..." Set objReceivedIndication = objIndication.NextEvent WScript.Echo "Provider Name = " & objReceivedIndication.ProviderName WScript.Echo "Event ID = " & objReceivedIndication.EventID WScript.Echo "Severity = " & objReceivedIndication.PerceivedSeverity WScript.Echo "Description = " & objReceivedIndication.Description Insight Providers usage Access data and events from the Insight Providers using the SMH supplied in the PSP, HP SIM, other client applications, or scripts that supports WMI and SMASH. The SMH provides a web interface for accessing management data locally or remotely. SMH support for the Insight Providers is composed of two components • The SMH for Windows® Smart Component that is included with the ProLiant Support Packs for Windows®. This is the SMH framework. • The web application plug-in (SMH WebApp) that is installed with the Insight Providers. This provides the web pages that show management data using the Insight Providers. Insight Providers architecture 31

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41

Insight Providers architecture 31
WScript.Echo "Operational status: " & objOperationalStatus
Next
WScript.Echo
Next
This VBScript code is used to clear the record log:
strComputer = "."
strNamespace = "\root\hpq"
Set objWMIService = GetObject("winmgmts:\\" & strComputer &
strNamespace)
Set colCommonRecordLog = objWMIService.ExecQuery("Select * from
HPQ_CommonRecordLog")
Wscript.Echo "Clearing the record log…"
For Each objCommonRecordLog in colCommonRecordLog
objCommonRecordLog.ClearLog()
Next
This VBScript code is used to receive an alert indication:
strComputer = "."
strNamespace = "\root\hpq"
Set objWMIService = GetObject("winmgmts:\\" & strComputer &
strNamespace)
Set objIndication = objWMIService.ExecNotificationQuery("SELECT * FROM
HP_AlertIndication")
Wscript.Echo "Waiting for alert indication..."
Set objReceivedIndication = objIndication.NextEvent
WScript.Echo "Provider Name = " & objReceivedIndication.ProviderName
WScript.Echo "Event ID = " & objReceivedIndication.EventID
WScript.Echo "Severity = " & objReceivedIndication.PerceivedSeverity
WScript.Echo "Description = " & objReceivedIndication.Description
Insight Providers usage
Access data and events from the Insight Providers using the SMH supplied in the PSP, HP SIM, other client
applications, or scripts that supports WMI and SMASH.
The SMH provides a web interface for accessing management data locally or remotely. SMH support for
the Insight Providers is composed of two components
The SMH for Windows® Smart Component that is included with the ProLiant Support Packs for
Windows®. This is the SMH framework.
The web application plug-in (SMH WebApp) that is installed with the Insight Providers. This provides
the web pages that show management data using the Insight Providers.