Getting a list of patches in an HPSA patch policy

Posted by asm on Server Fault See other posts from Server Fault or by asm
Published on 2010-07-22T21:38:38Z Indexed on 2013/11/01 3:58 UTC
Read the original article Hit count: 688

Filed under:
|
|

I'm trying to get a list of patches contained in a Patch Policy in HPSA -- I can get what I need via the Twister web interface (under PatchPolicy.getPatches(), give it an ID, and it happily returns a list of patches contained.) -- I'm having a hard time getting this to work via the Pytwist interface, though... I haven't used the Pytwist interface for much besides some very basic Device manipulation, and Python is.. not my forte. I create the TwistServer object, then a PatchPolicy object from that (which I think is working..), but can't figure out how/where to call the getPatches() method from in Python-land.

If there's a way to dig this out of the database itself, that would work, too, but I can't seem to find much in there along these lines besides the vendor-recommended patching stuff, and we use custom policies.

© Server Fault or respective owner

Related posts about python

Related posts about hpsa