ConfD User Community

clientAliveInterval


#1

Hi,

I configured clientAliveInterval to 10 seconds.
As I understood if nothing was done for 10 seconds CONFD should send hello to the client.

Nothing was sent.

Can you please assist?

Thanks,

Evyatar


#2

Not sure how did you verify whether keep alive messages have been sent by ConfD’s ssh server or not when clientAliveInterval is configured as 10s.

Following steps show the keep alive messages being received by the ssh client that is connected to ConfD by using a slightly modified version of the 1-2-3 example:

$ diff confd.conf ../1-2-3-start-query-model/confd.conf
259,261d258
<   <ssh>
<     <clientAliveInterval>10s</clientAliveInterval>
<   </ssh>

After the example has been started with “make all start”, a ssh connection is established to the ConfD daemon’s NETCONF port.

$ ssh -v admin@127.0.0.1 -p 2022 -s netconf
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data ~/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 2022.
debug1: Connection established.
...
debug1: Sending subsystem: netconf
<?xml version="1.0" encoding="UTF-8"?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
…
<capability>urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults?module=ietf-netconf-with-defaults&amp;revision=2011-06-01</capability>
</capabilities>
<session-id>32</session-id></hello>]]>]]>debug1: client_input_global_request: rtype keepalive@example.com want_reply 1
debug1: client_input_global_request: rtype keepalive@example.com want_reply 1
debug1: client_input_global_request: rtype keepalive@example.com want_reply 1

As you can see at the bottom of the above terminal output of the ssh client’s session, keep alive messages are being received from ConfD which you don’t get when clientAliveInterval is left unset as default.