Highlighted
Established Member..
Established Member..
226 views

Trigger Discovery

Is there a way to trigger a discovery process from command line / web service? Say I have a discovery process for discovering Unix hosts. Is there a way I could trigger this process thru command line or via a web service endpoint  by passing in an IP Address information?

0 Likes
3 Replies
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Trigger Discovery

There is a WS exposed to activate Discovery Jobs. It still will run on all destinations triggered by trigger TQL.

Could you please elaborate on the problem you trying to solve?

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Highlighted
Established Member..
Established Member..

Re: Trigger Discovery

Currently we have some Infrastructure Discovery process predefined to run at certain times.  We would like to start an adhoc dicovery process using command-line/via script which could be triggered by another separate application.

 

Can you elaborate more on that web service. Is it the same http://cms:8080/axis2/services/UcmdbService ?

 

0 Likes
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: Trigger Discovery

 

A feature to issue direct command from operating system's command line to trigger a discovery process is not available in UCMDB but using "UCMDB Web Service API" can be used to achieve the required.

Some of the UCMDB WebService API methods relevant to this post is listed below
* Manage Discovery triggers: add or remove a trigger CI, and add, remove, or disable a trigger TQL
* Manage Jobs: view status, activate, and deactivate

There are several other webs service api methods available. For complete details how this can be achieved. Please refer to our documentation. Please review below to in how to find the relevant information related to UCMDB Web Service API as follows

 Steps to View UCMDB Help available via GUI [please also view the attached screnshot]
* In the UCMDB GUI, please click on Help --> ? UCMDB Help (This pop open Help page make sure pop up is enabled on the web-browser for UCMDB URL)
* Please click on each folder in pop up help guide the following order

* Developer Reference -->Using API--> HP Universal CMDB Web Service API

 

More information about available Methods can be seen under section "HP Universal CMDB Web Service API Overview" or "Data Flow Management Web Service API"

Full UCMDB webservice API reference documentation is need for making a webservice call and response structures. Please find the location of full API documentation under section Conventions in Online Help.

For example for 10.10 the api documentation for UCMDB API methods are availble on UCMDB-Server file systems as follows

<UCMDB directory>\UCMDBServer\deploy\ucmdb-docs\docs\eng\APIs\CMDB_Schema\webframe.html

for specific to this topic we should be looking at "Data Flow Management Web Service API" which can be located here
<UCMDB directory>\UCMDBServer\deploy\ucmdb-docs\docs\eng\APIs\DDM_Schema\webframe.html

For example in webservice guide for Data Flow Management I found the following webservice method "addTriggerCIRequest"

 

 

Source

<xs:complexType name="addTriggerCIRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>Job Name, CI ID</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="JobName" type="xs:string"/>
    <xs:element name="CIID" type="xs:string"/>
    <xs:element name="CmdbContext" type="ucmdbtypes:CmdbContext"/>
  </xs:sequence>
</xs:complexType>

 

I hope this gives enough information to start building up a webservice tool to achieve the desired.


Thanks,
Bilal Farooqui
HP Support

If you find that this post resolves your issue, please be sure to mark it as an accepted solution.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.