ConfD User Community

Is it possible to run multiple one instance of Confd CLI on different IP's


#1

Is it possible to run multiple one instance of Confd CLI on different IP’s.
If its possible how do we differentiate in our call back functions from which IP the user has currently logged in.


#2

depends on where specifically you need the information - many callbacks have e.g. struct confd_user_info as an input parameter - when you check the ConfD library headers, there’s user session related information, including IP address.
e.g. data provider callbacks have struct confd_trans_ctx input parameter, that includes above mentioned user info as one of it’s fields/members…


#3

Thanks for the reply. But what I am looking is something like below:

FOr Eg: I have one instance Confd listening on 2 IP’s on its North Bound say (1.1.1.1 and 2.2.2.2).
Now I need to get the IP (1.1.1.1 or 2.2.2.2) in my callBack function, depending on which IP the user has used to login.
If Users Ip is say 3.3.3.3 and he logsin using ssh 1.1.1.1 on confd, I need to get the IP 1.1.1.1 in my callback code.

Is this possible?
Any help is much appreciated.