Discussion:
[rancid] error in log file
Harsha S Aryan
2015-12-16 07:50:12 UTC
Permalink
hi i am getting error while running rancid

***@Nagios:/var/log/rancid$ /usr/bin/rancid-run
***@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
Dan Anderson
2015-12-16 15:10:21 UTC
Permalink
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'.
Post by Harsha S Aryan
hi i am getting error while running rancid
starting: Wed Dec 16 13:19:29 IST 2015
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
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Dan
Harsha S Aryan
2015-12-16 15:51:29 UTC
Permalink
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.
Post by Dan Anderson
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.
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'.
Post by Harsha S Aryan
hi i am getting error while running rancid
starting: Wed Dec 16 13:19:29 IST 2015
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
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Dan
heasley
2015-12-16 17:30:12 UTC
Permalink
How can I get it as mail attachment.
rancid does not do this. using the current alpha version of rancid, you
could change the SENDMAIL setting to a script accepting cml-line like

$SENDMAIL -t $MAILOPTS

that splits the headers and body and creates the attachment using mpack.
good luck.
Harsha S Aryan
2015-12-16 17:54:33 UTC
Permalink
Can you please let me know in which file I have to change it .
Post by heasley
How can I get it as mail attachment.
rancid does not do this. using the current alpha version of rancid, you
could change the SENDMAIL setting to a script accepting cml-line like
$SENDMAIL -t $MAILOPTS
that splits the headers and body and creates the attachment using mpack.
good luck.
Loading...