Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Highlighted
Community Member

Nexus 5k: CLI outputs truncated via remote script/SSH

Switch Software version:  7.0(5)N1(1) & 5.2(1)N1(8b)

Executing specific show commands through an external server can result in output being truncated or connection to be abruptly closed.

Steps:

Create connection & then firing multiple command on the connection using Java Lib(GanyMed/JSCH)

  1. Create a new connection
  2. Loop
    1. Create Session
    2. Fire command (We receive FIN, while getting data)
    3. Close Session.


java.io.IOException: Cannot read full block, EOF reached.
at ch.ethz.ssh2.crypto.cipher.CipherInputStream.getBlock(CipherInputStream.java:96)
at ch.ethz.ssh2.crypto.cipher.CipherInputStream.read(CipherInputStream.java:125)
at ch.ethz.ssh2.transport.TransportConnection.receiveMessage(TransportConnection.java:234)
at ch.ethz.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:721)
at ch.ethz.ssh2.transport.TransportManager$1.run(TransportManager.java:493)
at java.lang.Thread.run(Thread.java:748)

Please advise solution.

686
Views
0
Helpful
0
Replies
CreatePlease to create content