com.tailf.dp.DpException: Can't initialize Dp at com.tailf.dp.Dp.<init>(Dp.java:609) at com.tailf.dp.Dp.<init>(Dp.java:448) at com.tailf.dp.Dp.<init>(Dp.java:401) at com.mitel.cms.OSSSnmpManager.main(OSSSnmpManager.java:107

executing

Dp dp = new Dp(“SampleDPConnection_2”, new Socket(“localhost”, 2022));

throws

com.tailf.dp.DpException: Can’t initialize Dp
at com.tailf.dp.Dp.(Dp.java:609)
at com.tailf.dp.Dp.(Dp.java:448)
at com.tailf.dp.Dp.(Dp.java:401)
at com.mitel.cms.OSSSnmpManager.main(OSSSnmpManager.java:107)
Caused by: com.tailf.conf.ConfException: unexpected end of file
at com.tailf.conf.ConfInternal.readFill(ConfInternal.java:415)
at com.tailf.conf.ConfInternal.termRead(ConfInternal.java:196)
at com.tailf.conf.ConfInternal.termRead(ConfInternal.java:113)
at com.tailf.dp.Dp.readResponse(Dp.java:3317)
at com.tailf.dp.Dp.(Dp.java:572)

Hello,

just to verify, is port 2022 correct? Usually CONFD_PROT is used (value 4565) unless overridden (see /confdConfig/confdIpcAddress/port and 28.6. ConfD IPC in the ConfD User Guide). 2022 is usually assigned for NETCONF port (/confdConfig/netconf/transport/ssh/port).

Then you need to use:

new Socket("localhost", Conf.PORT)

Thanks, now I am able to make the connection but locally only

127.0.0.1
4565

But if i use some remote ip like

10.204.42.57
4565

where 10.204.42.57 is the ip of my windows machine from where I am making the socket connection…

confd --reload gives the error –
Cannot bind to internal socket 10.204.42.57:3465 : can’t assign requested address

Do I need to specify some securty setting or

export
CONFD_IPC_ACCESS_FILE=./secret_file.txt

Please sugget

ConfD 6.3 UG “Chapter 28.6. ConfD IPC” is your friend here