08-21-2023 02:58 AM
Hi,
I am trying to write a restconf code to run parallel show/any commands to read the data from same device(ios-xr) via live-status. I am facing the connectivity issues constantly when i perform this in parallel and no issues if i do it in serial. Can someone suggest how to make these calls in parallel via NSO and that reduces the wait time if we try with serial.
//Sample restconf payload
08-21-2023 04:40 AM
08-21-2023 06:34 PM
Thanks for your input. Are you saying I need to reconfigure the device in the NSO to accept more connections. In fact, do we have settings in the NSO while configuring the device or something to do with NED settings?
08-22-2023 12:11 AM
08-22-2023 07:17 AM
In NSO-5.5+, there's a session-limits setting to limit how many concurrent sessions NSO can create towards a device(look for ENG-3837 in CHANGES), but what you see indicates it's the device that refuses the connection from NSO.
08-23-2023 01:28 AM
Thanks. How do I confirm this error from TACAS or reaching the device SSH connection limit. All I can see from the trace is NED exception.
-- SSH failed, closing connection
-- [22-Aug-2023::19:36:05.679] progress: usid=98468 thandle=0: ncs: connect: cisco-iosxr: connecting error [30 ms]
-- ERROR:
com.tailf.ned.NedException: NEDCOM CONNECT: Connection reset in new state
at com.tailf.packages.ned.nedcom.connector.CliConnectorNedUtils.connectorConnectDevice(CliConnectorNedUtils.java:58)
at com.tailf.packages.ned.nedcom.connector.CliConnectorNedUtils.connectorConnectDevice(CliConnectorNedUtils.java:46)
at com.tailf.packages.ned.iosxr.IosxrNedCli.connectDevice(IosxrNedCli.java:779)
at com.tailf.packages.ned.nedcom.NedComCliBase.newConnection(NedComCliBase.java:2541)
at com.tailf.ned.NedWorker.dorun(NedWorker.java:1577)
at com.tailf.ned.NedWorker.run(NedWorker.java:317)
Caused by: com.tailf.packages.ned.nedcom.connector.CliException: Connection reset in new state
at com.tailf.packages.ned.nedcom.connector.CliInteractor.action(CliInteractor.java:719)
at com.tailf.packages.ned.nedcom.connector.CliInteractor.access$600(CliInteractor.java:36)
at com.tailf.packages.ned.nedcom.connector.CliInteractor$State.runState(CliInteractor.java:616)
at com.tailf.packages.ned.nedcom.connector.CliInteractor$State.access$100(CliInteractor.java:532)
at com.tailf.packages.ned.nedcom.connector.CliInteractor.run(CliInteractor.java:521)
at com.tailf.packages.ned.nedcom.connector.CliConnectorNedUtils.doConnectorConnectDevice(CliConnectorNedUtils.java:209)
at com.tailf.packages.ned.nedcom.connector.CliConnectorNedUtils.connectorConnectDevice(CliConnectorNedUtils.java:53)
... 5 more
08-23-2023 05:23 AM
you need to look at logs on device, I'm no device expert, but a colleague mentioned "debug ssh server" command on device cli
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide