The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
UCMDB and UD Practitioners Forum (Previously CMS)
cancel
Showing results for 
Search instead for 
Did you mean: 

UCMDB Jython Create SQL Client

Aleks_Zubkov
Occasional Advisor

UCMDB Jython Create SQL Client

Hi everyone!
I coded Jython adapter to connect to SQL Server. This code create sql client:

 

IDS=Framework.getAvailableProtocols(IPAddr,ClientsConsts.SQL_PROTOCOL_NAME)
    props = Properties()
    props.setProperty(CollectorsConstants.DESTINATION_DATA_IP_ADDRESS, IPAddr)
    for ID in IDS:
      try:
        client=Framework.createClient(ID,props)
...

 

Now I am trying create sql client to connect to Instance Database. How can I set name of this Instance, when I create SQL Client? What is the name of this parameter in CollectorsConstants class? Where can I find description of CollectorsConstants class?

 

 

P.S. This thread has been moevd from Application Perf Mgmt (BAC / BSM) Support and News Forum to CMS and Discovery Support and News Forum.- HP Forum Moderator

2 REPLIES
Dmitry Shevchen
HPE Expert

Re: UCMDB Jython Create SQL Client


Aleks_Zubkov wrote:

 Where can I find description of CollectorsConstants class?


\hp\UCMDB\UCMDBServer\deploy\ucmdb-docs\docs\eng\doc_lib\DevRef_guide\DDM_JavaDoc\index.html

Highlighted
Aleks_Zubkov
Occasional Advisor

Re: UCMDB Jython Create SQL Client

\hp\UCMDB\UCMDBServer\deploy\ucmdb-docs\docs\eng\doc_lib\DevRef_guide\DDM_JavaDoc\index.html

This document doesn't contain definition of this class.

//Add this to "OnDomLoad" event