Python script to read and display all the oracle interim patches in a Oracle ci attribute in HP uCMDB tool
Posted on 2016-09-02
I am trying to read the all interim patches from oracle server using Opatch and then capture only the parent patch numbers fro command output and display in oracle ci attribute discovered in UCMDB(universal configuration management database)
The opatch command i am using is :
su oracle -c '/ora01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch lsinventory'.
I need the python/jython code to read the patch numbers from command output.
Appreciate your help!