Discussion:
[rancid] Config generatinf failed_Help required
Hussein, Md Sazzad
2015-06-04 12:37:58 UTC
Permalink
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:::*​

​***@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 | ***@gmail.com
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
Scott Granados
2015-06-04 14:29:20 UTC
Permalink
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
Post by Hussein, Md Sazzad
Guys,
I am facing problem with switch config backup.
sudo su -c /usr/lib/rancid/bin/rancid-run -s /bin/bash -l rancid​
​I used to get the "attached" log:::::​
​My config:::​
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
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
<rancid>_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Hussein, Md Sazzad
2015-06-04 14:45:00 UTC
Permalink
Hi Scott,

Thanks for the reply! Please have a look over the bellow output:

***@RR-DE-NMS-1:/var/log/rancid# more /etc/aliases
rancid-network; ***@de.rr-icecream.eu
rancid-admin-network; ***@de.rr-icecream.eu

***@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
***@RR-DE-NMS-1:/var/log/rancid#


How to check the rancid version? Is there any command for that?


regards
sazzad
Post by Scott Granados
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
Guys,
I am facing problem with switch config backup.
sudo su -c /usr/lib/rancid/bin/rancid-run -s /bin/bash -l rancid
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.
Post by Scott Granados
Anyone is there to support me!
--
--
Sazzad Hussein
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
<rancid>_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
--*Sazzad Hussein*www.sazzad-hussein.branded.me | ***@gmail.com
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
Alan McKinnon
2015-06-04 15:20:50 UTC
Permalink
Post by Hussein, Md Sazzad
Hi Scott,
postalias: warning: /etc/aliases, line 1: need name:value pair
postalias: warning: /etc/aliases, line 3: need name:value pair
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
Post by Hussein, Md Sazzad
How to check the rancid version? Is there any command for that?
rancid -V
Post by Hussein, Md Sazzad
regards
sazzad
Post by Scott Granados
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.
Post by Scott Granados
Just a suggestion to check out.
Thanks
Scott
Guys,
I am facing problem with switch config backup.
sudo su -c /usr/lib/rancid/bin/rancid-run -s /bin/bash -l rancid
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.
Post by Scott Granados
Anyone is there to support me!
--
--
Sazzad Hussein
www.sazzad-hussein.branded.me <http://www.sazzad-hussein.branded.me> |
Hermann-Ehlers Str. 2, 49082 Osnabrück, Deutschland
Mobile number: 4915214010461
<rancid>_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
|--
*Sazzad Hussein*
Hermann-Ehlers Str. 2, 49082 Osnabrück, Deutschland
Mobile number: 4915214010461|
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
***@gmail.com
Hussein, Md Sazzad
2015-06-05 05:34:35 UTC
Permalink
*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=<
***@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-***@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
<***@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:*
***@RR-DE-NMS-1:/var/log# rancid -v
rancid: command not found

***@RR-DE-NMS-1:/usr/bin$ rancid -V
rancid: command not found
***@RR-DE-NMS-1:/usr/bin$ rancid -v
rancid: command not found




*Expecting your kind help again!*
Post by Alan McKinnon
Post by Hussein, Md Sazzad
Hi Scott,
postalias: warning: /etc/aliases, line 1: need name:value pair
postalias: warning: /etc/aliases, line 3: need name:value pair
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
Post by Hussein, Md Sazzad
How to check the rancid version? Is there any command for that?
rancid -V
Post by Hussein, Md Sazzad
regards
sazzad
Post by Scott Granados
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.
Post by Scott Granados
Just a suggestion to check out.
Thanks
Scott
Guys,
I am facing problem with switch config backup.
sudo su -c /usr/lib/rancid/bin/rancid-run -s /bin/bash -l rancid
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.
Post by Scott Granados
Anyone is there to support me!
--
--
Sazzad Hussein
www.sazzad-hussein.branded.me <http://www.sazzad-hussein.branded.me> |
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
<rancid>_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
|--
*Sazzad Hussein*
www.sazzad-hussein.branded.me <http://www.sazzad-hussein.branded.me> |
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461|
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
--*Sazzad Hussein*www.sazzad-hussein.branded.me | ***@gmail.com
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
Alan McKinnon
2015-06-05 06:01:48 UTC
Permalink
Post by Hussein, Md Sazzad
*Hi Alan,*
Good morning!
Thanks for your help.
[snip]
Post by Hussein, Md Sazzad
*2. But the problem still exists in mail delivery. Still rancid is
deliverying to wrong mailing address:*
size=729, nrcpt=1 (queue active)
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
mail for delivery)
Jun 5 06:54:02 RR-DE-NMS-1 postfix/qmgr[9395]: 80391D21915: removed
This is a problem with your mailer setup.
You need to check that but it's out of the scope of this list
Post by Hussein, Md Sazzad
*3. Could you please let me know the path where rancid is backing up the
switch/router config file?
They could be anywhere, they are just files and there nothing about
files that declares where they must go.

How did you install rancid? From sources? From a package manager? Which
distro?
Post by Hussein, Md Sazzad
*
*
rancid: command not found
rancid: command not found
rancid: command not found*
Then you don't have a rancid command, meaning you are probably n v3.0.
Run any of the other rancid commands with a -V option,
or look inside one of them (they are text scripts and the version number
is stated at the top)
or ask your package manager what version is installed
--
Alan McKinnon
***@gmail.com
Hussein, Md Sazzad
2015-06-05 06:11:24 UTC
Permalink
*Hallo Alan,*

2. The thing is that i have installed some other services like nagios,
cacti, tacas+. The same server si sending mail alert to correct
destination. But why rancid is picking up ****@mydomain* address? There
something should be in rancid config file. I have looked for but failed.


3. I am just followed bellow URL to set up rancid:
https://www.edge-cloud.net/2013/05/rancidtrac-on-ubuntu-12-04-lts/
Post by Alan McKinnon
Post by Hussein, Md Sazzad
*Hi Alan,*
Good morning!
Thanks for your help.
[snip]
Post by Hussein, Md Sazzad
*2. But the problem still exists in mail delivery. Still rancid is
deliverying to wrong mailing address:*
size=729, nrcpt=1 (queue active)
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
mail for delivery)
Jun 5 06:54:02 RR-DE-NMS-1 postfix/qmgr[9395]: 80391D21915: removed
This is a problem with your mailer setup.
You need to check that but it's out of the scope of this list
Post by Hussein, Md Sazzad
*3. Could you please let me know the path where rancid is backing up the
switch/router config file?
They could be anywhere, they are just files and there nothing about
files that declares where they must go.
How did you install rancid? From sources? From a package manager? Which
distro?
Post by Hussein, Md Sazzad
*
*
rancid: command not found
rancid: command not found
rancid: command not found*
Then you don't have a rancid command, meaning you are probably n v3.0.
Run any of the other rancid commands with a -V option,
or look inside one of them (they are text scripts and the version number
is stated at the top)
or ask your package manager what version is installed
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
--*Sazzad Hussein*www.sazzad-hussein.branded.me | ***@gmail.com
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
Loading...