HP Operations Manager for Windows

Example policies and scripts for message forwarding


Several example policies and scripts are available on the HPOM for Windows management server. These can be used as templates for your own forwarding policies and scripts.

Example policies can be found in the Samples policy group.

Example Policy: Forwarding to a trouble ticket system

Policy Details
opcmsgTTNS Example opcmsg policy to submit messages tagged with the Forward-to-TT or Notification flag. This can be used to generate messages to be caught with the SubmitTTByFlag or SubmitNSByFlag policies, shown below.
SubmitTTByFlag WMI policy that forward messages tagged as DoNotification to the script SubmitNS.vbs. With the policy opcmsgTTNS, use:
opcmsga=TT o=oo msg_t=hallo
or opcmsg a=TT-ack o=oo msg_t=hallo
, which automatically acknowledges the message after successful submission.
SubmitTTByRule WMI policy that forwards messages which have the message group TT-Rule to the script SubmitTTvbs. With the policy opcmsgTTNS use:
opcmsg a=aa o=oo msg_t=hallo
msg_g=TT-Rule
UpdateTT WMI policy listening for generic message change events. Calls the scriptUpdateTTvbs.
UpdateTTStateChange WMI policy listening for message state change events (triggered by own, acknowledge,...). Calls the script UpdateTTvbs with options -s and the new state.

Example policy: Forwarding to a notification system

Policy Details
SubmitNSByFlag WMI policy that forwards messages tagged as DoNotification to the script SubmitNS.vbs. With the policy opcmsgTTNS use:
opcmsg a=NS o=oo msg_t hallo
SumitNSByRule WMI policy that forwards messages to the script SubmitNS.vbs which have the message group NS-Rule. With the policy opcmsgTTNS use:
opcmsg a=NS o=oo msg_t hallo
msg_g=NS-Rule

Example Policy: Forward messages to Service Desk

See the help topic Example: Forward messages to Service Desk for details.

Example Policy: Forward messages using Email

See the help topic Sending Messages through Email for details.

Example Scripts

Example scripts can be found in this location:

<InstallDir>/examples/OvOW/MessageForwarding

Example Script: Forwarding to a trouble ticket system

Script Details
OvOWSubmitTT.vbs Submits the message to C:\temp\test.out as a simulation.
OvOWUpdateTT.vbs Logs message updates in C:\temp\test.out as a simulation.

Example Script: Forwarding to a notification system

Script Details
OvOWSubmitNS.vbs Collects the 14 notification parameters as HPOM for UNIX does and adds an entry in C:\temp\test.out as a simulation.

Example Script: Forward messages to Remedy ARS

Script Details
OvOWSubmitARS.vbs Submits the message to Remedy ARS.
OvOWSubmitAR.arq. Macro necessary for Remedy ARS submission.

Example Script: Forward messages to Service Desk

See the help topic Example: Forward messages to Remedy ARS for details.

Some of these scripts log the message into the file C:\temp\test.out for simulation purposes. Sample content of this file is shown below. Your output might differ depending on the policies you use.

Submitted TT from message: 'Test message' ID: '096aba60-55c7-71d5-13cf-0f8878020000' Node: CARROT (management server) CreatedAt: 14:33:04 2001/05/31

Notification message: 'MessageId: e7796780-55c1-71d5-1394-0f8878020000 NodeName: CARROT NodeType: Pentium Windows 2003 DateCreated: 2001/05/31 TimeCreated: 14:38:57 DateReceived: 2001/05/31 TimeReceived: 14:38:57 Application: NS MessageGroup: Object: abc Severity: Normal Resp. Users: n/a Text: hallo10 Instructions: Some instructions.'

Message with Id: '096aba60-55c7-71d5-13cf-0f8878020000' is now in state Owned.

Message with Id: 'db2e2e20-55c6-71d5-13cf-0f8878020000' is now in state Acknowledged.

Example Script: Forward messages using Email

See the help topic Sending Messages through Email for details.

Related Topics: