Andres Ortiz | 4 Apr 2012 19:42
Picon
Favicon

[rancid] flooded with false config change notice

Need some help with RANCID 2.3.4

I'm currently pulling Cisco devices running CATOS/IOS. I'm also using it to pull configs from Juniper devices, all works perfect. However the problem is when trying to pull configs from Cisco Nexus NX 7000 and HP Procruve 5200 series. Once I add them to the router.db, the script runs and downloads the current config as it should. My cronjob runs every hr and I get config changes every hr that are not happening. Not sure what to do. Any help is appreciated.

Thanks
CD
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Mickey Everts | 5 Apr 2012 22:39

[rancid] Extreme XOS and rancid-2.3.8

This is my first try at using rancid, but so far so good.  We have quite a few Extreme X460-48t switches running ExtremeXOS version 12.5 and above. Things mostly work, but there is some annoying behavior that appears be random.

 

Here is an example of the issue:

 

In the “networking router config diffs” email, it looks like this:

 

Index: configs/sw1-hq

===================================================================

retrieving revision 1.2

diff -U 4 -r1.2 sw1-hq

<at> <at> -9,8 +9,10 <at> <at>

  #Bootrom: 2.0.1.0

  #

  #

  #

+ show configuration

+ #

  # Module devmgr configuration.

  #

 

 

In the next email there would be a similar diff with this instead:

 

- show configuration

- #

 

 

 

And here is a the log.  Note that it’s not always the same switches affected. 

 

 

starting: Thu Apr 5 14:51:52 CDT 2012

 

 

 

Trying to get all of the configs.

sw1-lgtx: missed cmd(s): show configuration

sw3-lgtx: missed cmd(s): show configuration

sw4-lgtx: missed cmd(s): show configuration

=====================================

Getting missed routers: round 1.

sw4-lgtx: missed cmd(s): show configuration

sw3-lgtx: missed cmd(s): show configuration

sw1-lgtx: missed cmd(s): show configuration

=====================================

Getting missed routers: round 2.

sw4-lgtx: missed cmd(s): show configuration

sw1-lgtx: missed cmd(s): show configuration

=====================================

Getting missed routers: round 3.

All routers sucessfully completed.

 

cvs diff: Diffing .

cvs diff: Diffing configs

cvs commit: Examining .

cvs commit: Examining configs

Checking in configs/sw1-hq;

/usr/local/rancid/var/CVS/networking/configs/sw1-hq,v  <--  sw1-hq

new revision: 1.4; previous revision: 1.3

done

Checking in configs/sw4-lgtx;

/usr/local/rancid/var/CVS/networking/configs/sw4-lgtx,v  <--  sw4-lgtx

new revision: 1.6; previous revision: 1.5

done

 

ending: Thu Apr 5 14:53:46 CDT 2012

 

 

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Jonathan Mills | 9 Apr 2012 22:07
Favicon

[rancid] BNT help?

Does anyone have experience using rancid with a Blade Network 
Technologies (BNT) switch?  BNT is now owned by IBM, however.  Running a 
'show version' states the switch OS as:

"IBM Networking Operating System RackSwitch G8052"

Any advice would be much appreciated!

--

-- 
Jonathan Mills
Systems Administrator
Renaissance Computing Institute
UNC-Chapel Hill
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Jonathan Mills | 9 Apr 2012 22:23
Favicon

Re: [rancid] BNT help?

For instance, I can confirm that I am able to login to it, and get into 
enable mode, using /usr/libexec/rancid/clogin.  So, it's kinda like 
Cisco.  Where it fails, is that it can't answer all the commands that 
rancid wants to send.  I'm new to rancid, and I don't get how to manage 
(or filter?) the commands I want it to run.  Only things I really want 
it to do (all of which work, when I put them on the command like ( -c ) 
using clogin):

show version
show boot
show vlans
show running-config

--
Jonathan Mills
Systems Administrator
Renaissance Computing Institute
UNC-Chapel Hill

On 04/09/2012 04:07 PM, Jonathan Mills wrote:
> Does anyone have experience using rancid with a Blade Network
> Technologies (BNT) switch? BNT is now owned by IBM, however. Running a
> 'show version' states the switch OS as:
>
> "IBM Networking Operating System RackSwitch G8052"
>
> Any advice would be much appreciated!
>
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

James Baldwin | 9 Apr 2012 22:31
Gravatar

Re: [rancid] BNT help?

You should be able to make a copy of rancid to, for instance, bntrancid and modify the  <at> commandtable array to
only include the commands you want then add it to the %vendortable in rancid-fe.

On Apr 9, 2012, at 3:23 PM, Jonathan Mills wrote:

> For instance, I can confirm that I am able to login to it, and get into enable mode, using
/usr/libexec/rancid/clogin.  So, it's kinda like Cisco.  Where it fails, is that it can't answer all the
commands that rancid wants to send.  I'm new to rancid, and I don't get how to manage (or filter?) the
commands I want it to run.  Only things I really want it to do (all of which work, when I put them on the command
like ( -c ) using clogin):
> 
> show version
> show boot
> show vlans
> show running-config
> 
> --
> Jonathan Mills
> Systems Administrator
> Renaissance Computing Institute
> UNC-Chapel Hill
> 
> On 04/09/2012 04:07 PM, Jonathan Mills wrote:
>> Does anyone have experience using rancid with a Blade Network
>> Technologies (BNT) switch? BNT is now owned by IBM, however. Running a
>> 'show version' states the switch OS as:
>> 
>> "IBM Networking Operating System RackSwitch G8052"
>> 
>> Any advice would be much appreciated!
>> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss <at> shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Jonathan Mills | 9 Apr 2012 23:32
Favicon

Re: [rancid] BNT help?

James et al:

So I created a file, /usr/libexec/rancid/bntrancid, a copy of 
/usr/libexec/rancid/rancid, with a modified commandtable, which looks 
like this:

# Main
 <at> commandtable = (
         {'show version'                 => 'ShowVersion'},
         {'show vlan'                    => 'ShowVLAN'},
         {'show running-config'          => 'WriteTerm'},
         {'write term'                   => 'WriteTerm'},
);
# Use an array to preserve the order of the commands and a hash for mapping
# commands to the subroutine and track commands that have been completed.
 <at> commands = map(keys(%$_),  <at> commandtable);
%commands = map(%$_,  <at> commandtable);

I further edited /usr/libexec/rancid/rancid-fe thus:

%vendortable = (
     'agm'               => 'agmrancid',
     'alteon'            => 'arancid',
     'arista'            => 'arrancid',
     'avocent'           => 'avorancid',
     'baynet'            => 'brancid',
     'ibmbnt'            => 'bntrancid',

And in /var/rancid/mygroup/router.db, I've added a line containing

myhostname:ibmbnt:up

It almost works, but something is snagging.  The logs show the following:

=====================================
Getting missed routers: round 1.
8052.renci.xo: End of run not found
end
8264.renci.xo: End of run not found
end
8052.bbn.xo: End of run not found
end
8264.bbn.xo clogin error: Error: TIMEOUT reached
8264.bbn.xo: missed cmd(s): show version,write term,show 
running-config,show vlan
8264.bbn.xo: End of run not found
!
=====================================

--
Jonathan Mills
Systems Administrator
Renaissance Computing Institute
UNC-Chapel Hill

On 04/09/2012 04:31 PM, James Baldwin wrote:
> You should be able to make a copy of rancid to, for instance, bntrancid and modify the  <at> commandtable array
to only include the commands you want then add it to the %vendortable in rancid-fe.
>
> On Apr 9, 2012, at 3:23 PM, Jonathan Mills wrote:
>
>> For instance, I can confirm that I am able to login to it, and get into enable mode, using
/usr/libexec/rancid/clogin.  So, it's kinda like Cisco.  Where it fails, is that it can't answer all the
commands that rancid wants to send.  I'm new to rancid, and I don't get how to manage (or filter?) the
commands I want it to run.  Only things I really want it to do (all of which work, when I put them on the command
like ( -c ) using clogin):
>>
>> show version
>> show boot
>> show vlans
>> show running-config
>>
>> --
>> Jonathan Mills
>> Systems Administrator
>> Renaissance Computing Institute
>> UNC-Chapel Hill
>>
>> On 04/09/2012 04:07 PM, Jonathan Mills wrote:
>>> Does anyone have experience using rancid with a Blade Network
>>> Technologies (BNT) switch? BNT is now owned by IBM, however. Running a
>>> 'show version' states the switch OS as:
>>>
>>> "IBM Networking Operating System RackSwitch G8052"
>>>
>>> Any advice would be much appreciated!
>>>
>> _______________________________________________
>> Rancid-discuss mailing list
>> Rancid-discuss <at> shrubbery.net
>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

James Baldwin | 9 Apr 2012 23:50
Gravatar

Re: [rancid] BNT help?

Is the shell terminator the same as a Cisco? That is, is it using a # mark or a different terminator?

On Apr 9, 2012, at 3:23 PM, Jonathan Mills wrote:

> For instance, I can confirm that I am able to login to it, and get into enable mode, using
/usr/libexec/rancid/clogin.  So, it's kinda like Cisco.  Where it fails, is that it can't answer all the
commands that rancid wants to send.  I'm new to rancid, and I don't get how to manage (or filter?) the
commands I want it to run.  Only things I really want it to do (all of which work, when I put them on the command
like ( -c ) using clogin):
> 
> show version
> show boot
> show vlans
> show running-config
> 
> --
> Jonathan Mills
> Systems Administrator
> Renaissance Computing Institute
> UNC-Chapel Hill
> 
> On 04/09/2012 04:07 PM, Jonathan Mills wrote:
>> Does anyone have experience using rancid with a Blade Network
>> Technologies (BNT) switch? BNT is now owned by IBM, however. Running a
>> 'show version' states the switch OS as:
>> 
>> "IBM Networking Operating System RackSwitch G8052"
>> 
>> Any advice would be much appreciated!
>> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss <at> shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Jonathan Mills | 10 Apr 2012 00:04
Favicon

Re: [rancid] BNT help?

It is using a #

On Apr 9, 2012, at 5:50 PM, "James Baldwin" <jbaldwin <at> antinode.net> wrote:

> Is the shell terminator the same as a Cisco? That is, is it using a # mark or a different terminator?
> 
> On Apr 9, 2012, at 3:23 PM, Jonathan Mills wrote:
> 
>> For instance, I can confirm that I am able to login to it, and get into enable mode, using
/usr/libexec/rancid/clogin.  So, it's kinda like Cisco.  Where it fails, is that it can't answer all the
commands that rancid wants to send.  I'm new to rancid, and I don't get how to manage (or filter?) the
commands I want it to run.  Only things I really want it to do (all of which work, when I put them on the command
like ( -c ) using clogin):
>> 
>> show version
>> show boot
>> show vlans
>> show running-config
>> 
>> --
>> Jonathan Mills
>> Systems Administrator
>> Renaissance Computing Institute
>> UNC-Chapel Hill
>> 
>> On 04/09/2012 04:07 PM, Jonathan Mills wrote:
>>> Does anyone have experience using rancid with a Blade Network
>>> Technologies (BNT) switch? BNT is now owned by IBM, however. Running a
>>> 'show version' states the switch OS as:
>>> 
>>> "IBM Networking Operating System RackSwitch G8052"
>>> 
>>> Any advice would be much appreciated!
>>> 
>> _______________________________________________
>> Rancid-discuss mailing list
>> Rancid-discuss <at> shrubbery.net
>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> 
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Kenneth Lind | 16 Apr 2012 15:39
Picon
Favicon

Re: [rancid] Ignore updates to "AC Revision" for Cisco uBR7200

Corrected/hushed constant updates by creating new version/copy of Rancid
(rancid-noenv) which did not include the "ShowEnv" sub routine, updating
rancid-fe to include new rancid version, and updating router.db to include
host which was cycling "AC Revision":

Hostname:rancid-noenv:up

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

TAN Lists | 17 Apr 2012 13:02

[rancid] Issue with HP Procurve 2910-48G al

Hey All,

I'm fairly new to Rancid and inherited a setup with mainly HP switches. All of them work fine but 2 new switches i just added which are HP Procurve 2910-48G al (J9147A) running version W.14.49

When i add them to RANCID i get timeout errors in the logs, but clogin works fine to log me in.

A similar issue is described here http://www.gossamer-threads.com/lists/rancid/users/5203 (but its not exactly the same)

In debug mode, i get a login prompt, then nothing

Switches use TACACS on the same server as RANCID - all switches use SSH

Troubleshooting:
/usr/local/rancid/bin/clogin clswitch1
This works - logs me straight in as the RANCID user and i have full privileges and can run commands

----------------------------------------------------

/usr/local/rancid/bin/clogin -c "sh run" clswitch1
clswitch1# terminal length 0
Invalid input: 0
clswitch1# logout
Error: TIMEOUT reached

Then drops me back to a shell (I think this is where the whole issue lies)

----------------------------------------------------

When i add the switch to the main config of RANCID
clswitch1:hp:up

When i run /usr/local/rancid/bin/rancid-run i get

<OMITTED>
Trying to get all of the configs.
clswitch1 clogin error: Error: TIMEOUT reached
clswitch1: missed cmd(s): show tech transceivers,show module,show config status,show system-inform
Trying to get all of the configs.
clswitch1 clogin error: Error: TIMEOUT reached
ation,show system information,show stack,show version,show flash,write term,show config files
clswitch1: End of run not found
;
=====================================
<OMITTED>
Rinse repeat for all 4 rounds

I looked into using hlogin and when specifying the password, it still hung at the enter password prompt

I really could use some help on this, I've been researching all done and can't get anywhere

I'm also finding that if i play with this too much, eventually the switch locks me out (SSH connection returns identification failure). If i reload it - its fine - if i dont initiate connections from RANCID its fine for over 72 hours, but the second i start doing logins through RANCID, the lockouts start - which is really weird

I read some things about stacking being an issue, so i have changed the config to "no stack" (we dont need it anyway)

Thoughts much appreciated guys, i look forward to your thoughts to get to the bottom of this one

Thanks

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Gmane