Recently I decided to post my replies in HP Support Forum here in my blog to enrich the internet with the direct answer to the question I may also attach some screenshots..
The question was about changing Hearbeat settings for OMW Nodes..
The settings are actually located under system tab in the node properties page
I will use WMI to handle this case
So node information is located in the instances of WMI Class named ov_managednode this class contain all the node related attributes plus more methods to execute different functions
This WMI class is located under WMI namespace “root\HewlettPackard\OpenView\data”
dealing with WMI in VB scripting is quite straightforward, although the scripts may look different
The code below is simple to connect to WMI on the local machine and direct the code to the namespace mentioned above
Set objLocator = CreateObject("WbemScripting.SWbemLocator")
Set objNode = objLocator.ConnectServer("", "root\HewlettPackard\OpenView\data", "", "")
objNode.Security_.impersonationlevel = 3
The next section is to find the node where we want to modify in list of Instance of the ov_managedNode class so as long as we may use the full node name there is attribute contain this data called primarynodename so we will use a WQL to locate node(s) matches our select criteria and we will execute the query by objNode.ExecQuery() function
msgQuery = "Select * from ov_managednode where primarynodename = """ & nodeName & """"
objNodeList = objNode.ExecQuery(msgQuery)
but in the query about you may notice nodeName which is a variable where you my add it as argument while executing the script where we defined the nodeName as the 1st argument identified as Item(0)
argsObj = WScript.Arguments
nodeName = argsObj.Item(0)
And finally to change the value of any attribute you need to locate the attribute name and its possible values and use .put to write your changes.