[rancid] Config generatinf failed_Help required
Hussein, Md Sazzad
ete.sabuj at gmail.com
Fri Jun 5 05:34:35 UTC 2015
*Hi Alan,*
Good morning!
Thanks for your help.
*1. I think its working. Please have look over the log:*
*# tail -f /var/log/rancid/network.20150605.065402*
starting: Fri Jun 5 06:54:02 CEST 2015
D 172.19.1.254
Deleting 172.19.1.254
Committed revision 13.
Deleted 172.19.1.254
D 172.19.254.53
Deleting 172.19.254.53
Committed revision 14.
Deleted 172.19.254.53
D 172.19.254.46
Deleting 172.19.254.46
Committed revision 15.
Deleted 172.19.254.46
Sending router.db
Transmitting file data .
Committed revision 16.
ending: Fri Jun 5 06:54:02 CEST 2015
*2. But the problem still exists in mail delivery. Still rancid is
deliverying to wrong mailing address:*
Jun 5 06:54:02 RR-DE-NMS-1 postfix/qmgr[9395]: 80391D21915: from=<
rancid at de.rr-icecream.eu>, size=729, nrcpt=1 (queue active)
Jun 5 06:54:02 RR-DE-NMS-1 postfix/smtp[15798]: 80391D21915: to=<
rancid-admin-network at de.rr-icecream.eu>, orig_to=<rancid-admin-network>,
relay=172.19.1.31[172.19.1.31]:25, delay=0.19, delays=0.01/0/0/0.18,
dsn=2.6.0, status=sent (250 2.6.0
<20150605045402.80391D21915 at RR-DE-NMS-1.de.rr-icecream.internal> Queued
mail for delivery)
Jun 5 06:54:02 RR-DE-NMS-1 postfix/qmgr[9395]: 80391D21915: removed
*3. Could you please let me know the path where rancid is backing up the
switch/router config file?*
*4. For checking rancid version please have a look:*
root at RR-DE-NMS-1:/var/log# rancid -v
rancid: command not found
rancid at RR-DE-NMS-1:/usr/bin$ rancid -V
rancid: command not found
rancid at RR-DE-NMS-1:/usr/bin$ rancid -v
rancid: command not found
*Expecting your kind help again!*
On Thu, Jun 4, 2015 at 5:20 PM, Alan McKinnon <alan.mckinnon at gmail.com>
wrote:
> On 04/06/2015 16:45, Hussein, Md Sazzad wrote:
> > Hi Scott,
> >
> > Thanks for the reply! Please have a look over the bellow output:
> >
> > root at RR-DE-NMS-1:/var/log/rancid# more /etc/aliases
> > rancid-network; sazzad.hussein at de.rr-icecream.eu
> > <mailto:sazzad.hussein at de.rr-icecream.eu>
> > rancid-admin-network; sazzad.hussein at de.rr-icecream.eu
> > <mailto:sazzad.hussein at de.rr-icecream.eu>
> >
> > root at RR-DE-NMS-1:/var/log/rancid# sudo /usr/bin/newaliases
> > postalias: warning: /etc/aliases, line 1: need name:value pair
> > postalias: warning: /etc/aliases, line 3: need name:value pair
> > root at RR-DE-NMS-1:/var/log/rancid#
>
> You edited the wrong file, /etc/aliases is postfix's file and was
> correct as you originally had it.
>
> The file to edit is router.db. This is a rancid file and there is one
> per rancid group.
> rancid-2.3.x uses a ":" as the separator
> rancid-3.x uses a ";" as the separator
> This change was made for rancid-3 to accommodate IPv6 addresses
> >
> >
> > How to check the rancid version? Is there any command for that?
>
> rancid -V
>
>
>
> >
> >
> > regards
> > sazzad
> > On Thursday, June 4, 2015, Scott Granados <scott.granados at gmail.com
> > <mailto:scott.granados at gmail.com>> wrote:
> >> What version of RANCID are you using.
> >> If 3.2 you need to use ; marks not : marks in the router.db
> >> Else you get odd errors and the script won’t run or give the
> > appropriate output.
> >> Just a suggestion to check out.
> >> Thanks
> >> Scott
> >> On Jun 4, 2015, at 8:37 AM, Hussein, Md Sazzad <ete.sabuj at gmail.com
> > <mailto:ete.sabuj at gmail.com>> wrote:
> >>
> >> Guys,
> >>
> >> I am facing problem with switch config backup.
> >>
> >> When i just run the following command:
> >> sudo su -c /usr/lib/rancid/bin/rancid-run -s /bin/bash -l rancid
> >> I used to get the "attached" log:::::
> >> My config:::
> >> rancid at RR-DE-NMS-1:~/network$ more router.db
> >> 172.19.254.46:hp:up
> >> 172.19.254.53:hp:up
> >> 172.19.1.254:netscreen:up
> >>
> >> Please note that there is no "enable" passowrd is assigned. I just put
> > the admin passowrd directly.
> >>
> >> Anyone is there to support me!
> >>
> >>
> >> --
> >>
> >> --
> >> Sazzad Hussein
> >> www.sazzad-hussein.branded.me <http://www.sazzad-hussein.branded.me> |
> > ete.sabuj at gmail.com <mailto:ete.sabuj at gmail.com>
> >> Hermann-Ehlers Str. 2, 49082 Osnabrück, Deutschland
> >> Mobile number: 4915214010461
> >>
> >> <rancid>_______________________________________________
> >> Rancid-discuss mailing list
> >> Rancid-discuss at shrubbery.net <mailto:Rancid-discuss at shrubbery.net>
> >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
> >>
> >
> > --
> >
> > |--
> > *Sazzad Hussein*
> > www.sazzad-hussein.branded.me <http://www.sazzad-hussein.branded.me> |
> ete.sabuj at gmail.com <mailto:ete.sabuj at gmail.com>
> > Hermann-Ehlers Str. 2, 49082 Osnabrück, Deutschland
> > Mobile number: 4915214010461|
> >
> >
> >
> >
> > _______________________________________________
> > Rancid-discuss mailing list
> > Rancid-discuss at shrubbery.net
> > http://www.shrubbery.net/mailman/listinfo/rancid-discuss
> >
>
>
> --
> Alan McKinnon
> alan.mckinnon at gmail.com
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
--
--*Sazzad Hussein*www.sazzad-hussein.branded.me | ete.sabuj at gmail.com
Hermann-Ehlers Str. 2, 49082 Osnabrück, Deutschland
Mobile number: 4915214010461
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20150605/0daf9e96/attachment.html>
More information about the Rancid-discuss
mailing list