Saulo Zimbaro | 19 Jun 2013 20:04
Picon

[rancid] ignoring flash memory changes

It´s possible to ignoring memory changes in rancid backups?

Index: configs/csfw-asa-office01

===================================================================
retrieving revision 1.239
diff -U 4 -r1.239 csfw-asa-office01
<at> <at> -30,9 +30,9 <at> <at>
  !Flash:   123  11348300    Feb 21 2011 16:17:54  asdm-621.bin
  !Flash:     3  4096        Dec 31 2002 22:03:48  log
  !Flash:    10  4096        Dec 31 2002 22:03:58  crypto_archive
  !Flash:    11  4096        Dec 31 2002 22:04:32  coredumpinfo
- !Flash:    12  43          Jun 19 2013 09:00:27  coredumpinfo/coredump.cfg
+ !Flash:    12  43          Jun 19 2013 12:00:33  coredumpinfo/coredump.cfg
  !Flash:   125  12105313    Feb 21 2011 16:15:12  csd_3.5.841-k9.pkg
  !Flash:   126  4096        Feb 21 2011 16:15:14  sdesktop
  !Flash:   133  1462        Feb 21 2011 16:15:14  sdesktop/data.xml
  !Flash:   127  2857568     Feb 21 2011 16:15:16  anyconnect-wince-ARMv4I-2.4.1012-k9.pkg
--
Saulo Zimbaro

Mobile ) (+55) 21 9800-0100

*saulozimbaro <at> gmail.com

*saulo <at> zimbaro.com

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Harshal Patil | 19 Jun 2013 08:43

[rancid] Rancid CVS Problem

Hi All,
 
I am reciving following errors in logs file while working on Rancid
 
cvs commit: cannot open CVS/Entries for reading: No such file or directory
cvs commit: nothing known about `router.db'
cvs [commit aborted]: correct above errors first!
ending: Wed Jun 19 11:56:26 IST 2013
 
Please let me know which file need to edit or any other way to correct this error
 
Thanks
Harshal
 

Confidentiality: This e-mail and any attachments may be confidential and may also be privileged. If you are not an intended named recipient, please notify the sender immediately and do not disclose the contents to another person use it for any purpose, or store or copy the information in any medium.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Alan McKinnon | 17 Jun 2013 21:21
Picon

[rancid] Limit commands run for GSR

Hi,

Our provider edge runs on GSR 12's and they carry a hefty config. NetOps
complain that rancid noticeably spikes the cpu load [1] when it runs
these 4 (essentially the same) commands.

{'more system:running-config'   => 'WriteTerm'},        # ASA/PIX
{ running-config view full'=> 'WriteTerm'},        # workaround for
{'show running-config'          => 'WriteTerm'},
{'write term'                   => 'WriteTerm'},

I got it under control easily by forking rancid to a gsrrancid script
and removing the bits I don't want from  <at> commandtable.

I'd rather not do it this way, I'd like to have this in the rancid
parser. But I can't figure a way to modify  <at> commandtable at runtime
based on chassis/OS type.

Ideas?

[1] It's a legit complaint, not a fiction of a NetOps engineer's
imagination. On every other chassis I can ignore the effects rancid
causes, but not these ones. We do things with the 12k most folks think
should not be possible :-)

--

-- 
Alan McKinnon
alan.mckinnon <at> gmail.com

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

Remy van Elst | 17 Jun 2013 07:10
Picon
Gravatar

[rancid] Support for the Cisco SF300

Howdy,

Does RANCID supports the Cisco SF300 SMB switches? The regular 'cisco' and
the 'cisco-sb' (from
http://chrpinedo.blogspot.nl/2012/03/cisco-small-business-sg300-backup-with
.html) give me an empty file in the cvs, while direct logging in on the
switch and doing a sho ru (after enable) works just fine.

Any tips or help?

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

Saulo Zimbaro | 8 Jun 2013 17:42
Picon

[rancid] Bkp DELL PC 5548 and 5448 with Rancid

Hi all,

I tried to bkp my DELL PC 5548 and 5448 with dlogin/drancid sh but not working.

dlogin works fine:

-bash-3.2$ bin/dlogin dlsw-office-rjo031
dlsw-office-rjo031
spawn telnet dlsw-office-rjo031
Trying 192.168.223.31...
Connected to dlsw-office-rjo031 (192.168.223.31).
Escape character is '^]'.
User Name:producao
Password:********
dlsw-office-rjo031#

But log this:

[root <at> acobr099048 logs]# tail -f networking.20130608.123251
starting: Sat Jun 8 12:32:51 BRT 2013
Trying to get all of the configs.
found_end = 0, clean_run = 0
dlsw-office-rjo031 dlogin error: Error: TIMEOUT reached
dlsw-office-rjo031: missed cmd(s): show version,show system,show system id,show running-config,show vlan
dlsw-office-rjo031: End of run not found
!
=====================================
Getting missed routers: round 1.
found_end = 0, clean_run = 0
dlsw-office-rjo031 dlogin error: Error: TIMEOUT reached
dlsw-office-rjo031: missed cmd(s): show version,show system,show system id,show running-config,show vlan
dlsw-office-rjo031: End of run not found
!
=====================================
Getting missed routers: round 2.
found_end = 0, clean_run = 0
dlsw-office-rjo031 dlogin error: Error: TIMEOUT reached
dlsw-office-rjo031: missed cmd(s): show version,show system,show system id,show running-config,show vlan
dlsw-office-rjo031: End of run not found
!
=====================================
Getting missed routers: round 3.
found_end = 0, clean_run = 0
dlsw-office-rjo031 dlogin error: Error: TIMEOUT reached
dlsw-office-rjo031: missed cmd(s): show version,show system,show system id,show running-config,show vlan
dlsw-office-rjo031: End of run not found
!
=====================================
Getting missed routers: round 4.
found_end = 0, clean_run = 0
dlsw-office-rjo031 dlogin error: Error: TIMEOUT reached
dlsw-office-rjo031: missed cmd(s): show version,show system,show system id,show running-config,show vlan
dlsw-office-rjo031: End of run not found
!
cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
ending: Sat Jun 8 12:40:30 BRT 2013




Any ideas?


thanks!

--
Saulo Zimbaro

Mobile ) (+55) 21 9800-0100

*saulozimbaro <at> gmail.com

*saulo <at> zimbaro.com

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Matthew Walster | 6 Jun 2013 16:45
Gravatar

[rancid] Checking for root

More often than not, people are coming to me with RANCID issues that have arisen because someone has been impatient and decided to run rancid-run manually rather than letting the next run initiate manually.

The only problem with that is that they tend to run it as "root" rather than the rancid user.

Would it be worth putting a check in so that rancid-run script won't run unless it's as a non-privileged user (or even better, build it into the automake run to discover the intended final user).

Simple code sample:

if [[ $EUID -eq 0 && $force -ne 1 ]]
then
        echo "Run this as the RANCID user!"
        exit 1
fi

There's a "force" option there, just in case you really did run it as root, which seems like bad practice to me...

Just a thought!

Matthew Walster
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Gary Douglas | 5 Jun 2013 16:22
Favicon

[rancid] End of run not found on telnet

I have rancid 2.3.6 up an running on Ubuntu server. All devices are Cisco. SSH is working fine. When I try run rancid on switches that only support telnet, I get the following error.

switch: missed cmd(s): write term,show running-config
switch: End of run not found

clogin works great to these switches. I though it might be the expect problem. I downloaded and installed expect-5.43.0_hack.tar.bz2 and tcl8.4.18-src.tar.gz from the ftp site. This did not resolve the problem.

Any ideas on what or where I need to look.

Thank you
Gary Douglas


_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Richard Savage | 5 Jun 2013 14:45
Picon
Favicon

[rancid] Rancid / Fortigate

Hi

I am currently running rancid 2.3.8-3 on a debian server.

I am backing up 3 fortinet firewalls and everytime rancid runs it produces a diff against various things
changing.  This
happens on every run even if no config changes have been made to the firewall:

 <at>  <at>  -2538,7 +2538,7  <at>  <at> 
   end
   config system autoupdate tunneling
       set address ''
-     set password ENC 7rz3NZFEnq39bkDpQoOq1xFb9S+pQwBXZedGObWBC7hC/QYQBMnsGbxKvbtSLtmBELRLqU631S6JPt8jsr0qKo2r10Vv5UzYddzby6Q3tWIls1IC
+     set password ENC 51lWQzr6MmALlpq9n4uTbPbGcL9XHTvXmQ4kMLcz3u2Ua8yt9tkanbZp0J5uaKsiLqgLqEIKnQQFQYKoh+qNcGSeDMsFhHk/H18pPn4nuBQ0IxMq
       set port 0
       set status disable
       set username ''

 <at>  <at>  -7474,23 +7474,23  <at>  <at> 
   end
   config vpn certificate local
       edit "Fortinet_Factory"
-         set password ENC NNWSYkoMA+edjwo5LVP2a1M6K20cxS0iN/wkGwA6F39glvzYWmk3z9KoN7L//UR86M3u+8+d7Kk0k79NYf63wkLtpZnxRYWrLPTLeunMQLD5Rz2f
+         set password ENC 0QNWT3omKlWgl1dROK2zvJDEdmhmrOQcre178jDza1qcDDJ4ROArDrJ2mWi5qIFFS6cZs8rIa9rUv34zvfmC/8U/xorbn6g/c1/jKfoCNo5KTP1E
           set private-key "-----BEGIN RSA PRIVATE KEY-----
   Proc-Type: 4,ENCRYPTED
- DEK-Info: DES-EDE3-CBC,A8B9D863C86CD1F9
- 8+cZant/s9PvQE2cK0010WPxMAXo7cp8BnmhCBpjvo7wEKXux+5yasNhe1ZxDcZm
- j7PmNrqqO+J6qG5Whd90Hp9BCJ8eNYQJojW0IfB2RPYocD058bk+kjZ7MPov/JBz
- QgDhnzoP9qFjPzA2GGMQ+1JFMJZI63VlRGUhKnN8xc0X1B9oHnb7U3/d3wipSekM
- eSKd4Sy6kcZJc726OV273pr6ftJyob1tDmIGXZzMRgAzUehFO1w+2u39hPsTOcq/
- IyF/RKTcfXoLilPFwZQvpDzIlurzCCv1ySsxhpFCKLScPaCwaTY6g8qz03VTMC6h
+ DEK-Info: DES-EDE3-CBC,39706AFBAD7CE8DF
+ 9KJ7kMJlzqKVFwS8dChmvlalrMbIKd0AxSo9VU/Wa1MSPo6HN8IjCAUtcM9zvbSX
+ E7aCk75D8vglifkuRqa+wtCcT8xVrEdwnHXpkvc9RH2JPs4JRhOyrYUAsnCMkQp3
+ rLS0OditRHWbxG8M5xo5V2dIs7L6wkN7wJ9Rdrj+AKf49bsLayIdTkF4ruG0tBXR
+ ugQDLe6G6lCq2CW3y0m6SA5fQE2bXQy0YztDrHSZzzm5wXHhfpEUzmAU9gR1kl/s
+ V1+fzVRhIXw2sf8CoH83DLvON0wiNOE/J9BhUgvxq9SzbRPhXrUS/58S1cdr7Wz

   -----END RSA PRIVATE KEY-----"

I have looked back through the archives and found something similar back in 2010 but would assume that the
patch has
been integrated into the latest version.

Could any one suggest a fix for this as its getting slightly annoying getting a diff everytime there is a backup.

Many thanks

Richard
This e-mail is sent on behalf of NewNet Limited, a company registered in England and Wales, registered
number 03128506, registered office Carnac Lodge, Cams Estate, FAREHAM, Hampshire PO16 8UJ and
regulated by Ofcom. The information in this e-mail is confidential and is intended solely for the use of
that individual or entity to which it is addressed. Unauthorised use, dissemination, distribution,
publication or copying of this communication is strictly prohibited. If you receive this in error,
please notify us by email to privacy <at> newnet.co.uk<mailto:privacy <at> newnet.co.uk> and delete any
copies. For information about how we process data and monitor communications please see our privacy statement<http://www.newnet.co.uk/Bottom-Bar/privacy-policy.php>.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Klavs Klavsen | 4 Jun 2013 19:23
Picon
Favicon

Re: [rancid] hp procurve problem - hlogin works - rancid-run fails


Alan McKinnon said the following on 06/04/2013 05:22 PM:
[CUT]
> What do you have in router.db for that device? 

10.10.15.96:hp:up

I have a cisco device as well - and that works just fine.

--

-- 
Regards,
Klavs Klavsen, GSEC - kl <at> vsen.dk - http://www.vsen.dk - Tlf. 61281200

"Those who do not understand Unix are condemned to reinvent it, poorly."
   --Henry Spencer

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

Klavs Klavsen | 4 Jun 2013 19:21
Picon
Favicon

Re: [rancid] hp procurve problem - hlogin works - rancid-run fails

heasley said the following on 06/04/2013 05:20 PM:
> Tue, Jun 04, 2013 at 04:57:33PM +0200, Klavs Klavsen:
>> I am trying to backup a hp procurve 2520.
>>
>> using rancid 2.3.6 (I tried updating hlogin to v2.3.8).
> are you using linux?  if so, would you try the hpuifilter from 3.0a2?

Yes - I'll gladly test that.

>> When running:
>> /usr/libexec/rancid/hlogin -c "show version;show flash;show
>> system-information;show system information;show module;show stack;write
>> term" 10.10.15.96
>>
>> it seems to work fine. It logs in, runs the commands, and after a few
>> seconds (and a lot of output :) - it writes exit etc. and gets out just
>> fine.
>>
>> When I then run rancid-run - I see it has spawned that exact command,
>> but there it appearently fails - because the log says:
>> Trying to get all of the configs.
>> 10.10.15.96: End of run not found
>> ;
>> =====================================
>> Getting missed routers: round 1.
>> 10.10.15.96: End of run not found
>> ;
>> =====================================
>> Getting missed routers: round 2.
>> 10.10.15.96: End of run not found
>> ;
>> =====================================
>> Getting missed routers: round 3.
>> 10.10.15.96: End of run not found
>> ;
>> =====================================
>> Getting missed routers: round 4.
>> 10.10.15.96: End of run not found
>>
>> Any ideas as to what I could do, to try to debug it?
> This is rare, a failure w/o some indication of why, but is difficult to
> debug.  start by trying the debugging with the PATH from rancid.conf.
Typical - rare failures.. gr8 :)

What do you mean? I don't believe there's any PATH set in rancid.conf.

I am home from work now - and it's national holiday tomorrow - but 
thursday, I'll try hpuifilter 3.0.2a and I figured I'd try to insert 
some debugging output in rancid-run - around where it calls hlogin (or 
is it rancid-control that calls hlogin.. I don't remember right now..)

p.s. router db contains: 10.10.15.96:hp:up

--

-- 
Regards,
Klavs Klavsen, GSEC - kl <at> vsen.dk - http://www.vsen.dk - Tlf. 61281200

"Those who do not understand Unix are condemned to reinvent it, poorly."
   --Henry Spencer

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

Klavs Klavsen | 4 Jun 2013 16:57
Picon
Favicon

[rancid] hp procurve problem - hlogin works - rancid-run fails

I am trying to backup a hp procurve 2520.

using rancid 2.3.6 (I tried updating hlogin to v2.3.8).

When running:
/usr/libexec/rancid/hlogin -c "show version;show flash;show 
system-information;show system information;show module;show stack;write 
term" 10.10.15.96

it seems to work fine. It logs in, runs the commands, and after a few 
seconds (and a lot of output :) - it writes exit etc. and gets out just 
fine.

When I then run rancid-run - I see it has spawned that exact command, 
but there it appearently fails - because the log says:
Trying to get all of the configs.
10.10.15.96: End of run not found
;
=====================================
Getting missed routers: round 1.
10.10.15.96: End of run not found
;
=====================================
Getting missed routers: round 2.
10.10.15.96: End of run not found
;
=====================================
Getting missed routers: round 3.
10.10.15.96: End of run not found
;
=====================================
Getting missed routers: round 4.
10.10.15.96: End of run not found

Any ideas as to what I could do, to try to debug it?

--

-- 
Regards,
Klavs Klavsen, GSEC - kl <at> vsen.dk - http://www.vsen.dk - Tlf. 61281200

"Those who do not understand Unix are condemned to reinvent it, poorly."
   --Henry Spencer

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


Gmane