[rancid] RANCID with Nexus 7000 VDCs

178 views
Skip to first unread message

Jeremy Bresley

unread,
Apr 22, 2010, 5:58:10 PM4/22/10
to rancid-...@shrubbery.net
Anybody using RANCID to archive the configurations of VDCs on an N7K?

We are able to connect to the base system correctly, but the VDCs are
not archiving correctly. We can clogin to the device and run various
commands, but rancid-run against the VDCs doesn't complete.

The user being used for rancid to login has been created with role
vdc-admin in the VDC configuration.

The log file shows:
Getting missed routers: round 1.
distsw01: missed cmd(s): show module,show license,dir usb1:,dir
debug:,show debug,show version build-info all,show cores vdc-all,show
vtp status,show environment fan,show module xbar,show environment
power,show license host-id,show inventory,dir usb2:,show vlan,dir
bootflash:,dir volatile:,dir slot0:,show processes log vdc-all,show
environment clock,dir logflash:,show license usage,show
running-config,show system redundancy status,show environment
temperature,show boot
distsw01: End of run not found
!Software: system compile time: 3/21/2009 12:00:00 [04/05/2009 23:43:35]

The only differences I see between the base and the VDCs as far as
prompts go is that the VDCs display as:
coresw01-distsw01#
The base system displays as:
coresw01#

What steps can I do to troubleshoot why this is failing? Has anybody
else successfully used RANCID on an N7K VDC?

Thanks.

Jeremy
_______________________________________________
Rancid-discuss mailing list
Rancid-...@shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

--
You received this message because you are subscribed to the Google Groups "rancid-discuss" group.
To post to this group, send email to rancid-...@googlegroups.com.
To unsubscribe from this group, send email to rancid-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rancid-discuss?hl=en.

Ryan West

unread,
Apr 22, 2010, 6:18:48 PM4/22/10
to Jeremy Bresley, rancid-...@shrubbery.net
Jeremy,
You'll want to check out the usercmd modification to make this happen.

Hopefully this will point you in the right direction.

http://www.shrubbery.net/pipermail/rancid-discuss/2006-May/001490.html

-ryan

Ian Stong

unread,
Apr 27, 2010, 8:48:25 AM4/27/10
to rancid-...@shrubbery.net
Hi,

I'm using the nxrancid file and am able to successfully connect to the
7k using nxrancid -d device_ip. However when I run rancid via cron for
all my devices, including this one, it doesn't work. In the router.db
file I added 7k_ip:cisco:up but I'm not sure that is enough to tell
rancid to use the nxrancid file versus the standard cisco rancid file. I
read the router.db(5) man page and there is no mention of how to do this
other than specifying Cisco for the type.

Please advise on how to tell rancid to use the nxrancid file for this
device.


Thanks,

Ian

Ryan West

unread,
Apr 27, 2010, 8:52:47 AM4/27/10
to Ian Stong, rancid-...@shrubbery.net
Ian,

> -----Original Message-----
> Sent: Tuesday, April 27, 2010 8:48 AM
> To: rancid-...@shrubbery.net
> Subject: [rancid] Re: RANCID with Nexus 7000
>
> Hi,
>
> I'm using the nxrancid file and am able to successfully connect to the
> 7k using nxrancid -d device_ip. However when I run rancid via cron for
> all my devices, including this one, it doesn't work. In the router.db
> file I added 7k_ip:cisco:up but I'm not sure that is enough to tell
> rancid to use the nxrancid file versus the standard cisco rancid file. I
> read the router.db(5) man page and there is no mention of how to do this
> other than specifying Cisco for the type.
>

You'll need to adjust your rancid-fe file and call to it with something like 7k_ip:nexus:up, assuming nexus is how you have it defined in rancid-fe.

-ryan

Jeremy Bresley

unread,
Apr 27, 2010, 11:11:02 AM4/27/10
to rancid-...@shrubbery.net, Ian Stong
On 4/27/2010 7:52 AM, Ryan West wrote:
> Ian,
>
>
>> -----Original Message-----
>> Sent: Tuesday, April 27, 2010 8:48 AM
>> To: rancid-...@shrubbery.net
>> Subject: [rancid] Re: RANCID with Nexus 7000
>>
>> Hi,
>>
>> I'm using the nxrancid file and am able to successfully connect to the
>> 7k using nxrancid -d device_ip. However when I run rancid via cron for
>> all my devices, including this one, it doesn't work. In the router.db
>> file I added 7k_ip:cisco:up but I'm not sure that is enough to tell
>> rancid to use the nxrancid file versus the standard cisco rancid file. I
>> read the router.db(5) man page and there is no mention of how to do this
>> other than specifying Cisco for the type.
>>
>>
> You'll need to adjust your rancid-fe file and call to it with something like 7k_ip:nexus:up, assuming nexus is how you have it defined in rancid-fe.
>
> -ryan
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-...@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
Use type cisco-nx for Nexus gear. This will have nxrancid run instead
of rancid.

Jeremy

Ian Stong

unread,
Apr 28, 2010, 8:33:48 AM4/28/10
to rancid-...@shrubbery.net
Using the nxrancid file I still had some issues getting it to work with
the Nexus 5020. I eventually got it working by commenting out several
commands it tries to run by default. The one command that I do care
about that I had to comment out was the show version command.

Running nxrancid -d host_ip with the show version uncommented resulted
in the text "missed cmd(s): show license usage" - which was the very
next uncommented command in the file. I commented that out and the next
line was then the missed command. Eventually I figured out it was the
very first command "show version" that was causing the missed cmd(s)
message.

What troubleshooting steps are there to determine why the show version
command seems to be causing an issue? For what it's worth I ran
nxrancid -d with the show version uncommented and the raw output
included information on the other commands including the sh license
usage output that was listed as a missed command.

For now I have show version commented out and rancid has created CVS
entries for the other commands outputs which is a great start.


Thanks,

Ian Stong

john heasley

unread,
Apr 28, 2010, 1:23:38 PM4/28/10
to Ian Stong, rancid-...@shrubbery.net
Wed, Apr 28, 2010 at 08:33:48AM -0400, Ian Stong:
> Using the nxrancid file I still had some issues getting it to work with
> the Nexus 5020. I eventually got it working by commenting out several
> commands it tries to run by default. The one command that I do care
> about that I had to comment out was the show version command.
>
> Running nxrancid -d host_ip with the show version uncommented resulted
> in the text "missed cmd(s): show license usage" - which was the very
> next uncommented command in the file. I commented that out and the next
> line was then the missed command. Eventually I figured out it was the
> very first command "show version" that was causing the missed cmd(s)
> message.

you have the nexus bug where the next cli prompt is mingled with the
last line of the show version. please complain to the cisco TAC.
Reply all
Reply to author
Forward
0 new messages