Discussion:
[rancid] Rancid and Juniper routers
Marek Keerand
2006-07-22 20:01:24 UTC
Permalink
Hello!

I want to get configs from juniper M7i router with rancid.
I've added following line to .cloginrc file:

add user my_junipers_address telnet_username
add password my_junipers_address telnet_password

When i run jlogin my_junipers_address, i get following error:

Error: Check your password for my_junipers_address.

So i'm doing something wrong. Can anybody please explain, what are
correct actions to get config data from juniper routers.

Thanks in advance,
Marek
Mordechai T. Abzug
2006-07-24 02:05:53 UTC
Permalink
Post by Marek Keerand
I want to get configs from juniper M7i router with rancid.
add user my_junipers_address telnet_username
add password my_junipers_address telnet_password
Error: Check your password for my_junipers_address.
So i'm doing something wrong. Can anybody please explain, what are
correct actions to get config data from juniper routers.
What you describe SHOULD work.

Does the username or password include any metacharacters? If yes, you
might want to try:

add password my_junipers_address {telnet_password}

If that doesn't help, and you really are using telnet, fire up a
sniffer and see what is actually going across your wire.

- Morty
Mark Loveley
2006-07-24 09:10:09 UTC
Permalink
Post by Marek Keerand
I want to get configs from juniper M7i router with rancid.
add user my_junipers_address telnet_username
add password my_junipers_address telnet_password
I'm sure we needed to add this to the cloginrc for our junipers

add noenable my_junipers_address 1

Thanks
Mark
john heasley
2006-07-24 16:30:15 UTC
Permalink
Post by Mark Loveley
Post by Marek Keerand
I want to get configs from juniper M7i router with rancid.
add user my_junipers_address telnet_username
add password my_junipers_address telnet_password
I'm sure we needed to add this to the cloginrc for our junipers
add noenable my_junipers_address 1
jlogin ignores the enable related variables, since the juniper has no
enable concept.
Marek Keerand
2006-07-24 09:55:22 UTC
Permalink
Problem solved. My juniper uses radius to authenticate users. It first
asks password of a user witch runs rancid. Somehow jlogin can't handle
this and gives error (although clogin works ok). So i had to create
special user rancid in radius server db and use it in cloginrc.

Big thanks to all!
Marek

-----Original Message-----
From: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Mark
Loveley
Sent: Monday, July 24, 2006 12:10 PM
To: rancid-***@shrubbery.net
Subject: [rancid] Re: Rancid and Juniper routers
Post by Marek Keerand
I want to get configs from juniper M7i router with rancid.
add user my_junipers_address telnet_username add password
my_junipers_address telnet_password
I'm sure we needed to add this to the cloginrc for our junipers

add noenable my_junipers_address 1

Thanks
Mark
john heasley
2006-07-24 17:10:40 UTC
Permalink
Post by Marek Keerand
Problem solved. My juniper uses radius to authenticate users. It first
asks password of a user witch runs rancid. Somehow jlogin can't handle
this and gives error (although clogin works ok). So i had to create
special user rancid in radius server db and use it in cloginrc.
That should not be. The code makes no assumption or condition on whether
a username prompt is received.

Please explain the scenario more precisely.
Post by Marek Keerand
Big thanks to all!
Marek
-----Original Message-----
Loveley
Sent: Monday, July 24, 2006 12:10 PM
Subject: [rancid] Re: Rancid and Juniper routers
Post by Marek Keerand
I want to get configs from juniper M7i router with rancid.
add user my_junipers_address telnet_username add password
my_junipers_address telnet_password
I'm sure we needed to add this to the cloginrc for our junipers
add noenable my_junipers_address 1
Thanks
Mark
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...