<div dir="ltr"><div><div>hi,<br><br></div>below is my rancid config, i am unable to config files of my network device as attachment in mail<br><br></div>can any one let me know how do i do.<br><br> cat /etc/rancid/<br>rancid.conf       .rancid.conf.swp<br>root@Nagios:~# cat /etc/rancid/rancid.conf<br># rancid 2.3.8<br># This file sets up the environment used for rancid.  see rancid.conf(5)<br>#<br># This will be site specific<br>#<br>TERM=network;export TERM<br>#<br># Collating locale<br>LC_COLLATE="POSIX"; export LC_COLLATE<br>#<br># Create files w/o world read/write/exec permissions, but read/exec permissions<br># for group.<br>umask 027<br>#<br># Under BASEDIR (i.e.: --localstatedir), there will be a "logs" directory for<br># the logs from rancid and a directory for each group of routers defined in<br># LIST_OF_GROUPS (below).  In addition to these, there will be a "CVS"<br># directory which is the cvs (or Subversion) repository.<br>#<br># Use a full path (no sym-links) for BASEDIR.<br>#<br>TMPDIR=/tmp; export TMPDIR<br># Be careful changing this, it affects CVSROOT below.  It should be a FQPN, not<br># relative.<br>BASEDIR=/var/lib/rancid; export BASEDIR<br>PATH=/usr/lib/rancid/bin:/usr/bin:/usr/sbin:/bin:/usr/local/bin:/usr/bin; export                                                                                         PATH<br># Location of the CVS/SVN repository.  Be careful changing this.<br># If RCSSYS is svn, this can be:<br># - an (absolute) path (a subdirectory of BASEDIR by default).<br># - any URL that subversion understands, but beware that:<br>#   - no attempt will be made to create the repository when running rancid-cvs.<br>#   - authentication credentials, if necessary, MUST be cached (see the SVN<br>#     book, Ch. 3, Network Model, Caching credentials) before non-interactive<br>#     commands can run, e.g. by running rancid-cvs after installation.<br>CVSROOT=$BASEDIR/CVS; export CVSROOT<br># Location of log files produced by rancid-run(1).<br>LOGDIR=$BASEDIR/logs; export LOGDIR<br>#<br># Select which RCS system to use, "cvs" (default) or "svn".  Do not change<br># this after CVSROOT has been created with rancid-cvs.  Changing between these<br># requires manual conversions.<br>RCSSYS=cvs; export RCSSYS<br>#<br># if ACLSORT is NO, access-lists will NOT be sorted.<br>#ACLSORT=YES; export ACLSORT<br>#<br># if NOPIPE is set, temp files will be used instead of a cmd pipe during<br># collection from the router(s).<br>#NOPIPE=YES; export NOPIPE<br>#<br># FILTER_PWDS determines which passwords are filtered from configs by the<br># value set (NO | YES | ALL).  see rancid.conf(5).<br>#FILTER_PWDS=YES; export FILTER_PWDS<br>#<br># if NOCOMMSTR is set, snmp community strings will be stripped from the configs<br>#NOCOMMSTR=YES; export NOCOMMSTR<br>#<br># How many times failed collections are retried (for each run) before<br># giving up.  Minimum: 1<br>#MAX_ROUNDS=4; export MAX_ROUNDS<br>#<br># How many hours should pass before complaining about routers that<br># can not be reached.  The value should be greater than the number<br># of hours between your rancid-run cron job.  Default: 24<br>#OLDTIME=4; export OLDTIME<br>#<br># How many hours should pass before complaining that a group's collection<br># (the age of it's lock file) is hung.<br>#LOCKTIME=4; export LOCKTIME<br>#<br># The number of devices to collect simultaneously.<br>#PAR_COUNT=5; export PAR_COUNT<br>#<br># list of rancid groups<br>#LIST_OF_GROUPS="sl joebobisp"; export LIST_OF_GROUPS<br># more groups...<br>#LIST_OF_GROUPS="$LIST_OF_GROUPS noc billybobisp"; export LIST_OF_GROUPS<br><br>LIST_OF_GROUPS="switches"<br>LIST_OF_GROUPS="routers"<br><br>#<br># For each group, define a list of people to receive the diffs.<br># in sendmail's /etc/aliases.<br>#   rancid-group:       joe,moe@foo<br>#   rancid-admin-group: hostmaster<br># be sure to read ../README regarding aliases.<br>#<br># If your MTA configuration is broken or you want mail to be forwarded to a<br># domain not the same as the local one, define that domain here.  "@" must be<br># included, as this is simply appended to the usual recipients.  It is NOT<br># appended to recipients specified in rancid-run's -m option.<br>#MAILDOMAIN="@<a href="http://example.com">example.com</a>"; export MAILDOMAIN<br>#<br># By default, rancid mail is marked with precedence "bulk".  This may be<br># changed by setting the MAILHEADERS variable; for example no header by setting<br># it to "" or adding X- style headers.  Individual headers must be separated<br># by a \n.<br>MAILHEADERS="Precedence: bulk"; export MAILHEADERS<br>#$SENDMAIL -t $MAILOPTS<br><br clear="all"><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><img alt="">Rehards,<div>Harsha </div></div></div>
</div></div></div></div>