Netconf ssh multiple sessions

Hello Team,

Accidently in our set-up we have opened two netconf-ssh sessions to a notiifcation stream.

9df421218da0# show netconf-state streams
REPLAY REPLAY LOG CREATION SESSION STOP
NAME DESCRIPTION SUPPORT TIME REPLAY LOG AGED TIME ID START TIME TIME

NETCONF default NETCONF event stream false - -
managed_ap_events Managed AP notifications true 2018-11-08T11:02:01+00:00 2018-11-09T09:02:54.098954+00:00 1 2018-11-08T11:02:04.59111+00:00 -
2 2018-11-08T11:24:36.130244+00:00 -

After which the notifications seem to have lost. Please suggest.

Best regards,
Poornima.M

It should work just fine to have multiple sessions subscribing to the same stream. But are both sessions actually reading / attempting to read the notifications? If one session isn’t reading, it will block all “live” notification sending on the stream it is subscribed to.

That makes sense. Probably the session wasn’t closed properly. Thanks a lot :slight_smile:

Best regards,
Poornima.M

Also, Is there a way to know if the ssh session is active or not?

I can’t think of a way to directly “see” that, especially since a session with notification subscription isn’t expected to produce any input (i.e. towards the server) once the subscription has been set up. Due to this, the /confdConfig/netconf/idleTimeout is also ignored for such a session. Setting /confdConfig/netconf/writeTimeout should take care of the problem with a subscriber that isn’t reading though (but it will not take effect for an already established session).

Thanks a ton! I shall explore that option.