Discussion:
[rancid] Cisco connect through multiple devices?
Andrei Sabau
2014-01-07 10:06:01 UTC
Permalink
Hello. I am in a situation.

I need RANCID to get the router information through another router. Both
are cisco, both are telnet-able, both are managed.

Mainly, it's something like this :
Rancid Server --> Gateway Router -> Cisco switch1
-> Cisco
switch2
-> Cisco
switch3


How could this be implemented? A custom wrapper with a script?

Any help will be very appreciated ! :D
Hughes, Doug
2014-01-07 14:28:00 UTC
Permalink
I don't understand the question. Are you saying that you cannping ping cisco1, cisco2, or cisco3 through gateway? You don't have routing enabled?

From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Andrei Sabau
Sent: Tuesday, January 07, 2014 5:06 AM
To: rancid-***@shrubbery.net
Subject: [rancid] Cisco connect through multiple devices?

Hello. I am in a situation.
I need RANCID to get the router information through another router. Both are cisco, both are telnet-able, both are managed.
Mainly, it's something like this :
Rancid Server --> Gateway Router -> Cisco switch1
-> Cisco switch2
-> Cisco switch3

How could this be implemented? A custom wrapper with a script?

Any help will be very appreciated ! :D
Hughes, Doug
2014-01-07 14:40:24 UTC
Permalink
Why can't you just connect the management Ethernet cable for switch1-3 up to a network that is reachable by rancid host?
That's the best solution.

From: Andrei Sabau [mailto:***@gmail.com]
Sent: Tuesday, January 07, 2014 9:38 AM
To: Hughes, Doug
Cc: rancid-***@shrubbery.net
Subject: Re: [rancid] Cisco connect through multiple devices?

I need to tell RANCID that it can access and manage X internal ip's through the router Y. Both X ips are cisco managed switches/routers and Y is a cisco router as well.
I've tried this solution after some searching : http://www.shrubbery.net/pipermail/rancid-discuss/2004-November/000905.html but apparently i can clogin but rancid-run gives me timeouts in the log.

On Tue, Jan 7, 2014 at 4:28 PM, Hughes, Doug <***@deshawresearch.com<mailto:***@deshawresearch.com>> wrote:
I don't understand the question. Are you saying that you cannping ping cisco1, cisco2, or cisco3 through gateway? You don't have routing enabled?

From: rancid-discuss-***@shrubbery.net<mailto:rancid-discuss-***@shrubbery.net> [mailto:rancid-discuss-***@shrubbery.net<mailto:rancid-discuss-***@shrubbery.net>] On Behalf Of Andrei Sabau
Sent: Tuesday, January 07, 2014 5:06 AM
To: rancid-***@shrubbery.net<mailto:rancid-***@shrubbery.net>
Subject: [rancid] Cisco connect through multiple devices?

Hello. I am in a situation.
I need RANCID to get the router information through another router. Both are cisco, both are telnet-able, both are managed.
Mainly, it's something like this :
Rancid Server --> Gateway Router -> Cisco switch1
-> Cisco switch2
-> Cisco switch3
How could this be implemented? A custom wrapper with a script?

Any help will be very appreciated ! :D
Andrei Sabau
2014-01-07 15:02:08 UTC
Permalink
I cannot ping the host from the rancid server to the cisco switches. Only
the Gateway, hence i used the method in the link.


On Tue, Jan 7, 2014 at 4:56 PM, Hughes, Doug <
If you can ping the host, and clogin works, then you don’t need an
intermediary telnet.. There’s something else going on that needs to be
debugged.
*Sent:* Tuesday, January 07, 2014 9:50 AM
*To:* Hughes, Doug
*Subject:* Re: [rancid] Cisco connect through multiple devices?
It is the best, however it is not possible. Only if it were that easy.
My issue is that i can clogin in it but cannot rancid-run the host. It
Timeout's.
On Tue, Jan 7, 2014 at 4:40 PM, Hughes, Doug <
Why can’t you just connect the management Ethernet cable for switch1-3 up
to a network that is reachable by rancid host?
That’s the best solution.
*Sent:* Tuesday, January 07, 2014 9:38 AM
*To:* Hughes, Doug
*Subject:* Re: [rancid] Cisco connect through multiple devices?
I need to tell RANCID that it can access and manage X internal ip's
through the router Y. Both X ips are cisco managed switches/routers and Y
is a cisco router as well.
http://www.shrubbery.net/pipermail/rancid-discuss/2004-November/000905.htmlbut apparently i can clogin but rancid-run gives me timeouts in the log.
On Tue, Jan 7, 2014 at 4:28 PM, Hughes, Doug <
I don’t understand the question. Are you saying that you cannping ping
cisco1, cisco2, or cisco3 through gateway? You don’t have routing enabled?
*Sent:* Tuesday, January 07, 2014 5:06 AM
*Subject:* [rancid] Cisco connect through multiple devices?
Hello. I am in a situation.
I need RANCID to get the router information through another router. Both
are cisco, both are telnet-able, both are managed.
Rancid Server --> Gateway Router -> Cisco switch1
-> Cisco switch2
-> Cisco switch3
How could this be implemented? A custom wrapper with a script?
Any help will be very appreciated ! :D
Andrei Sabau
2014-01-07 14:37:35 UTC
Permalink
I need to tell RANCID that it can access and manage X internal ip's through
the router Y. Both X ips are cisco managed switches/routers and Y is a
cisco router as well.

I've tried this solution after some searching :
http://www.shrubbery.net/pipermail/rancid-discuss/2004-November/000905.htmlbut
apparently i can clogin but rancid-run gives me timeouts in the log.


On Tue, Jan 7, 2014 at 4:28 PM, Hughes, Doug <
I don’t understand the question. Are you saying that you cannping ping
cisco1, cisco2, or cisco3 through gateway? You don’t have routing enabled?
*Sent:* Tuesday, January 07, 2014 5:06 AM
*Subject:* [rancid] Cisco connect through multiple devices?
Hello. I am in a situation.
I need RANCID to get the router information through another router. Both
are cisco, both are telnet-able, both are managed.
Rancid Server --> Gateway Router -> Cisco switch1
-> Cisco switch2
-> Cisco switch3
How could this be implemented? A custom wrapper with a script?
Any help will be very appreciated ! :D
Daniel Tuecks
2014-01-07 14:32:59 UTC
Permalink
Hi Andrei,

have a look at this patch:
http://www.shrubbery.net/pipermail/rancid-discuss/2006-May/001490.html.
This might work for you ( I use this method to get the config from asa
contexts ).

Regards.
Daniel
I don’t understand the question. Are you saying that you cannping ping
cisco1, cisco2, or cisco3 through gateway? You don’t have routing enabled?
*Sent:* Tuesday, January 07, 2014 5:06 AM
*Subject:* [rancid] Cisco connect through multiple devices?
Hello. I am in a situation.
I need RANCID to get the router information through another router. Both
are cisco, both are telnet-able, both are managed.
Rancid Server --> Gateway Router -> Cisco switch1
-> Cisco switch2
-> Cisco switch3
How could this be implemented? A custom wrapper with a script?
Any help will be very appreciated ! :D
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Muhammad Shoaib
2014-01-09 16:51:45 UTC
Permalink
Good morning,

I had a similar situation in Nov 2013 and the resolution requires a patch to rancid distro. I have tried the old patches out there but nothing worked.

Heasley responded that old patches out there need to be pulled in to the newer version to make it work.

I highly appreciate if someone knowledgeable can update the patch for the latest version of rancid.

http://www.shrubbery.net/pipermail/rancid-discuss/2013-November/007307.html

Thanks in advance

-Muhammad

Loading...