[rancid] Issue with rancid and Juniper devices

Kieran Murphy daffster at gmail.com
Tue Jan 15 10:13:25 UTC 2013


Judging by that device prompt, it looks like you're trying to login to a
Netscreen device.

So you'll need to use device type netscreen, which uses nrancid and nlogin


On Mon, Jan 14, 2013 at 2:36 PM, Agustin Roca <agustin.roca at globant.com>wrote:

> Getting Timeout after login.
>
> rancid]$ jlogin -d -c 'get system version' ar-device
>
>
> expect: does "Telmex:AR-BADC-FS140-01(M)-> " (spawn_id exp6) match regular
> expression "(\r\n|\n)"? no
> "^[^ ]+>"? yes
> expect: set expect_out(0,string) "Telmex:AR-BADC-FS140-01(M)->"
> expect: set expect_out(spawn_id) "exp6"
> expect: set expect_out(buffer) "Telmex:AR-BADC-FS140-01(M)->"
> send: sending "set cli complete-on-space off\r" to { exp6 }
>
> expect: does " " (spawn_id exp6) match regular expression
> "Telmex:AR-BADC-FS140-01(M)-[#>]"? no
> set cli complete-on-space off
>                                 ^------unknown keyword cli
> Telmex:AR-BADC-FS140-01(M)->
> expect: does " set cli complete-on-space
> off\r\n                                ^------unknown keyword
> cli\r\nTelmex:AR-BADC-FS140-01(M)-> " (spawn_id exp6) match regular
> expression "Telmex:AR-BADC-FS140-01(M)-[#>]"? no
> expect: timed out
>
> Error: TIMEOUT reached
> write() failed to write anything - will sleep(1) and retry...
>
>
> My cloginrc for that device is:
> add user ar-*          rancid
> add password ar-*      {passwd}
> add method *            ssh
> add autoenable ar-*    1
>
> Any hint will be aprreciated.
>
> [image: http://www.globant.com/images/globant_130x25.gif]<http://www.globant.com/>
>
> *Agustin Roca*
> GIST Information Security Analyst
> CEHv7
>
> AR: +54 11 4109 1700 ext. 8098
> Mobile: +15 5022 3042
> agustin.roca at globant.com
>
> [image: http://www.globant.com/images/pxtransp.gif]
> *Having the right people is more important than having the right tools.
> “Having the right people” requires hiring the right people, investing in
> them, and retaining them – three processes we often get wrong.*
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20130115/d45ed47c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1960 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20130115/d45ed47c/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 168 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20130115/d45ed47c/attachment.png>


More information about the Rancid-discuss mailing list