Aaron Dudek [mailto:adudek16@gmail.com]
1970-01-01 00:00:00 UTC
Fix that. chown -R rancid /var/rancid
On Thu, Sep 12, 2013 at 2:58 PM, Ryan Milton <***@mvsusa.com<mailto:***@mvsusa.com>> wrote:
Ok,
I got you. Seems everything in /var/lib/rancid/bin is root:
***@ObserviumNYC:/var/log/rancid$ cd /var/lib/rancid/bin/
***@ObserviumNYC:/var/lib/rancid/bin$ ls -lt
-rwxr-xr-x 1 root root 67004 Mar 5 2012 rancid
-rwxr-xr-x 1 root root 4420 Mar 5 2012 rancid-cvs
Regards,
Ryan Milton
MVS Network Manager
o: 201-447-1505 x124
c: 862-249-5230
www.mvsusa.com<http://www.mvsusa.com/>
[MVS final logo GOOD very small]
From: Aaron Dudek [mailto:***@gmail.com<mailto:***@gmail.com>]
Sent: Thursday, September 12, 2013 2:52 PM
To: Ryan Milton
Cc: Heasley; rancid-***@shrubbery.net<mailto:rancid-***@shrubbery.net>
Subject: Re: [rancid] Permissions and files
Not what I meant.
su - rancid
then do
pwd
then
/var/lib/rancid/bin/rancid-run
Where did "/usr/bin/rancid-run" come from? Because that is different then what you were trying to run before.
On Thu, Sep 12, 2013 at 2:47 PM, Ryan Milton <***@mvsusa.com<mailto:***@mvsusa.com>> wrote:
Ok, so since I'm following various guides (mostly the "Ubuntu server install), I am assuming that the command is /usr/bin/rancid-run.
***@ObserviumNYC:/var/log/rancid$ vi MVSNetwork.20130912.144417
gives me:
starting: Thu Sep 12 14:44:17 EDT 2013
ending: Thu Sep 12 14:44:17 EDT 2013
Regards,
Ryan Milton
MVS Network Manager
o: 201-447-1505 x124
c: 862-249-5230
www.mvsusa.com<http://www.mvsusa.com/>
[MVS final logo GOOD very small]
From: Aaron Dudek [mailto:***@gmail.com<mailto:***@gmail.com>]
Sent: Thursday, September 12, 2013 2:22 PM
To: Ryan Milton
Cc: Heasley; rancid-***@shrubbery.net<mailto:rancid-***@shrubbery.net>
Subject: Re: [rancid] Permissions and files
what happens when you just run it as the rancid user?
On Thursday, September 12, 2013, Ryan Milton wrote:
Ok, I have changed the ownership. I made a test config change on a device, ran rancid and exactly the same as:
sudo -i su -c /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid
gets me:
starting: Thu Sep 12 10:53:28 EDT 2013
ending: Thu Sep 12 10:53:28 EDT 2013
So, the config change doesn't show.
Regards,
Ryan Milton
MVS Network Manager
o: 201-447-1505 x124
c: 862-249-5230
www.mvsusa.com<http://www.mvsusa.com/>
[MVS final logo GOOD very small]
From: Heasley [mailto:***@shrubbery.net]
Sent: Thursday, September 12, 2013 1:40 PM
To: Ryan Milton
Cc: rancid-***@shrubbery.net<mailto:rancid-***@shrubbery.net>
Subject: Re: [rancid] Permissions and files
Am Sep 12, 2013 um 16:59 schrieb Ryan Milton <***@mvsusa.com<mailto:***@mvsusa.com>>:
<image001.gif>
I don't know where to go on this. I can't tell if my Rancid configuration is even working. I'm at the point of testing rancid-run manually to see what happens. I am getting a combination of "Permission Denied" errors on the .cloginrc file, "End of Run Not found" errors, and some others that I excerpted below. That said, I have an example of the file in /var/log/rancid from today and from Friday:
sudo -i su -c /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid
gets me:
starting: Thu Sep 12 10:53:28 EDT 2013
ending: Thu Sep 12 10:53:28 EDT 2013
VS:
starting: Fri Sep 6 15:57:50 EDT 2013
/usr/lib/rancid/bin/control_rancid: 206: /usr/lib/rancid/bin/control_rancid: cannot create routers.db: Permission denied
Fix that. chown -R rancid /var/rancid
comm: file 2 is not in sorted order
comm: file 2 is not in sorted order
comm: file 2 is not in sorted order
cvs add: scheduling file `94.229.11.1' for addition
cvs add: use `cvs commit' to add this file permanently
/var/lib/rancid/CVS/MVSNetwork/configs/94.229.11.1<http://94.229.11.1>,v <-- 94.229.11.1
initial revision: 1.1
Added 94.229.11.1
cvs add: scheduling file `94.229.11.2' for addition
cvs add: use `cvs commit' to add this file permanently
/var/lib/rancid/CVS/MVSNetwork/configs/94.229.11.2<http://94.229.11.2>,v <-- 94.229.11.2
initial revision: 1.1
Added 94.229.11.2
cvs add: scheduling file `94.229.11.3' for addition
cvs add: use `cvs commit' to add this file permanently
/var/lib/rancid/CVS/MVSNetwork/configs/94.229.11.3<http://94.229.11.3>,v <-- 94.229.11.3
initial revision: 1.1
Added 94.229.11.3
***TRUNCATED***
94.229.11.2 jlogin error: Error: couldn't read file "/home/rancid/.cloginrc": permission denied
94.229.11.2<http://94.229.11.2>: missed cmd(s): show chassis alarms,show chassis hardware detail,show system license,show chassis scb,show chassis feb,show chassis routing-engine,show chassis firmware,show version detail,show chassis feb detail,show configuration,show system boot-messages,show chassis cfeb,show chassis clocks,show chassis sfm detail,show chassis ssb,show chassis fpc detail,show chassis environment,show system core-dumps
94.229.11.2<http://94.229.11.2>: End of run not found
94.229.11.3 jlogin error: Error: couldn't read file "/home/rancid/.cloginrc": permission denied<
--_000_FE83190899DE5B41BD7B5C3FD84CDF8F35F43177mailnycmb5awinm_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle20
{mso-style-type:personal;
color:black;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal;
color:black;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle24
{mso-style-type:personal;
color:black;}
span.EmailStyle25
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">In your rancid router.db file that lists the devices you list the device type<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">e.g.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">sw1:cisco:up<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">sw2:juniper:up<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">sw3:force10:up<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">sw4:hp:up<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">etc.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net]
<b><span style="font-weight:bold">On Behalf Of </span></b>Ryan Milton<br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, September 12, 2013 4:45 PM<br>
<b><span style="font-weight:bold">To:</span></b> Hinote, Scotty (MSFC-IS40)[NICS]; Aaron Dudek<br>
<b><span style="font-weight:bold">Cc:</span></b> rancid-***@shrubbery.net<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [rancid] Permissions and files<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">Ahhhhh! Ok now if I am a multi-vendor operation, some Juniper, some HP, Netscreen, Cisco, etc, how do I set so that
the correct script runs for various device types? And would that be set in the chronjob the same way?<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Regards,<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Ryan Milton<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">MVS Network Manager<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">o: 201-447-1505 x124<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">c: 862-249-5230<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><a href="http://www.mvsusa.com/"><font color="#0563c1"><span style="color:#0563C1">www.mvsusa.com</span></font></a><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><img border="0" width="192" height="76" id="_x0000_i1025" src="cid:***@01CEAFD7.F370ABC0" alt="MVS final logo GOOD very small"><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">
Hinote, Scotty (MSFC-IS40)[NICS] [mailto:***@nasa.gov] <br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, September 12, 2013 4:39 PM<br>
<b><span style="font-weight:bold">To:</span></b> Ryan Milton; Aaron Dudek<br>
<b><span style="font-weight:bold">Cc:</span></b> rancid-***@shrubbery.net<br>
<b><span style="font-weight:bold">Subject:</span></b> RE: [rancid] Permissions and files<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">You should use the jlogin script for Juniper devices /usr/lib/rancid/bin/jlogin -f /var/lib/rancid/.cloginrc
X.X.X.X.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
Ryan Milton [<a href="mailto:***@mvsusa.com">mailto:***@mvsusa.com</a>] <br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, September 12, 2013 3:36 PM<br>
<b><span style="font-weight:bold">To:</span></b> Hinote, Scotty (MSFC-IS40)[NICS]; Aaron Dudek<br>
<b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:rancid-***@shrubbery.net">
rancid-***@shrubbery.net</a><br> <b><span style="font-weight:bold">Subject:</span></b> RE: [rancid] Permissions and files<o:p></o:p></span></font></p> </div> </div> <p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">Well, here is what I get, I am assuming its due to the fact that my equipment is Juniper:<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">***@ObserviumNYC:/var/lib/rancid$ /usr/lib/rancid/bin/clogin -f /var/lib/rancid/.cloginrc 94.XXX.11.1<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">94.XXX.11.1<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">spawn ssh -c 3des -x -l ryan 94.XXX.11.1<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><a href="mailto:***@94.229.11.1's">***@94.229.11.1's</a> password:<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">--- JUNOS 9.3R4.4 built 2009-08-12 04:44:38 UTC<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><a href="mailto:***@core1.ams1">***@core1.ams1</a>> enable<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> ^<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">unknown command.<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><a href="mailto:***@core1.ams1">***@core1.ams1</a>><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">Error: TIMEOUT reached<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">can not find channel named "exp6"<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> while executing<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">"send "\r""<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> ("foreach" body line 167)<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> invoked from within<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">"foreach router [lrange $argv $i end] {<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> set router [string tolower $router]<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> # attempt at platform switching.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> set platform ""<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> send_user ..."<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> (file "/usr/lib/rancid/bin/clogin" line 778)<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Regards,<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Ryan Milton<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">MVS Network Manager<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">o: 201-447-1505 x124<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">c: 862-249-5230<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><a href="http://www.mvsusa.com/"><font color="#0563c1"><span style="color:#0563C1">www.mvsusa.com</span></font></a><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><img border="0" width="192" height="76" id="_x0000_i1026" src="cid:***@01CEAFD7.F370ABC0" alt="MVS final logo GOOD very small"><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">
Hinote, Scotty (MSFC-IS40)[NICS] [<a href="mailto:***@nasa.gov">mailto:***@nasa.gov</a>]
<br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, September 12, 2013 4:29 PM<br>
<b><span style="font-weight:bold">To:</span></b> Ryan Milton; Aaron Dudek<br>
<b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:rancid-***@shrubbery.net">
rancid-***@shrubbery.net</a><br>
<b><span style="font-weight:bold">Subject:</span></b> RE: [rancid] Permissions and files<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">If you SSH from your rancid server to the device that you are trying to backup as the
rancid user that you have configured and execute a show running-config, do you receive any errors?<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:rancid-discuss-***@shrubbery.net">rancid-discuss-***@shrubbery.net</a> [<a href="mailto:rancid-discuss-***@shrubbery.net">mailto:rancid-discuss-***@shrubbery.net</a>]
<b><span style="font-weight:bold">On Behalf Of </span></b>Ryan Milton<br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, September 12, 2013 2:32 PM<br>
<b><span style="font-weight:bold">To:</span></b> Aaron Dudek<br>
<b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:rancid-***@shrubbery.net">
rancid-***@shrubbery.net</a><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [rancid] Permissions and files<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">OK, so now those permissions are fixed, I assume. That said, I still get nothing in that file when I just “rancid-run”.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Regards,<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Ryan Milton<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">MVS Network Manager<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">o: 201-447-1505 x124<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">c: 862-249-5230<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><a href="http://www.mvsusa.com/"><font color="#0563c1"><span style="color:#0563C1">www.mvsusa.com</span></font></a><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><img border="0" width="192" height="76" id="Picture_x0020_1" src="cid:***@01CEAFD7.F370ABC0" alt="MVS final logo GOOD very small"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">
Aaron Dudek [<a href="mailto:***@gmail.com">mailto:***@gmail.com</a>] <br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, September 12, 2013 3:15 PM<br>
<b><span style="font-weight:bold">To:</span></b> Ryan Milton<br>
<b><span style="font-weight:bold">Cc:</span></b> Heasley; <a href="mailto:rancid-***@shrubbery.net">
rancid-***@shrubbery.net</a><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [rancid] Permissions and files<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Verdana"><span style="font-size:12.0pt;font-family:"Verdana","sans-serif"">
On Thu, Sep 12, 2013 at 2:58 PM, Ryan Milton <***@mvsusa.com<mailto:***@mvsusa.com>> wrote:
Ok,
I got you. Seems everything in /var/lib/rancid/bin is root:
***@ObserviumNYC:/var/log/rancid$ cd /var/lib/rancid/bin/
***@ObserviumNYC:/var/lib/rancid/bin$ ls -lt
-rwxr-xr-x 1 root root 67004 Mar 5 2012 rancid
-rwxr-xr-x 1 root root 4420 Mar 5 2012 rancid-cvs
Regards,
Ryan Milton
MVS Network Manager
o: 201-447-1505 x124
c: 862-249-5230
www.mvsusa.com<http://www.mvsusa.com/>
[MVS final logo GOOD very small]
From: Aaron Dudek [mailto:***@gmail.com<mailto:***@gmail.com>]
Sent: Thursday, September 12, 2013 2:52 PM
To: Ryan Milton
Cc: Heasley; rancid-***@shrubbery.net<mailto:rancid-***@shrubbery.net>
Subject: Re: [rancid] Permissions and files
Not what I meant.
su - rancid
then do
pwd
then
/var/lib/rancid/bin/rancid-run
Where did "/usr/bin/rancid-run" come from? Because that is different then what you were trying to run before.
On Thu, Sep 12, 2013 at 2:47 PM, Ryan Milton <***@mvsusa.com<mailto:***@mvsusa.com>> wrote:
Ok, so since I'm following various guides (mostly the "Ubuntu server install), I am assuming that the command is /usr/bin/rancid-run.
***@ObserviumNYC:/var/log/rancid$ vi MVSNetwork.20130912.144417
gives me:
starting: Thu Sep 12 14:44:17 EDT 2013
ending: Thu Sep 12 14:44:17 EDT 2013
Regards,
Ryan Milton
MVS Network Manager
o: 201-447-1505 x124
c: 862-249-5230
www.mvsusa.com<http://www.mvsusa.com/>
[MVS final logo GOOD very small]
From: Aaron Dudek [mailto:***@gmail.com<mailto:***@gmail.com>]
Sent: Thursday, September 12, 2013 2:22 PM
To: Ryan Milton
Cc: Heasley; rancid-***@shrubbery.net<mailto:rancid-***@shrubbery.net>
Subject: Re: [rancid] Permissions and files
what happens when you just run it as the rancid user?
On Thursday, September 12, 2013, Ryan Milton wrote:
Ok, I have changed the ownership. I made a test config change on a device, ran rancid and exactly the same as:
sudo -i su -c /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid
gets me:
starting: Thu Sep 12 10:53:28 EDT 2013
ending: Thu Sep 12 10:53:28 EDT 2013
So, the config change doesn't show.
Regards,
Ryan Milton
MVS Network Manager
o: 201-447-1505 x124
c: 862-249-5230
www.mvsusa.com<http://www.mvsusa.com/>
[MVS final logo GOOD very small]
From: Heasley [mailto:***@shrubbery.net]
Sent: Thursday, September 12, 2013 1:40 PM
To: Ryan Milton
Cc: rancid-***@shrubbery.net<mailto:rancid-***@shrubbery.net>
Subject: Re: [rancid] Permissions and files
Am Sep 12, 2013 um 16:59 schrieb Ryan Milton <***@mvsusa.com<mailto:***@mvsusa.com>>:
<image001.gif>
I don't know where to go on this. I can't tell if my Rancid configuration is even working. I'm at the point of testing rancid-run manually to see what happens. I am getting a combination of "Permission Denied" errors on the .cloginrc file, "End of Run Not found" errors, and some others that I excerpted below. That said, I have an example of the file in /var/log/rancid from today and from Friday:
sudo -i su -c /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid
gets me:
starting: Thu Sep 12 10:53:28 EDT 2013
ending: Thu Sep 12 10:53:28 EDT 2013
VS:
starting: Fri Sep 6 15:57:50 EDT 2013
/usr/lib/rancid/bin/control_rancid: 206: /usr/lib/rancid/bin/control_rancid: cannot create routers.db: Permission denied
Fix that. chown -R rancid /var/rancid
comm: file 2 is not in sorted order
comm: file 2 is not in sorted order
comm: file 2 is not in sorted order
cvs add: scheduling file `94.229.11.1' for addition
cvs add: use `cvs commit' to add this file permanently
/var/lib/rancid/CVS/MVSNetwork/configs/94.229.11.1<http://94.229.11.1>,v <-- 94.229.11.1
initial revision: 1.1
Added 94.229.11.1
cvs add: scheduling file `94.229.11.2' for addition
cvs add: use `cvs commit' to add this file permanently
/var/lib/rancid/CVS/MVSNetwork/configs/94.229.11.2<http://94.229.11.2>,v <-- 94.229.11.2
initial revision: 1.1
Added 94.229.11.2
cvs add: scheduling file `94.229.11.3' for addition
cvs add: use `cvs commit' to add this file permanently
/var/lib/rancid/CVS/MVSNetwork/configs/94.229.11.3<http://94.229.11.3>,v <-- 94.229.11.3
initial revision: 1.1
Added 94.229.11.3
***TRUNCATED***
94.229.11.2 jlogin error: Error: couldn't read file "/home/rancid/.cloginrc": permission denied
94.229.11.2<http://94.229.11.2>: missed cmd(s): show chassis alarms,show chassis hardware detail,show system license,show chassis scb,show chassis feb,show chassis routing-engine,show chassis firmware,show version detail,show chassis feb detail,show configuration,show system boot-messages,show chassis cfeb,show chassis clocks,show chassis sfm detail,show chassis ssb,show chassis fpc detail,show chassis environment,show system core-dumps
94.229.11.2<http://94.229.11.2>: End of run not found
94.229.11.3 jlogin error: Error: couldn't read file "/home/rancid/.cloginrc": permission denied<
--_000_FE83190899DE5B41BD7B5C3FD84CDF8F35F43177mailnycmb5awinm_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle20
{mso-style-type:personal;
color:black;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal;
color:black;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle24
{mso-style-type:personal;
color:black;}
span.EmailStyle25
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">In your rancid router.db file that lists the devices you list the device type<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">e.g.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">sw1:cisco:up<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">sw2:juniper:up<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">sw3:force10:up<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">sw4:hp:up<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">etc.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net]
<b><span style="font-weight:bold">On Behalf Of </span></b>Ryan Milton<br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, September 12, 2013 4:45 PM<br>
<b><span style="font-weight:bold">To:</span></b> Hinote, Scotty (MSFC-IS40)[NICS]; Aaron Dudek<br>
<b><span style="font-weight:bold">Cc:</span></b> rancid-***@shrubbery.net<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [rancid] Permissions and files<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">Ahhhhh! Ok now if I am a multi-vendor operation, some Juniper, some HP, Netscreen, Cisco, etc, how do I set so that
the correct script runs for various device types? And would that be set in the chronjob the same way?<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Regards,<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Ryan Milton<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">MVS Network Manager<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">o: 201-447-1505 x124<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">c: 862-249-5230<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><a href="http://www.mvsusa.com/"><font color="#0563c1"><span style="color:#0563C1">www.mvsusa.com</span></font></a><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><img border="0" width="192" height="76" id="_x0000_i1025" src="cid:***@01CEAFD7.F370ABC0" alt="MVS final logo GOOD very small"><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">
Hinote, Scotty (MSFC-IS40)[NICS] [mailto:***@nasa.gov] <br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, September 12, 2013 4:39 PM<br>
<b><span style="font-weight:bold">To:</span></b> Ryan Milton; Aaron Dudek<br>
<b><span style="font-weight:bold">Cc:</span></b> rancid-***@shrubbery.net<br>
<b><span style="font-weight:bold">Subject:</span></b> RE: [rancid] Permissions and files<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">You should use the jlogin script for Juniper devices /usr/lib/rancid/bin/jlogin -f /var/lib/rancid/.cloginrc
X.X.X.X.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
Ryan Milton [<a href="mailto:***@mvsusa.com">mailto:***@mvsusa.com</a>] <br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, September 12, 2013 3:36 PM<br>
<b><span style="font-weight:bold">To:</span></b> Hinote, Scotty (MSFC-IS40)[NICS]; Aaron Dudek<br>
<b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:rancid-***@shrubbery.net">
rancid-***@shrubbery.net</a><br> <b><span style="font-weight:bold">Subject:</span></b> RE: [rancid] Permissions and files<o:p></o:p></span></font></p> </div> </div> <p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">Well, here is what I get, I am assuming its due to the fact that my equipment is Juniper:<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">***@ObserviumNYC:/var/lib/rancid$ /usr/lib/rancid/bin/clogin -f /var/lib/rancid/.cloginrc 94.XXX.11.1<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">94.XXX.11.1<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">spawn ssh -c 3des -x -l ryan 94.XXX.11.1<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><a href="mailto:***@94.229.11.1's">***@94.229.11.1's</a> password:<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">--- JUNOS 9.3R4.4 built 2009-08-12 04:44:38 UTC<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><a href="mailto:***@core1.ams1">***@core1.ams1</a>> enable<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> ^<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">unknown command.<o:p></o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p> <p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><a href="mailto:***@core1.ams1">***@core1.ams1</a>><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">Error: TIMEOUT reached<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">can not find channel named "exp6"<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> while executing<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">"send "\r""<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> ("foreach" body line 167)<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> invoked from within<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">"foreach router [lrange $argv $i end] {<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> set router [string tolower $router]<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> # attempt at platform switching.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> set platform ""<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> send_user ..."<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"> (file "/usr/lib/rancid/bin/clogin" line 778)<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Regards,<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Ryan Milton<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">MVS Network Manager<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">o: 201-447-1505 x124<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">c: 862-249-5230<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><a href="http://www.mvsusa.com/"><font color="#0563c1"><span style="color:#0563C1">www.mvsusa.com</span></font></a><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><img border="0" width="192" height="76" id="_x0000_i1026" src="cid:***@01CEAFD7.F370ABC0" alt="MVS final logo GOOD very small"><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">
Hinote, Scotty (MSFC-IS40)[NICS] [<a href="mailto:***@nasa.gov">mailto:***@nasa.gov</a>]
<br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, September 12, 2013 4:29 PM<br>
<b><span style="font-weight:bold">To:</span></b> Ryan Milton; Aaron Dudek<br>
<b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:rancid-***@shrubbery.net">
rancid-***@shrubbery.net</a><br>
<b><span style="font-weight:bold">Subject:</span></b> RE: [rancid] Permissions and files<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">If you SSH from your rancid server to the device that you are trying to backup as the
rancid user that you have configured and execute a show running-config, do you receive any errors?<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></font></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:rancid-discuss-***@shrubbery.net">rancid-discuss-***@shrubbery.net</a> [<a href="mailto:rancid-discuss-***@shrubbery.net">mailto:rancid-discuss-***@shrubbery.net</a>]
<b><span style="font-weight:bold">On Behalf Of </span></b>Ryan Milton<br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, September 12, 2013 2:32 PM<br>
<b><span style="font-weight:bold">To:</span></b> Aaron Dudek<br>
<b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:rancid-***@shrubbery.net">
rancid-***@shrubbery.net</a><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [rancid] Permissions and files<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">OK, so now those permissions are fixed, I assume. That said, I still get nothing in that file when I just “rancid-run”.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Regards,<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Ryan Milton<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">MVS Network Manager<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">o: 201-447-1505 x124<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">c: 862-249-5230<o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><a href="http://www.mvsusa.com/"><font color="#0563c1"><span style="color:#0563C1">www.mvsusa.com</span></font></a><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><img border="0" width="192" height="76" id="Picture_x0020_1" src="cid:***@01CEAFD7.F370ABC0" alt="MVS final logo GOOD very small"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";font-weight:bold">From:</span></font></b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">
Aaron Dudek [<a href="mailto:***@gmail.com">mailto:***@gmail.com</a>] <br>
<b><span style="font-weight:bold">Sent:</span></b> Thursday, September 12, 2013 3:15 PM<br>
<b><span style="font-weight:bold">To:</span></b> Ryan Milton<br>
<b><span style="font-weight:bold">Cc:</span></b> Heasley; <a href="mailto:rancid-***@shrubbery.net">
rancid-***@shrubbery.net</a><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [rancid] Permissions and files<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Verdana"><span style="font-size:12.0pt;font-family:"Verdana","sans-serif"">