[rancid] Re: rancid and Alcatel-Lucent OmniSwitch 6850

David Newman dnewman at networktest.com
Wed Jan 7 19:36:25 UTC 2009


On 1/7/09 11:09 AM, Kevin Turner wrote:
> David,
> 
> If the .raw file is complete, but the .new file is not; apparently part of
> the needed output is getting erased when the .new file is created. It may be
> due to a difference in the alpha version of RANCID.
> 
> You can try using the attached version of orancid that will only execute '
> show configuration snapshot all' to see if it works. It won't give you the
> extra convenient information, but it will eliminate some commands to see if
> it makes a difference.
> 
> Hopefully, someone more knowledgeable on the .new file creation vs .raw file
> process will add some input.

Thanks, Kevin. "rancid-run" produced an even more truncated version of
the config file (pasted below).

Running "env NOPIPE=y orancid -d 1.2.3.4" again produced a complete
config file in the .raw file, and truncated output in the .new file
(similar to that from rancid-run).

Moving from 2.3.2a7 (from FreeBSD ports) to 2.3.2a9 might be worth
trying but I have two concerns about that:

1. I don't know which version of 2.3.2 Alexander used to produce his
scripts, so it might not make a difference; and

2. I also don't know whether installing from source would use the same
file locations as the FreeBSD port. Presumably there are compile-time
options to set this, but I haven't looked yet.

Thanks in advance for any suggested next steps.

dn

from rancid-run:

Index: configs/1.2.3.4
===================================================================
retrieving revision 1.2
diff -u -4 -r1.2 1.2.3.4
@@ -1,12 +1,7 @@
  !RANCID-CONTENT-TYPE: alcatel
  !
- !Cfg: Running configuration and saved configuration are identical
- !
  !
  !
  !
- !
- !
- !
  !
  !! Stack Manager :






> 
> 
> Kevin
> 
> -----Original Message-----
> From: David Newman [mailto:dnewman at networktest.com] 
> Sent: Tuesday, January 06, 2009 7:30 PM
> To: Kevin Turner
> Cc: rancid-discuss at shrubbery.net
> Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850
> 
> On 1/6/09 3:37 PM, Kevin Turner wrote:
>> David,
>>
>> Apparently, you are using one of the alpha versions of RANCID. 
> 
> Yes. This is on 2.3.2a7, which is from the rancid-devel port on FreeBSD.
> 
>> Rancid-fe has
>> changed in the alpha versions. So, yes add "'alcatel'           =>
>> 'orancid'," instead of the line I gave you to rancid-fe.
> 
> ok, done
> 
>> Also, indeed you are seeing the output for "show configuration status";
>> however, you should also see the output of more commands including "show
>> configuration snapshot all". The script seems to be stopping for some
>> reason. It may may due to a change in the alpha version of RANCID. I am
>> using the current version 2.3.1
>>
>> Try running the following debug command from the directory 'orancid' is
>> located. 
>>
>> env NOPIPE=y orancid -d <device name or IP address>
>>
>> This will produce devicename.raw and and devicename.new files in the 
>> current directory. The .raw file will have more output to examine for
>> errors.
> 
> orancid and ologin are in /usr/local/libexec/rancid, which the rancid
> user does not have write access to.
> 
> Instead I ran this from the rancid user's home directory (on this box
> it's /usr/local/etc/rancid). (Also, I needed to add
> /usr/local/libexec/rancid to the rancid user's path, which I've done
> permanently.)
> 
> The output of the .new file looks like the "show configuration status,"
> as before. The output of the .raw file has all the output from all
> commands, including the switch config.
> 
> So, unclear why rancid-run isn't picking up the config when manually
> running orancid does.
> 
> I have not posted any log output because everything looks "normal" but
> if there's any other info I can provide for debugging please let me know.
> 
> thanks again
> 
> dn
> 
> 
> 
> 
> 
>> Kevin
>>
>> -----Original Message-----
>> From: David Newman [mailto:dnewman at networktest.com] 
>> Sent: Tuesday, January 06, 2009 5:49 PM
>> To: Kevin Turner
>> Cc: rancid-discuss at shrubbery.net
>> Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850
>>
>> On 1/5/09 7:24 AM, Kevin Turner wrote:
>>> David,
>>>
>>> I have attached the two scripts that I use to backup our 6850's.
>> Thanks, Kevin!
>>
>>> Also, add the line below to rancid-fe
>>>
>>> elsif ($vendor =~ /^alcatel$/i)         { exec('orancid', $router); }
>> OK, I've added that.
>>
>> Would adding this to the vendortable section do the same thing?:
>>
>>     'alcatel'           => 'orancid',
>>
>>
>>> The attached scripts are slight settings modifications of scripts
>> published
>>> by Alexander Bochmann (who deserves all the credit).
>>>
>>> I have also CC'd the discussion board since I have had other requests for
>>> this information.
>>>
>>> Let me know whether they work for you.
>> orancid runs, but I think it executes "show configuration status"
>> instead of "show configuration snapshot all".
>>
>> All I get for a device config is the following:
>>
>> !RANCID-CONTENT-TYPE: alcatel
>> !
>> !Cfg: Running configuration and saved configuration are identical
>> !
>> !
>> !
>> !
>> !
>> !
>> !
>> !
>> !! Stack Manager :
>>
>> That's it, all 137 bytes of it. That looks like the output from "show
>> configuration status" rather than the device config.
>>
>> How to tweak orancid so that it uses "show configuration snapshot all"?
>>
>> thanks again
>>
>> dn
>>
>>
>>
>>
>>> Kevin 
>>>
>>> -----Original Message-----
>>> From: David Newman [mailto:dnewman at networktest.com] 
>>> Sent: Sunday, January 04, 2009 2:55 PM
>>> To: Kevin Turner
>>> Subject: Re: rancid and Alcatel-Lucent OmniSwitch 6850
>>>
>>> On 1/4/09 6:43 AM, Kevin Turner wrote:
>>>> Hello David,
>>>>
>>>> I found scripts in the message archives that I had to modify slightly to
>>>> work with the 6850. I'll be glad to send these to you tomorrow morning
>>>> (Eastern time) when I am in the office again.
>>> Thanks very much! I appreciate it.
>>>
>>> dn
>>>
>>>
>>>> Kevin Turner
>>>>
>>>> -----Original Message-----
>>>> From: David Newman [mailto:dnewman at networktest.com] 
>>>> Sent: Friday, January 02, 2009 4:32 PM
>>>> To: kevin_turner at syncglobal.net
>>>> Subject: rancid and Alcatel-Lucent OmniSwitch 6850
>>>>
>>>> Hi Kevin,
>>>>
>>>> Where did you find the rancid patches for Alcatel-Lucent OmniSwitch
>>>> 6850? Did these work for you?
>>>>
>>>> I've got a couple of these to look after as well.
>>>>
>>>> Many thanks, and happy 2009.
>>>>
>>>> dn
>>>>
>>>>
>>>>
>>>>
>>>>
>>
>>
>>
> 



More information about the Rancid-discuss mailing list