Re: UCMDB Jython Create SQL Client (522 Views)
Reply
Occasional Contributor
Aleks_Zubkov
Posts: 3
Registered: ‎12-14-2011
Message 1 of 3 (530 Views)

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?

Please use plain text.
HP Expert
Dmitry Shevchenko
Posts: 4,785
Registered: ‎01-30-2008
Message 2 of 3 (522 Views)

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

Please use plain text.
Occasional Contributor
Aleks_Zubkov
Posts: 3
Registered: ‎12-14-2011
Message 3 of 3 (508 Views)

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.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation