Serge Torop | 26 Jan 23:00 2016
Picon

[rancid] Can rancid work with Dlink and Edge-Core switches?

Hello, all,

can rancid work with Dlink (DES-3200, DGS-3612, DGS-3620) and Edge-Core switches (ES 3528)?

If you have working examples, please, reply.

Thank you in advance.

--
Serge P. Torop
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Cédric B | 25 Jan 11:14 2016
Picon

[rancid] Centos 6 rancid problem

Hello,
I'm trying to make rancid mark for about 3 days, and I don't know why it 
doesn't...

clogin works well.

I've found this thread : 
http://www.shrubbery.net/pipermail/rancid-discuss/2008-April/003004.html
telling that it could be a diff problem : changes nothing.

In logfile, I just get a start date and an end date, nothing between the 
two.

The only way I made it work is by running :
PATH=$PATH:/usr/local/rancid/bin bin/rancid -t cisco <router>

PATH=$PATH:/usr/local/rancid/bin bin/rancid-run always set the router as 
down (in routers.down) and does not get the router's config

I'm using rancid 3.1 (with SVN backend) because of the perl problem 
affecting rancid 3.2 on centos 6

Does anybody have met this problem ?

Regards,
Cédric
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Андрей Фомин | 20 Jan 09:00 2016
Picon

[rancid] Up-to-date check failed

May be this can be somehow related to HDD-failure we had 2 weeks ago.

After this HDD failure, i found that rancid has not recognized config changes for last 2 weeks. I'm not a rancid-expert, but i found some recomendations on debugging rancid failures - (briefly) try to manually 'clogin', if ok, try rancid-run explicitly an watch for logs. 'clogin' went perfect, so here's my log:

$ cat network.20160120.103453
starting:

Trying to get all of the configs.
=====================================
Getting missed routers: round 1.
=====================================
Getting missed routers: round 2.
=====================================
Getting missed routers: round 3.
=====================================
Getting missed routers: round 4.

cvs diff: Diffing .
cvs diff: Diffing configs
cvs diff: configs/10.0.1.249 was removed, no comparison available
cvs commit: Examining .
cvs commit: Examining configs
cvs commit: Up-to-date check failed for `configs/10.0.X.Y'
cvs [commit aborted]: correct above errors first!

ending:



Can anyone help in this situation?

PS: is there any RANCID-book or something? I only find documents which i can describe as "deploying guides", but this doesn't give any information about how it actually works (let's call it 'mehanics of rancid'). Or i need to read for ex. O'reilly's "Essential CVS" and couple of other books? Need your advice about this. I feel frustrated about rancid and need to cope with it in some better way than now.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Varghese, Vineeth | 19 Jan 08:56 2016

[rancid] <at> Script

Hello,

 

Can I check the scrip that runs in the baground which taking an backup,

 

If yes, can I know the path where all the script saves?

 

And by default does rancid take backup of startup and running configuration file of switch or it’ just the startup config.

 

Thanks & Regards

______________________________________________________

Vineeth Varghese / Network Admin - ITICS-South, India I&T

ITICS South | Capgemini

Capgemini India | Mumbai - Airoli

Mobile: +91 7208883624 Ext: 2213688

E-mail :- vineeth.varghese <at> capgemini.com

www.capgemini.com

People matter, results count.

________________________________________________________

 

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Howard Jones | 18 Jan 12:03 2016
Gravatar

[rancid] Patch for xrancid Extreme x480 - oscillating "show configuration"

Here's a tiny patch to stop spurious diffs on (at least) Extreme x480 
switches. For some reason they sometimes do and sometimes don't show the 
"show configuration" command in the output.

--- xrancid     2015-05-08 16:43:09.001709176 +0100
+++ ../../bin/xrancid   2016-01-18 10:03:56.175776121 +0000
 <at>  <at>  -357,6 +357,14  <at>  <at> 
         /# system name/i && next;
         /# software version/i && next;

+       # if there's a show configuration (sometimes is, sometimes 
isn't, even on one device!)
+       # remove it, and the following line (a blank comment)
+       if (m/^show\sconfiguration/) {
+               <INPUT>;
+               next;
+       }
+
+
         if (/((create|configure) account \S+ \S+) / && $filter_pwds >= 2) {
             ProcessHistory("COMMENTS","keysort","H0","# $1 <key 
removed>\n");
             next;

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

Per-Olof Olsson | 14 Jan 08:44 2016
Picon
Picon

[rancid] HP have new "save config" prompt.

Hello

Notice new "save config" promp in YA.15.17.0008 and WB.15.18.0006.

  "Do you want to save the current configuration (y/n)? "

My fix in hlogin:
606c603
<       "Do you want to save current configuration"     {
---
 >       -re "Do you want to save (the )?current configuration"  {

/Peo
----------------------------------------------------------
Per-Olof Olsson               Email: peo <at> chalmers.se
Chalmers tekniska högskola    IT-avdelningen
Arvid Hedvalls backe 6        412 96 Göteborg
Tel: 031/772 6738  Fax: 031/772 8660
Mob: 0707 88 3708
----------------------------------------------------------
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Ian Stong | 3 Jan 15:50 2016
Gravatar

[rancid] excluding output from cisco routers and switches relating to Flash: bootflash:

Hi,

 

I need to exclude the following output from rancid as it always shows changes to the Flash: bootflash:

 

Sample below of what it is seeing as a change

 

- !Flash: bootflash: 273633  drwx             8192  Dec 31 2015 06:27:53 -04:00  tracelogs

+ !Flash: bootflash: 273633  drwx             8192  Dec 31 2015 13:55:48 -04:00  tracelogs

 

 

Thanks

 

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Sebastien.Boulianne | 28 Dec 21:36 2015
Picon

[rancid] Issues with the latest version of OpenSSH and Rancid 3.2-2.

Hi all,

 

I upgraded my debian os to the latest version and I saw there is an issue with the latest version of OpenSSH.

 

dpkg -l | grep openssh

ii  openssh-client                   1:7.1p1-5                    amd64        secure shell (SSH) client, for secure access to remote machines

ii  openssh-server                   1:7.1p1-5                    amd64        secure shell (SSH) server, for secure access from remote machines

ii  openssh-sftp-server              1:7.1p1-5                    amd64        secure shell (SSH) sftp server module, for SFTP access from remote machine

 

I got this error…

 

bin/flogin tr.1

tr.1

spawn ssh -c 3des -x -l cpu_backup tr.1

Unknown cipher type '3des'

 

Error: Couldn't login

 

Anyone ever had this problem ?

How did fix it ?

 

Thanks you very much and merry christmas. ;)

 

Sébastien

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Harsha S Aryan | 17 Dec 07:51 2015
Picon

[rancid] Need Help

hi,

below is my rancid config, i am unable to config files of my network device as attachment in mail

can any one let me know how do i do.

 cat /etc/rancid/
rancid.conf       .rancid.conf.swp
root <at> Nagios:~# cat /etc/rancid/rancid.conf
# rancid 2.3.8
# This file sets up the environment used for rancid.  see rancid.conf(5)
#
# This will be site specific
#
TERM=network;export TERM
#
# Collating locale
LC_COLLATE="POSIX"; export LC_COLLATE
#
# Create files w/o world read/write/exec permissions, but read/exec permissions
# for group.
umask 027
#
# Under BASEDIR (i.e.: --localstatedir), there will be a "logs" directory for
# the logs from rancid and a directory for each group of routers defined in
# LIST_OF_GROUPS (below).  In addition to these, there will be a "CVS"
# directory which is the cvs (or Subversion) repository.
#
# Use a full path (no sym-links) for BASEDIR.
#
TMPDIR=/tmp; export TMPDIR
# Be careful changing this, it affects CVSROOT below.  It should be a FQPN, not
# relative.
BASEDIR=/var/lib/rancid; export BASEDIR
PATH=/usr/lib/rancid/bin:/usr/bin:/usr/sbin:/bin:/usr/local/bin:/usr/bin; export                                                                                         PATH
# Location of the CVS/SVN repository.  Be careful changing this.
# If RCSSYS is svn, this can be:
# - an (absolute) path (a subdirectory of BASEDIR by default).
# - any URL that subversion understands, but beware that:
#   - no attempt will be made to create the repository when running rancid-cvs.
#   - authentication credentials, if necessary, MUST be cached (see the SVN
#     book, Ch. 3, Network Model, Caching credentials) before non-interactive
#     commands can run, e.g. by running rancid-cvs after installation.
CVSROOT=$BASEDIR/CVS; export CVSROOT
# Location of log files produced by rancid-run(1).
LOGDIR=$BASEDIR/logs; export LOGDIR
#
# Select which RCS system to use, "cvs" (default) or "svn".  Do not change
# this after CVSROOT has been created with rancid-cvs.  Changing between these
# requires manual conversions.
RCSSYS=cvs; export RCSSYS
#
# if ACLSORT is NO, access-lists will NOT be sorted.
#ACLSORT=YES; export ACLSORT
#
# if NOPIPE is set, temp files will be used instead of a cmd pipe during
# collection from the router(s).
#NOPIPE=YES; export NOPIPE
#
# FILTER_PWDS determines which passwords are filtered from configs by the
# value set (NO | YES | ALL).  see rancid.conf(5).
#FILTER_PWDS=YES; export FILTER_PWDS
#
# if NOCOMMSTR is set, snmp community strings will be stripped from the configs
#NOCOMMSTR=YES; export NOCOMMSTR
#
# How many times failed collections are retried (for each run) before
# giving up.  Minimum: 1
#MAX_ROUNDS=4; export MAX_ROUNDS
#
# How many hours should pass before complaining about routers that
# can not be reached.  The value should be greater than the number
# of hours between your rancid-run cron job.  Default: 24
#OLDTIME=4; export OLDTIME
#
# How many hours should pass before complaining that a group's collection
# (the age of it's lock file) is hung.
#LOCKTIME=4; export LOCKTIME
#
# The number of devices to collect simultaneously.
#PAR_COUNT=5; export PAR_COUNT
#
# list of rancid groups
#LIST_OF_GROUPS="sl joebobisp"; export LIST_OF_GROUPS
# more groups...
#LIST_OF_GROUPS="$LIST_OF_GROUPS noc billybobisp"; export LIST_OF_GROUPS

LIST_OF_GROUPS="switches"
LIST_OF_GROUPS="routers"

#
# For each group, define a list of people to receive the diffs.
# in sendmail's /etc/aliases.
#   rancid-group:       joe,moe <at> foo
#   rancid-admin-group: hostmaster
# be sure to read ../README regarding aliases.
#
# If your MTA configuration is broken or you want mail to be forwarded to a
# domain not the same as the local one, define that domain here.  " <at> " must be
# included, as this is simply appended to the usual recipients.  It is NOT
# appended to recipients specified in rancid-run's -m option.
#MAILDOMAIN=" <at> example.com"; export MAILDOMAIN
#
# By default, rancid mail is marked with precedence "bulk".  This may be
# changed by setting the MAILHEADERS variable; for example no header by setting
# it to "" or adding X- style headers.  Individual headers must be separated
# by a \n.
MAILHEADERS="Precedence: bulk"; export MAILHEADERS
#$SENDMAIL -t $MAILOPTS


--
Rehards,
Harsha 
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Harsha S Aryan | 16 Dec 16:51 2015
Picon

Re: [rancid] error in log file

Hi

Thanks a lot issue got fixed , I am facing other issue... When rancid trigger mail config backup is coming in mail body. How can I get it as mail attachment.

On Dec 16, 2015 8:40 PM, "Dan Anderson" <dan.w.anderson <at> gmail.com> wrote:
It appears that your .cloginrc file isn't correct or you're not running RANCID as the correct user. I suggest reading the README file that comes with the distribution.

The relevant portion:

4) Put .cloginrc in the home directory of the user who will run rancid.
   .cloginrc must be not be readable/writable/executable by "others",
   i.e.: .cloginrc must be mode 0600 or 0640.

5) Modify .cloginrc.

   Test to make sure that you can log into every router.

   Note: the juniper user you use *must* log into a cli shell (which
   is the default on a juniper).

   See the file cloginrc.sample, located in <datadir> (<basedir>/share/rancid),
   for examples and good starting point.  Also take a look at the cloginrc
   manual page, 'man -M <basedir>/man cloginrc'.

On Wed, Dec 16, 2015 at 2:50 AM, Harsha S Aryan <harsha.s.aryan <at> gmail.com> wrote:

hi i am getting error while running rancid

rancid <at> Nagios:/var/log/rancid$ /usr/bin/rancid-run
rancid <at> Nagios:/var/log/rancid$ cat routers.20151216.131929
starting: Wed Dec 16 13:19:29 IST 2015

cvs [status aborted]: cannot open file 10.172.60.10 for comparing: Permission denied


Trying to get all of the configs.
10.172.60.10 jlogin error: Error: password file (/var/lib/rancid/.cloginrc) does not exist
10.172.60.10: missed cmd(s): show system boot-messages,show version detail,show system core-dumps,show configuration,show chassis hardware detail,show chassis environment,show chassis cfeb,show chassis scb,show chassis firmware,show chassis feb,show chassis feb detail,show chassis clocks,show chassis alarms,show chassis ssb,show chassis routing-engine,show chassis fpc detail,show chassis sfm detail,show system license
10.172.60.10: End of run not found
#
=====================================
Getting missed routers: round 1.
10.172.60.10 jlogin error: Error: password file (/var/lib/rancid/.cloginrc) does not exist
10.172.60.10: missed cmd(s): show chassis feb,show chassis clocks,show configuration,show system core-dumps,show chassis sfm detail,show chassis environment,show chassis feb detail,show version detail,show chassis routing-engine,show chassis cfeb,show chassis ssb,show chassis hardware detail,show system license,show chassis fpc detail,show chassis alarms,show chassis firmware,show chassis scb,show system boot-messages
10.172.60.10: End of run not found
#
=====================================
Getting missed routers: round 2.
10.172.60.10 jlogin error: Error: password file (/var/lib/rancid/.cloginrc) does not exist
10.172.60.10: missed cmd(s): show chassis cfeb,show system core-dumps,show version detail,show chassis sfm detail,show chassis routing-engine,show chassis environment,show chassis fpc detail,show chassis scb,show chassis ssb,show chassis feb detail,show system boot-messages,show chassis firmware,show configuration,show chassis hardware detail,show chassis clocks,show system license,show chassis alarms,show chassis feb
10.172.60.10: End of run not found
#
=====================================
Getting missed routers: round 3.
10.172.60.10 jlogin error: Error: password file (/var/lib/rancid/.cloginrc) does not exist
10.172.60.10: missed cmd(s): show system license,show system boot-messages,show version detail,show chassis scb,show configuration,show system core-dumps,show chassis firmware,show chassis alarms,show chassis routing-engine,show chassis feb detail,show chassis ssb,show chassis feb,show chassis hardware detail,show chassis sfm detail,show chassis cfeb,show chassis clocks,show chassis environment,show chassis fpc detail
10.172.60.10: End of run not found
#
=====================================
Getting missed routers: round 4.
10.172.60.10 jlogin error: Error: password file (/var/lib/rancid/.cloginrc) does not exist
10.172.60.10: missed cmd(s): show chassis hardware detail,show chassis environment,show version detail,show system boot-messages,show chassis scb,show chassis routing-engine,show system license,show chassis firmware,show chassis feb detail,show chassis fpc detail,show chassis alarms,show chassis sfm detail,show chassis clocks,show chassis feb,show chassis ssb,show configuration,show chassis cfeb,show system core-dumps
10.172.60.10: End of run not found
#

cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs

ending: Wed Dec 16 13:19:30 IST 2015

can any one help me


--
Rehards,
Harsha 

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



--
Dan
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss <at> shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Harsha S Aryan | 16 Dec 08:50 2015
Picon

[rancid] error in log file


hi i am getting error while running rancid

rancid <at> Nagios:/var/log/rancid$ /usr/bin/rancid-run
rancid <at> Nagios:/var/log/rancid$ cat routers.20151216.131929
starting: Wed Dec 16 13:19:29 IST 2015

cvs [status aborted]: cannot open file 10.172.60.10 for comparing: Permission denied


Trying to get all of the configs.
10.172.60.10 jlogin error: Error: password file (/var/lib/rancid/.cloginrc) does not exist
10.172.60.10: missed cmd(s): show system boot-messages,show version detail,show system core-dumps,show configuration,show chassis hardware detail,show chassis environment,show chassis cfeb,show chassis scb,show chassis firmware,show chassis feb,show chassis feb detail,show chassis clocks,show chassis alarms,show chassis ssb,show chassis routing-engine,show chassis fpc detail,show chassis sfm detail,show system license
10.172.60.10: End of run not found
#
=====================================
Getting missed routers: round 1.
10.172.60.10 jlogin error: Error: password file (/var/lib/rancid/.cloginrc) does not exist
10.172.60.10: missed cmd(s): show chassis feb,show chassis clocks,show configuration,show system core-dumps,show chassis sfm detail,show chassis environment,show chassis feb detail,show version detail,show chassis routing-engine,show chassis cfeb,show chassis ssb,show chassis hardware detail,show system license,show chassis fpc detail,show chassis alarms,show chassis firmware,show chassis scb,show system boot-messages
10.172.60.10: End of run not found
#
=====================================
Getting missed routers: round 2.
10.172.60.10 jlogin error: Error: password file (/var/lib/rancid/.cloginrc) does not exist
10.172.60.10: missed cmd(s): show chassis cfeb,show system core-dumps,show version detail,show chassis sfm detail,show chassis routing-engine,show chassis environment,show chassis fpc detail,show chassis scb,show chassis ssb,show chassis feb detail,show system boot-messages,show chassis firmware,show configuration,show chassis hardware detail,show chassis clocks,show system license,show chassis alarms,show chassis feb
10.172.60.10: End of run not found
#
=====================================
Getting missed routers: round 3.
10.172.60.10 jlogin error: Error: password file (/var/lib/rancid/.cloginrc) does not exist
10.172.60.10: missed cmd(s): show system license,show system boot-messages,show version detail,show chassis scb,show configuration,show system core-dumps,show chassis firmware,show chassis alarms,show chassis routing-engine,show chassis feb detail,show chassis ssb,show chassis feb,show chassis hardware detail,show chassis sfm detail,show chassis cfeb,show chassis clocks,show chassis environment,show chassis fpc detail
10.172.60.10: End of run not found
#
=====================================
Getting missed routers: round 4.
10.172.60.10 jlogin error: Error: password file (/var/lib/rancid/.cloginrc) does not exist
10.172.60.10: missed cmd(s): show chassis hardware detail,show chassis environment,show version detail,show system boot-messages,show chassis scb,show chassis routing-engine,show system license,show chassis firmware,show chassis feb detail,show chassis fpc detail,show chassis alarms,show chassis sfm detail,show chassis clocks,show chassis feb,show chassis ssb,show configuration,show chassis cfeb,show system core-dumps
10.172.60.10: End of run not found
#

cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs

ending: Wed Dec 16 13:19:30 IST 2015

can any one help me


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

Gmane