Showing results for 
Search instead for 
Did you mean: 
Create Post

Feature Request: Clean Disconnect from devices

Feature Request: Clean Disconnect from devices

I am seeing errors on routers, where every time NCM is done with executing commands on the router, the SSH process creates a log entry indicating the disconnect.

RP/0/RP1/CPU0:Aug 11 15:36:11.906 : SSHD_[65858]: %SECURITY-SSHD-6-INFO_GENERAL : Client closes socket connection

One thing that I tried was to force a disconnect by changing the device template, adding "${CRLF}exit" to the show running-config command line, but that resulted in the scripts thinking there was an invalid termination, and thus it trying to redo the command 3 times over.  It did stop logging the error message though.

I opened a case with TAC looking for a way to gracefully disconnect without causing the scripts to retry 3 times (372313).  I was informed that there is currently no way to have the system gracefully disconnect upon completion of commands/download of configuration.  The internals need to be reworked to make this happen.  So, a feature request is being summited, but as with any feature request, needs a bit of community support.  If you would like to see this worked on, let it be known.

I do see there are at least some other folks that have similar issues that would be resolved by this.  They even look to be worse off as their comments indicate memory leakage on the target device. Re: NCM causing SSH errors when downloading configs?

Level 9

I have only scene this once and I was upgrading 30 switches with a new snmp string.  Some of them already were configured and those are the only ones I received said message.

Level 7


We do see this issue when nightly back ups happen. No errors seen when I did a manual download.

Error: %SSH-4-SSH2_UNEXPECTED_MSG: Unexpected message type has arrived. Terminating the connection from x.x.x.x

Device: Cisco WS-C3560E-48PD

IOS Version: c3560e-universalk9-mz.150-2.SE6.bin

What could be the fix for this?


Raghavendra Somiyani.

Level 8

This request has been marked as Implemented, however I am not finding it in release notes.  Can someone point me in the right direction?

Level 14

I too would like to know if this fix has been implemented, since (as ak47​ stated), this is not in the release notes.  NCM PM and/or Moderator, please jump in and clarify.

Level 18

Yes -- to my knowledge, NCM 7.4 and newer include this item.


Community Manager
Community Manager
Status changed to: Implemented