Discussion:
[rancid] Login to Juniper J-series work, commands do not.
Andrei Sabau
2014-04-17 11:47:51 UTC
Permalink
I have an issue where jlogin works when connecting to a juniper device, but
if i run rancid-run or jrancid -c 'command' it gets stuck after the prompt.

The last lines are :

expect: does "***@BGP-CORE-0> " (spawn_id exp4) match regular expression
"(\r\n|\n)"? (No Gate, RE only) gate=yes re=no
"^[^ ]+>"? Gate "*>"? gate=yes re=yes
expect: set expect_out(0,string) "***@BGP-CORE-0>"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) "***@BGP-CORE-0>"
Gate keeper glob pattern for '***@BGP-CORE-0[#>]' is '***@BGP-CORE-0?'.
Activating booster.

expect: does " " (spawn_id exp4) match regular expression
"***@BGP-CORE-0[#>]"?
Gate "***@BGP-CORE-0?"? gate=no
expect: timed out

Error: TIMEOUT reached

I set the timeout to 20 seconds so it'll die. The command was 'show
version'. But if i run jlogin without command i can do anything on the
device.

Any ideas?

Loading...