Discussion:
[rancid] RANCID with Nexus 7000 VDCs
Jeremy Bresley
2010-04-22 21:58:10 UTC
Permalink
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
Ryan West
2010-04-22 22:18:48 UTC
Permalink
Jeremy,
-----Original Message-----
Sent: Thursday, April 22, 2010 5:58 PM
Subject: [rancid] RANCID with Nexus 7000 VDCs
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.
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
coresw01-distsw01#
coresw01#
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
2010-04-27 12:48:25 UTC
Permalink
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
2010-04-27 12:52:47 UTC
Permalink
Ian,
-----Original Message-----
Sent: Tuesday, April 27, 2010 8:48 AM
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
2010-04-27 15:11:02 UTC
Permalink
Post by Ryan West
Ian,
-----Original Message-----
Sent: Tuesday, April 27, 2010 8:48 AM
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
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
2010-04-28 12:33:48 UTC
Permalink
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
2010-04-28 17:23:38 UTC
Permalink
Post by 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.
Post by Ian Stong
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
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...