cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
913
Views
0
Helpful
3
Comments
afajri
Cisco Employee
Cisco Employee

Hi Expert, 

I got this error when I try to sync-from from one of my device:

anthony@ncs# devices device mv-lab sync-from 
result false
info External error in the NED implementation for device mv-lab: read timeout after 20 seconds, blocked on "\r\n" when waiting for "Continue\\?\\[confirm\\]" | "Are you sure? \\[Yes|No\\]:" | "\\A[^\\(#|>|%) ]+(#|>|%)[ ]?$"

/var/log/ncs/ncs-java-vm.log


<WARN> 08-Jan-2020::17:22:54.032 NavuContextBase Ned-Worker-Thread-(cisco-staros-cli-5.22:cisco-staros-cli-5.22)-0: - No case selected and no default
<WARN> 08-Jan-2020::17:22:54.032 NavuContextBase Ned-Worker-Thread-(cisco-staros-cli-5.22:cisco-staros-cli-5.22)-0: - No case selected and no default
<ERROR> 08-Jan-2020::17:23:23.003 NedWorker Ned-Worker-Thread-(cisco-staros-cli-5.22:cisco-staros-cli-5.22)-0: - NedWorker error for ned_get_trans_id
com.tailf.ned.SSHSessionException: read timeout after 20 seconds, blocked on "\r\n" when waiting for "Continue\\?\\[confirm\\]" | "Are you sure? \\[Yes|No\\]:" | "\\A[^\\(#|>|%) ]+(#|>|%)[ ]?$"
at com.tailf.packages.ned.nedcom.connector.SSHSessionExt.expect(SSHSessionExt.java:160)
at com.tailf.ned.SSHSession.expect(SSHSession.java:545)
at com.tailf.ned.SSHSession.expect(SSHSession.java:528)
at com.tailf.packages.ned.staros.CiscoStarosNedCli.executeShowCommand(CiscoStarosNedCli.java:1344)
at com.tailf.packages.ned.staros.CiscoStarosNedCli.getTransId(CiscoStarosNedCli.java:1033)
at com.tailf.ned.NedWorker.dorun(NedWorker.java:1911)
at com.tailf.ned.NedWorker.run(NedWorker.java:315)

question: what command is triggered (by NSO) during "sync-from" command (that may trigger this error)?

 

I SSH to the device directly and i didn't get Continue\\?\\[confirm\\] prompt

 

 

3 Comments
afajri
Cisco Employee
Cisco Employee

as per com.tailf.packages.ned.staros.CiscoStarosNedCli.executeShowCommand(CiscoStarosNedCli.java:1344)

    private String executeShowCommand(NedWorker worker, String showCommand,
            boolean isCheckSum)
            throws IOException, SSHSessionException, NedException {
        setReadTimeout(worker);
        session.print(showCommand + "\n");
        session.expect(showCommand, worker);
        if (isCheckSum) {
            session.expect("Generating configuration ...", worker);
        }
        NedExpectResult expectRes = session.expect(PLW_EXEC_PROMPT, worker);
        if (expectRes.getHit() == 1) {

 

it looks like this CLI is causing error:

anthony@ncs# devices device mv-lab live-status exec show config checksum
Error: External error in the NED implementation for device mv-lab: read timeout after 20 seconds, blocked on "\r\r\n  Generating configuration ...\r\n" when waiting for "Continue\\?\\[confirm\\]" | "Are you sure? \\[Yes|No\\]:" | "\\A.*\\(.*\\)(#|>|%)[ ]?$" | "\\A[^\\(#|>|%) ]+(#|>|%)[ ]?$"

when I run the command directly on the device, i didnt get error. but the output is coming after 20s

[local]mv-asr5k# show config checksum
Wednesday January 08 15:05:59 PST 2020
  Generating configuration ...
  Configuration checksum:       06426ee16aad86e7858f92a73d10b4fd
[local]mv-asr5k# time
Wednesday January 08 15:06:33 PST 2020

question: is there any way to increase NSO timer (of waiting an output)?

vleijon
Cisco Employee
Cisco Employee
First of all, you probably want to turn on ned-traces for this kind of troubleshooting. Second, yes, you have both read-timeout and write-timeout available on the device (as well as in global-settings).
afajri
Cisco Employee
Cisco Employee

thanks @vleijon  - increasing read timeout solve my problem

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: