Is it possible to delete a Node CI from the command line in uCMDB 9.05? RTSM?
P.S. This thread has been moved from Application Perf Mgmt (BAC / BSM) Support and News Forum to CMS and Discovery Support and News Forum. - Hp Forum Moderator
There's at least two possibilities for you to look at: the Model Services MBean (JMX) and the UcmdbService webservice (Axis2).
There's a Jar you need to call JMX MBean operations from a batch file. The same for performing SOAP calls on the Axis2 webservices.
I'm struggling to find a good example in any documentation. Is anyone trying to remove Node CI's programatically? Is this even worth the effort?
It seems to me the easiest way to delete CI's is via Enrichment. Thats fine. But surely there is a way to do this programatically.
Take a look at the RTSM Developer Reference Guide.
The API's for writing your own code are described there.
Have you given some thought to cmdline-jmxclient? You can use that to communicate with the JMX side of UCMDB (JMX console).
java -jar cmdline-jmxclient-0.10.3.jar - 188.8.131.52:29601 "UCMDB:service=Model Services" removeCMDBObject=1,f22c4b1e0a5e01271054aaf0990c2a5702/13/2014 11:36:28 +0000 org.archive.jmx.Client removeCMDBObject=1,f22c4b1e0a5e01271054aaf0990c2a57: Object f22c4b1e0a5e01271054aaf0990c2a57 deleted
This will immediately and irrevocably remove a CI with Global ID "f22c4b1e0a5e01271054aaf0990c2a57" from the CMDB.
Tested it and it works.
I was also looking for a solution to remove CI from command line.
Can you share details like how to run this command ? Can you provide some guidelines here ?
java -jar cmdline-jmxclient-0.10.3.jar - 184.108.40.206:29601 "UCMDB:service=Model Services" removeCMDBObject=1,f22c4b1e0a5e01271054aaf0990c2a57