Openview 8.16 - Description Field (194 Views)
Reply
Occasional Collector
GCU_Grad
Posts: 4
Registered: ‎10-24-2011
Message 1 of 7 (194 Views)

Openview 8.16 - Description Field

Does anyone know how to update the description field for each agent on a Windows using a script? I want to update all of my machines with a description, but I do not want to have manual update each machine in the console.

 

Thanks,

GCU_Grad

Please use plain text.
Honored Contributor
Peter Marko
Posts: 718
Registered: ‎02-18-2008
Message 2 of 7 (187 Views)

Re: Openview 8.16 - Description Field

Try this

Set objWMI = GetObject("WinMgmts:\\.\root\hewlettpackard\openview\data")
Set objMngmtNodes = objWMI.Get("OV_ManagedNode").Instances_
For Each objNode in objMngmtNodes
objNode.Description = "new description 2"
objNode.Put_
Next
Please use plain text.
Occasional Collector
GCU_Grad
Posts: 4
Registered: ‎10-24-2011
Message 3 of 7 (153 Views)

Re: Openview 8.16 - Description Field

[ Edited ]

Is there a way to do this using the ovownodeutil command?

Please use plain text.
Occasional Collector
GCU_Grad
Posts: 4
Registered: ‎10-24-2011
Message 4 of 7 (77 Views)

Re: Openview 8.16 - Description Field

What about for OVO 9?

Please use plain text.
Honored Contributor
Ram_21
Posts: 3,599
Registered: ‎04-30-2003
Message 5 of 7 (69 Views)

Re: Openview 8.16 - Description Field

Hello

 

ovownodeutil does not offer you this option. So you may have to script this like you thought of. If all the nodes are going to have same description then you can use the script that Peter has given. If you are thinking of adding specific description for each node then you will have to expand his script further.

 

Check OMW Online help for sample scripts for PMD APIs and you can see some more examples that may help you as well.

Hope this helps.

Regards

Ram

 

Please use plain text.
Occasional Collector
GCU_Grad
Posts: 4
Registered: ‎10-24-2011
Message 6 of 7 (67 Views)

Re: Openview 8.16 - Description Field

Thanks. That is my exact goal - to add a specific description for each individual node. I searched the OMW Online Help and did find any sample scripts. Would you happen to know the page number or link that can lead me in the right direction. Thanks in advance.

Please use plain text.
Honored Contributor
Ram_21
Posts: 3,599
Registered: ‎04-30-2003
Message 7 of 7 (58 Views)

Re: Openview 8.16 - Description Field

Hello

 

There is no exact sample script listed in OMW online help that will meet your needs. However there are sample scripts that shows you some basics and you can find them under "Policy Management and Deployment (PMAD) API Documentation"

 

Hope this helps.

Regards
Ram

 

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation