I am new to DB2 and I am trying to implement a tool using DB2 Administrative (C API) API.My requirement is for the tool to query the DB2 servers to get the list of databases in each of the servers.I looked at API's like sqleatin(Attach),sqledosd (open database directory scan) etc: which I believe will give me the necessary info.
My question is :
1.Can I execute the Administrative API's remotely ?? Can I execute this tool (that uses the admin API) in a box that does not have a DB2 installation ??
I am asking this since none of the API's take an IP address / Tcp port as argument.Instead they seem to be using the value of the DB2INSTANCE env variable to identify the instance.
No you can not execute admin API remotely and no, you can not execute api without db2 client.
If theory the functionality you need (list databases from remote instance) can be achieved via administarive instance (it must be up on a remote box).
I'm not sure if the access API to admin instance is documented.