database - How do I connect to a Netcool / Omnibus "Object Server" using Python? -
i'm trying connect netcool 7.1 object server using python, i'm running issues. seems sybase type database, stripped down. i'm using sybase module , freetds, following error when try connect:
traceback (most recent call last): file "netcool.py", line 12, in <module> db = sybase.connect('foo','foo','foo','foo') file "/usr/lib64/python2.6/site-packages/sybase.py", line 1194, in connect datetime, bulkcopy, locale, inputmap, outputmap) file "/usr/lib64/python2.6/site-packages/sybase.py", line 850, in __init__ self.connect() file "/usr/lib64/python2.6/site-packages/sybase.py", line 898, in connect status = conn.ct_options(cs_set, cs_opt_chainxacts, not self.auto_commit) file "/usr/lib64/python2.6/site-packages/sybase.py", line 272, in _servermsg_cb raise databaseerror(msg) sybase.databaseerror: msg 17001, level 10 no srv_option handler installed.
has connected netcool object server using python? there way can edit sybase module make work? worst case scenario, possible write communicates nco_sql client? want ability read , write db.
any or info appreciated.
eventually figured out on own. if use sap sybase jdbc drivers (jconn4.jar) in conjunction jaydebeapi module, can connect , read/write object server. python solution find works. if else has different method, feel free share.
Comments
Post a Comment