UCMDB and UD Practitioners Forum (Previously CMS)
Showing results for 
Search instead for 
Do you mean 

UCMDB Jython Create SQL Client

Highlighted
Occasional Contributor

UCMDB Jython Create SQL Client

[ Edited ]

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
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

Occasional Contributor

Re: UCMDB Jython Create SQL Client

[ Edited ]

\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.