Discussion:
[rancid] RANCID Debug Mode
Sean Murphy
2008-11-11 01:11:49 UTC
Permalink
I am trying to see the entire RANCID process from beginning to end first
with clogin and having it login run the config portion and finally logout.

I have tried /usr/local/libexec/rancid/clogin 10.0.0.1

This just shows the login portion. Is there a way to see everything?

Thanks.
Lance Vermilion
2008-11-11 15:38:12 UTC
Permalink
Sean,

clogin is purely the login script. You must run "rancid -d <host>" to
see what you are looking for.

-Lance
Post by Sean Murphy
I am trying to see the entire RANCID process from beginning to end first
with clogin and having it login run the config portion and finally logout.
I have tried /usr/local/libexec/rancid/clogin 10.0.0.1
This just shows the login portion. Is there a way to see everything?
Thanks.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Sean Murphy
2008-11-11 16:57:32 UTC
Permalink
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
OK I ran the command and received the following output.&nbsp; I thought I
could see it in real time like clogin unless this is an error.&nbsp; I
noticed that it said clogin not found but I can run that by itself and
its fine.<br>
<br>
<br>
raphael# ./rancid -d 10.0.0.1<br>
executing clogin -t 90 -c"admin show version;show version;show
redundancy secondary;show idprom backplane;show install active;admin
show env all;show env all;show rsp chassis-info;show gsr chassis;show
diag chassis-info;show boot;show bootvar;admin show variables boot;show
variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all
slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all
slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all
harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all
slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all
slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all
slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all
sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all
sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all
sec-slot2:;dir /all sec-disk2:;show controllers;show controllers
cbus;show diagbus;admin show diag;show diag;show module;show spe
version;show c7200;show inventory raw;show vtp status;show vlan;show
vlan-switch;show debug;show running-config;write term" 10.0.0.1<br>
clogin: not found<br>
10.0.0.1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir
/all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all
disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all
sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all
sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all
harddiskb:,show variables boot,show boot,show inventory raw,dir /all
slavedisk1:,show env all,show module,admin show env all,show
controllers,admin show version,show diagbus,dir /all slavedisk0:,show
debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir
/all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir
/all slot2:,dir /all harddisk:,dir /all slot0:,dir /all
sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
running-config,show c7200,dir /all slot1:<br>
10.0.0.1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir
/all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all
disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all
sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all
sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all
harddiskb:,show variables boot,show boot,show inventory raw,dir /all
slavedisk1:,show env all,show module,admin show env all,show
controllers,admin show version,show diagbus,dir /all slavedisk0:,show
debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir
/all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir
/all slot2:,dir /all harddisk:,dir /all slot0:,dir /all
sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
running-config,show c7200,dir /all slot1:<br>
10.0.0.1: End of run not found<br>
10.0.0.1: End of run not found<br>
!<br>
raphael# <br>
<br>
<br>
Lance Vermilion wrote:
<blockquote
cite="mid:***@mail.gmail.com"
type="cite">
<pre wrap="">Sean,

clogin is purely the login script. You must run "rancid -d &lt;host&gt;" to
see what you are looking for.

-Lance

On Mon, Nov 10, 2008 at 6:11 PM, Sean Murphy <a class="moz-txt-link-rfc2396E" href="mailto:***@calarts.edu">&lt;***@calarts.edu&gt;</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I am trying to see the entire RANCID process from beginning to end first
with clogin and having it login run the config portion and finally logout.

I have tried /usr/local/libexec/rancid/clogin 10.0.0.1

This just shows the login portion. Is there a way to see everything?

Thanks.
_______________________________________________
Rancid-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rancid-***@shrubbery.net">Rancid-***@shrubbery.net</a>
<a class="moz-txt-link-freetext" href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a>

</pre>
</blockquote>
<pre wrap=""><!---->_______________________________________________
Rancid-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rancid-***@shrubbery.net">Rancid-***@shrubbery.net</a>
<a class="moz-txt-link-freetext" href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a>
</pre>
</blockquote>
</body>
</html>
Mike Ashcraft
2008-11-11 17:33:02 UTC
Permalink
Sean,



You need to run this in the same environment that rancid runs in.
Ideally as the same user.



Mike



From: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Sean Murphy
Sent: Tuesday, November 11, 2008 9:58 AM
To: Lance Vermilion
Cc: rancid-***@shrubbery.net
Subject: [rancid] Re: RANCID Debug Mode



OK I ran the command and received the following output. I thought I
could see it in real time like clogin unless this is an error. I
noticed that it said clogin not found but I can run that by itself and
its fine.


raphael# ./rancid -d 10.0.0.1
executing clogin -t 90 -c"admin show version;show version;show
redundancy secondary;show idprom backplane;show install active;admin
show env all;show env all;show rsp chassis-info;show gsr chassis;show
diag chassis-info;show boot;show bootvar;admin show variables boot;show
variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all
slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all
slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all
harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all
slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all
slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all
slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all
sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all
sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all
sec-slot2:;dir /all sec-disk2:;show controllers;show controllers
cbus;show diagbus;admin show diag;show diag;show module;show spe
version;show c7200;show inventory raw;show vtp status;show vlan;show
vlan-switch;show debug;show running-config;write term" 10.0.0.1
clogin: not found
10.0.0.1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir
/all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all
disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all
sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all
sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all
harddiskb:,show variables boot,show boot,show inventory raw,dir /all
slavedisk1:,show env all,show module,admin show env all,show
controllers,admin show version,show diagbus,dir /all slavedisk0:,show
debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir
/all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir
/all slot2:,dir /all harddisk:,dir /all slot0:,dir /all
sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
running-config,show c7200,dir /all slot1:
10.0.0.1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir
/all sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all
disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all
sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all
sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all
harddiskb:,show variables boot,show boot,show inventory raw,dir /all
slavedisk1:,show env all,show module,admin show env all,show
controllers,admin show version,show diagbus,dir /all slavedisk0:,show
debug,show idprom backplane,dir /all bootflash:,dir /all sec-slot0:,dir
/all sec-disk1:,write term,show vtp status,dir /all sup-bootflash:,dir
/all slot2:,dir /all harddisk:,dir /all slot0:,dir /all
sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
running-config,show c7200,dir /all slot1:
10.0.0.1: End of run not found
10.0.0.1: End of run not found
!
raphael#


Lance Vermilion wrote:

Sean,

clogin is purely the login script. You must run "rancid -d <host>" to
see what you are looking for.

-Lance

On Mon, Nov 10, 2008 at 6:11 PM, Sean Murphy <***@calarts.edu>
<mailto:***@calarts.edu> wrote:


I am trying to see the entire RANCID process from beginning to
end first
with clogin and having it login run the config portion and
finally logout.

I have tried /usr/local/libexec/rancid/clogin 10.0.0.1

This just shows the login portion. Is there a way to see
everything?

Thanks.
_______________________________________________
Rancid-discuss mailing list
Rancid-***@shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Sean Murphy
2008-11-11 18:18:28 UTC
Permalink
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Sorry I didn't clarify the user. This is a test box, I am using the
root account as the rancid user and the .cloginrc is located in root's
home directory.<br>
<br>
<br>
Mike Ashcraft wrote:
<blockquote
cite="mid:***@EXCHANGE0.orm.omniture.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face

{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:Consolas;
panose-1:2 11 6 9 2 2 4 3 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";
color:black;}
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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</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]-->
<div class="Section1">
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">Sean,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">You
need to run this in the same environment that rancid runs
in.&nbsp; Ideally as the same user.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">Mike<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;; color: windowtext;">From:</span></b><span
style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:rancid-discuss-***@shrubbery.net">rancid-discuss-***@shrubbery.net</a>
[<a class="moz-txt-link-freetext" href="mailto:rancid-discuss-***@shrubbery.net">mailto:rancid-discuss-***@shrubbery.net</a>] <b>On Behalf Of </b>Sean
Murphy<br>
<b>Sent:</b> Tuesday, November 11, 2008 9:58 AM<br>
<b>To:</b> Lance Vermilion<br>
<b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:rancid-***@shrubbery.net">rancid-***@shrubbery.net</a><br>
<b>Subject:</b> [rancid] Re: RANCID Debug Mode<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">OK I ran the command and received the following
output.&nbsp; I thought I could see it in real time like clogin unless this
is
an error.&nbsp; I noticed that it said clogin not found but I can run that
by
itself and its fine.<br>
<br>
<br>
raphael# ./rancid -d 10.0.0.1<br>
executing clogin -t 90 -c"admin show version;show version;show
redundancy
secondary;show idprom backplane;show install active;admin show env
all;show env
all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show
boot;show bootvar;admin show variables boot;show variables boot;show
flash;dir
/all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir
/all
slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all
harddisk:;dir
/all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all
sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all
slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all
slavedisk1:;dir
/all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir
/all
sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all
sec-disk0:;dir
/all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all
sec-disk2:;show controllers;show controllers cbus;show diagbus;admin
show
diag;show diag;show module;show spe version;show c7200;show inventory
raw;show
vtp status;show vlan;show vlan-switch;show debug;show
running-config;write
term" 10.0.0.1<br>
clogin: not found<br>
10.0.0.1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir
/all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all
sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all
disk0:,show
install active,show bootvar,dir /all slaveslot0:,dir /all
sec-slot1:,dir /all
harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show
variables
boot,show boot,show inventory raw,dir /all slavedisk1:,show env
all,show
module,admin show env all,show controllers,admin show version,show
diagbus,dir
/all slavedisk0:,show debug,show idprom backplane,dir /all
bootflash:,dir /all
sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all
sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir
/all
sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir /all
slaveslot1:,dir /all nvram:,show version,show vlan-switch,admin show
variables
boot,show redundancy secondary,show running-config,show c7200,dir /all
slot1:<br>
10.0.0.1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir
/all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all
sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all
disk0:,show
install active,show bootvar,dir /all slaveslot0:,dir /all
sec-slot1:,dir /all
harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show
variables
boot,show boot,show inventory raw,dir /all slavedisk1:,show env
all,show
module,admin show env all,show controllers,admin show version,show
diagbus,dir
/all slavedisk0:,show debug,show idprom backplane,dir /all
bootflash:,dir /all
sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all
sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir
/all
sup-microcode:,show vlan,dir /all slavebootflash:,show controllers
cbus,dir
/all slaveslot1:,dir /all nvram:,show version,show vlan-switch,admin
show
variables boot,show redundancy secondary,show running-config,show
c7200,dir
/all slot1:<br>
10.0.0.1: End of run not found<br>
10.0.0.1: End of run not found<br>
!<br>
raphael# <br>
<br>
<br>
Lance Vermilion wrote: <o:p></o:p></p> <pre>Sean,<o:p></o:p></pre> <pre><o:p>&nbsp;</o:p></pre> <pre>clogin is purely the login script. You must run "rancid -d &lt;host&gt;" to<o:p></o:p></pre>
<pre>see what you are looking for.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>-Lance<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>On Mon, Nov 10, 2008 at 6:11 PM, Sean Murphy <a
moz-do-not-send="true" href="mailto:***@calarts.edu">&lt;***@calarts.edu&gt;</a> wrote:<o:p></o:p></pre>
<pre>&nbsp; <o:p></o:p></pre>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;">
<pre>I am trying to see the entire RANCID process from beginning to end first<o:p></o:p></pre>
<pre>with clogin and having it login run the config portion and finally logout.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>I have tried /usr/local/libexec/rancid/clogin 10.0.0.1<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>This just shows the login portion.&nbsp; Is there a way to see everything?<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Thanks.<o:p></o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Rancid-discuss mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true"
href="mailto:Rancid-***@shrubbery.net">Rancid-***@shrubbery.net</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true"
href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&nbsp;&nbsp;&nbsp; <o:p></o:p></pre>
</blockquote>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Rancid-discuss mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true"
href="mailto:Rancid-***@shrubbery.net">Rancid-***@shrubbery.net</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true"
href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><o:p></o:p></pre>
<pre>&nbsp; <o:p></o:p></pre>
</div>
</blockquote>
</body>
</html>
Sean Murphy
2008-11-11 18:27:37 UTC
Permalink
It looks like there all in the same directory and rancid script does not
show a path to clogin

raphael# grep clogin rancid
$timeo = 90; # clogin timeout in seconds
print STDERR "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n"
if ($debug);
print STDOUT "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n"
if ($log);
system "clogin -t $timeo -c \"$cisco_cmds\" $host </dev/null >
$host.raw 2>&1" || die "clogin failed for $host: $!\n";
open(INPUT, "< $host.raw") || die "clogin failed for $host: $!\n";
open(INPUT,"clogin -t $timeo -c \"$cisco_cmds\" $host </dev/null
|") || die "clogin failed for $host: $!\n";
print STDOUT ("$host clogin error: $_");
print STDERR ("$host clogin error: $_") if ($debug);
raphael#


raphael# ls -la /usr/local/libexec/rancid
total 698
drwxr-xr-x 2 root wheel 1024 Nov 11 10:23 .
drwxr-xr-x 3 root wheel 512 Nov 10 18:08 ..
-r-xr-xr-x 1 root wheel 14384 Nov 10 18:08 agmrancid
-r-xr-xr-x 1 root wheel 14160 Nov 10 18:08 alogin
-r-xr-xr-x 1 root wheel 8479 Nov 10 18:08 arancid
-r-xr-xr-x 1 root wheel 17228 Nov 10 18:08 blogin
-r-xr-xr-x 1 root wheel 8180 Nov 10 18:08 brancid
-r-xr-xr-x 1 root wheel 35477 Nov 10 18:08 cat5rancid
-r-xr-xr-x 1 root wheel 24635 Nov 10 18:08 clogin
-r-xr-xr-x 1 root wheel 12451 Nov 10 18:08 control_rancid
-r-xr-xr-x 1 root wheel 21290 Nov 10 18:08 cssrancid
-r-xr-xr-x 1 root wheel 13129 Nov 10 18:08 elogin
-r-xr-xr-x 1 root wheel 8682 Nov 10 18:08 erancid
-r-xr-xr-x 1 root wheel 37646 Nov 10 18:08 f10rancid
-r-xr-xr-x 1 root wheel 18172 Nov 10 18:08 flogin
-r-xr-xr-x 1 root wheel 7711 Nov 10 18:08 fnrancid
-r-xr-xr-x 1 root wheel 12978 Nov 10 18:08 francid
-r-xr-xr-x 1 root wheel 20345 Nov 10 18:08 hlogin
-r-xr-xr-x 1 root wheel 12220 Nov 10 18:08 hpuifilter
-r-xr-xr-x 1 root wheel 16049 Nov 10 18:08 hrancid
-r-xr-xr-x 1 root wheel 13010 Nov 10 18:08 htlogin
-r-xr-xr-x 1 root wheel 7446 Nov 10 18:08 htrancid
-r-xr-xr-x 1 root wheel 18507 Nov 10 18:08 jerancid
-r-xr-xr-x 1 root wheel 14735 Nov 10 18:08 jlogin
-r-xr-xr-x 1 root wheel 20228 Nov 10 18:08 jrancid
-r-xr-xr-x 1 root wheel 23076 Nov 10 18:08 lg.cgi
-r-xr-xr-x 1 root wheel 6384 Nov 10 18:08 lgform.cgi
-r-xr-xr-x 1 root wheel 11870 Nov 10 18:08 mrancid
-r-xr-xr-x 1 root wheel 14588 Nov 10 18:08 nlogin
-r-xr-xr-x 1 root wheel 9676 Nov 10 18:08 nrancid
-r-xr-xr-x 1 root wheel 20307 Nov 10 18:08 nslogin
-r-xr-xr-x 1 root wheel 8538 Nov 10 18:08 nsrancid
-r-xr-xr-x 1 root wheel 4609 Nov 10 18:08 par
-r-xr-xr-x 1 root wheel 16956 Nov 10 18:08 prancid
-r-xr-xr-x 1 root wheel 59970 Nov 10 18:08 rancid
-r-xr-xr-x 1 root wheel 2954 Nov 10 18:08 rancid-cvs
-r-xr-xr-x 1 root wheel 1995 Nov 10 18:08 rancid-fe
-r-xr-xr-x 1 root wheel 3452 Nov 10 18:08 rancid-run
-r-xr-xr-x 1 root wheel 23562 Nov 10 18:08 rivlogin
-r-xr-xr-x 1 root wheel 9098 Nov 10 18:08 rivrancid
-r-xr-xr-x 1 root wheel 11416 Nov 10 18:08 rrancid
-r-xr-xr-x 1 root wheel 10566 Nov 10 18:08 srancid
-r-xr-xr-x 1 root wheel 14220 Nov 10 18:08 tntlogin
-r-xr-xr-x 1 root wheel 8084 Nov 10 18:08 tntrancid
-r-xr-xr-x 1 root wheel 14819 Nov 10 18:08 xrancid
-r-xr-xr-x 1 root wheel 11930 Nov 10 18:08 zrancid
raphael#
verify in your rancid script the location of clogin. (grep clogin
/usr/local/libexec/rancid/bin/rancid).
Your rancid stuff should be located in the bin directory inside of
your rancid directory. Like so.
/usr/local/libexec/rancid/bin/clogin
you mentioned the following as your location to clogin
/usr/local/libexec/rancid/clogin
OK I ran the command and received the following output. I thought I could
see it in real time like clogin unless this is an error. I noticed that it
said clogin not found but I can run that by itself and its fine.
raphael# ./rancid -d 10.0.0.1
executing clogin -t 90 -c"admin show version;show version;show redundancy
secondary;show idprom backplane;show install active;admin show env all;show
env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show
boot;show bootvar;admin show variables boot;show variables boot;show
flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all
disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir
/all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all
sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all
slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all
slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all
slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all
sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all
sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show
controllers;show controllers cbus;show diagbus;admin show diag;show
diag;show module;show spe version;show c7200;show inventory raw;show vtp
status;show vlan;show vlan-switch;show debug;show running-config;write term"
10.0.0.1
clogin: not found
10.0.0.1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all
sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show
install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir
/all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables
boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show
module,admin show env all,show controllers,admin show version,show
diagbus,dir /all slavedisk0:,show debug,show idprom backplane,dir /all
bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp
status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all
slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show
controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
10.0.0.1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all
sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show
install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir
/all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables
boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show
module,admin show env all,show controllers,admin show version,show
diagbus,dir /all slavedisk0:,show debug,show idprom backplane,dir /all
bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp
status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all
slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show
controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
10.0.0.1: End of run not found
10.0.0.1: End of run not found
!
raphael#
Sean,
clogin is purely the login script. You must run "rancid -d <host>" to
see what you are looking for.
-Lance
I am trying to see the entire RANCID process from beginning to end first
with clogin and having it login run the config portion and finally logout.
I have tried /usr/local/libexec/rancid/clogin 10.0.0.1
This just shows the login portion. Is there a way to see everything?
Thanks.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2008-11-11 19:29:49 UTC
Permalink
Post by Sean Murphy
It looks like there all in the same directory and rancid script does not
show a path to clogin
it inherits PATH from the shell.
Sean Murphy
2008-11-11 21:02:04 UTC
Permalink
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thats what I needed! Changing roots path worked!<br>
<br>
I have errors on the bottom of the script "10.0.0.1: End of run not
found" has anyone seen this before?<br>
<br>
raphael# set path = ($path /usr/local/rancid/bin)<br>
<br>
raphael# which rancid<br>
/usr/local/rancid/bin/rancid<br>
<br>
raphael# which clogin<br>
/usr/local/rancid/bin/clogin<br>
<br>
raphael# rancid -d 10.0.0.1<br>
executing clogin -t 90 -c"admin show version;show version;show
redundancy secondary;show idprom backplane;show install active;admin
show env all;show env all;show rsp chassis-info;show gsr chassis;show
diag chassis-info;show boot;show bootvar;admin show variables boot;show
variables boot;show flash;dir /all nvram:;dir /all bootflash:;dir /all
slot0:;dir /all disk0:;dir /all slot1:;dir /all disk1:;dir /all
slot2:;dir /all disk2:;dir /all harddisk:;dir /all harddiska:;dir /all
harddiskb:;dir /all sup-bootflash:;dir /all sup-microcode:;dir /all
slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all
slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all
slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all
sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all
sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all
sec-slot2:;dir /all sec-disk2:;show controllers;show controllers
cbus;show diagbus;admin show diag;show diag;show module;show spe
version;show c7200;show inventory raw;show vtp status;show vlan;show
vlan-switch;show debug;show running-config;write term" 10.0.0.1<br>
PROMPT MATCH: E200C-S50#<br>
HIT COMMAND:E200C-S50#admin show version<br>
&nbsp;&nbsp;&nbsp; In ShowVersion: E200C-S50#admin show version<br>
HIT COMMAND:E200C-S50#show version<br>
&nbsp;&nbsp;&nbsp; In ShowVersion: E200C-S50#show version<br>
HIT COMMAND:E200C-S50#show redundancy secondary<br>
&nbsp;&nbsp;&nbsp; In ShowRedundancy: E200C-S50#show redundancy secondary<br>
HIT COMMAND:E200C-S50#show idprom backplane<br>
&nbsp;&nbsp;&nbsp; In ShowIDprom: E200C-S50#show idprom backplane<br>
HIT COMMAND:E200C-S50#show install active<br>
&nbsp;&nbsp;&nbsp; In ShowInstallActive: E200C-S50#show install active<br>
HIT COMMAND:E200C-S50#admin show env all<br>
&nbsp;&nbsp;&nbsp; In ShowEnv: E200C-S50#admin show env all<br>
HIT COMMAND:E200C-S50#show env all<br>
&nbsp;&nbsp;&nbsp; In ShowEnv: E200C-S50#show env all<br>
HIT COMMAND:E200C-S50#show rsp chassis-info<br>
&nbsp;&nbsp;&nbsp; In ShowRSP: E200C-S50#show rsp chassis-info<br>
HIT COMMAND:E200C-S50#show gsr chassis<br>
&nbsp;&nbsp;&nbsp; In ShowGSR: E200C-S50#show gsr chassis<br>
HIT COMMAND:E200C-S50#show diag chassis-info<br>
&nbsp;&nbsp;&nbsp; In ShowGSR: E200C-S50#show diag chassis-info<br>
HIT COMMAND:E200C-S50#show boot<br>
&nbsp;&nbsp;&nbsp; In ShowBoot: E200C-S50#show boot<br>
HIT COMMAND:E200C-S50#show bootvar<br>
&nbsp;&nbsp;&nbsp; In ShowBoot: E200C-S50#show bootvar<br>
HIT COMMAND:E200C-S50#admin show variables boot<br>
&nbsp;&nbsp;&nbsp; In ShowBoot: E200C-S50#admin show variables boot<br>
HIT COMMAND:E200C-S50#show variables boot<br>
&nbsp;&nbsp;&nbsp; In ShowBoot: E200C-S50#show variables boot<br>
HIT COMMAND:E200C-S50#show flash<br>
&nbsp;&nbsp;&nbsp; In ShowFlash: E200C-S50#show flash<br>
HIT COMMAND:E200C-S50#dir /all nvram:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all nvram:<br>
HIT COMMAND:E200C-S50#dir /all bootflash:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all bootflash:<br>
HIT COMMAND:E200C-S50#dir /all slot0:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all slot0:<br>
HIT COMMAND:E200C-S50#dir /all disk0:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all disk0:<br>
HIT COMMAND:E200C-S50#dir /all slot1:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all slot1:<br>
HIT COMMAND:E200C-S50#dir /all disk1:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all disk1:<br>
HIT COMMAND:E200C-S50#dir /all slot2:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all slot2:<br>
HIT COMMAND:E200C-S50#dir /all disk2:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all disk2:<br>
HIT COMMAND:E200C-S50#dir /all harddisk:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all harddisk:<br>
HIT COMMAND:E200C-S50#dir /all harddiska:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all harddiska:<br>
HIT COMMAND:E200C-S50#dir /all harddiskb:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all harddiskb:<br>
HIT COMMAND:E200C-S50#dir /all sup-bootflash:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all sup-bootflash:<br>
HIT COMMAND:E200C-S50#dir /all sup-microcode:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all sup-microcode:<br>
HIT COMMAND:E200C-S50#dir /all slavenvram:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all slavenvram:<br>
HIT COMMAND:E200C-S50#dir /all slavebootflash:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all slavebootflash:<br>
HIT COMMAND:E200C-S50#dir /all slaveslot0:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all slaveslot0:<br>
HIT COMMAND:E200C-S50#dir /all slavedisk0:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all slavedisk0:<br>
HIT COMMAND:E200C-S50#dir /all slaveslot1:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all slaveslot1:<br>
HIT COMMAND:E200C-S50#dir /all slavedisk1:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all slavedisk1:<br>
HIT COMMAND:E200C-S50#dir /all slaveslot2:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all slaveslot2:<br>
HIT COMMAND:E200C-S50#dir /all slavedisk2:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all slavedisk2:<br>
HIT COMMAND:E200C-S50#dir /all slavesup-bootflash:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all slavesup-bootflash:<br>
HIT COMMAND:E200C-S50#dir /all sec-nvram:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all sec-nvram:<br>
HIT COMMAND:E200C-S50#dir /all sec-bootflash:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all sec-bootflash:<br>
HIT COMMAND:E200C-S50#dir /all sec-slot0:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all sec-slot0:<br>
HIT COMMAND:E200C-S50#dir /all sec-disk0:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all sec-disk0:<br>
HIT COMMAND:E200C-S50#dir /all sec-slot1:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all sec-slot1:<br>
HIT COMMAND:E200C-S50#dir /all sec-disk1:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all sec-disk1:<br>
HIT COMMAND:E200C-S50#dir /all sec-slot2:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all sec-slot2:<br>
HIT COMMAND:E200C-S50#dir /all sec-disk2:<br>
&nbsp;&nbsp;&nbsp; In DirSlotN: E200C-S50#dir /all sec-disk2:<br>
HIT COMMAND:E200C-S50#show controllers<br>
&nbsp;&nbsp;&nbsp; In ShowContAll: E200C-S50#show controllers<br>
HIT COMMAND:E200C-S50#show controllers cbus<br>
&nbsp;&nbsp;&nbsp; In ShowContCbus: E200C-S50#show controllers cbus<br>
HIT COMMAND:E200C-S50#show diagbus<br>
&nbsp;&nbsp;&nbsp; In ShowDiagbus: E200C-S50#show diagbus<br>
HIT COMMAND:E200C-S50#admin show diag<br>
&nbsp;&nbsp;&nbsp; In ShowDiag: E200C-S50#admin show diag<br>
HIT COMMAND:E200C-S50#show diag<br>
&nbsp;&nbsp;&nbsp; In ShowDiag: E200C-S50#show diag<br>
HIT COMMAND:E200C-S50#show module<br>
&nbsp;&nbsp;&nbsp; In ShowModule: E200C-S50#show module<br>
HIT COMMAND:E200C-S50#show spe version<br>
&nbsp;&nbsp;&nbsp; In ShowSpeVersion: E200C-S50#show spe version<br>
HIT COMMAND:E200C-S50#show c7200<br>
&nbsp;&nbsp;&nbsp; In ShowC7200: E200C-S50#show c7200<br>
HIT COMMAND:E200C-S50#show inventory raw<br>
&nbsp;&nbsp;&nbsp; In ShowInventory: E200C-S50#show inventory raw<br>
HIT COMMAND:E200C-S50#show vtp status<br>
&nbsp;&nbsp;&nbsp; In ShowVTP: E200C-S50#show vtp status<br>
HIT COMMAND:E200C-S50#show vlan<br>
&nbsp;&nbsp;&nbsp; In ShowVLAN: E200C-S50#show vlan<br>
HIT COMMAND:E200C-S50#show vlan-switch<br>
&nbsp;&nbsp;&nbsp; In ShowVLAN: E200C-S50#show vlan-switch<br>
HIT COMMAND:E200C-S50#show debug<br>
&nbsp;&nbsp;&nbsp; In ShowDebug: E200C-S50#show debug<br>
HIT COMMAND:E200C-S50#show running-config<br>
&nbsp;&nbsp;&nbsp; In WriteTerm: E200C-S50#show running-config<br>
HIT COMMAND:E200C-S50#write term<br>
&nbsp;&nbsp;&nbsp; In WriteTerm: E200C-S50#write term<br>
10.0.0.1: End of run not found<br>
10.0.0.1: End of run not found<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^<br>
raphael# <br>
<br>
<br>
<br>
<br>
john heasley wrote:
<blockquote cite="mid:***@shrubbery.net" type="cite">
<pre wrap="">Tue, Nov 11, 2008 at 10:27:37AM -0800, Sean Murphy:
</pre>
<blockquote type="cite">
<pre wrap="">It looks like there all in the same directory and rancid script does not
show a path to clogin

</pre>
</blockquote>
<pre wrap=""><!---->
it inherits PATH from the shell.
</pre>
</blockquote>
</body>
</html>
john heasley
2008-11-11 21:11:31 UTC
Permalink
Post by Sean Murphy
Thats what I needed! Changing roots path worked!
I have errors on the bottom of the script "10.0.0.1: End of run not
found" has anyone seen this before?
raphael# set path = ($path /usr/local/rancid/bin)
this happens when the doesnt have permissions to read the config, the
config is truncated due to memory limitation or premature disconnect,
the wrong device type is used in router.db, or something in the config
confuses the script and it misses the end marker. i'd guess one of the
first 3 causes.

please stop sending html mail.
Jethro R Binks
2008-11-11 21:29:30 UTC
Permalink
Post by Sean Murphy
Thats what I needed! Changing roots path worked!
I have errors on the bottom of the script "10.0.0.1: End of run not
found" has anyone seen this before?
The error is very often discussed on the list; see John's reply for more
details.

For reference, when I need to see the detail of what is really going on, I
do the following (the rancid programs are not in my usual path):

env NOPIPE=y PATH=${PATH}:/usr/local/libexec/rancid rancid -d devicename

which will produce devicename.raw and and devicename.new files in the
current directory which can be examined along with the chatty output.
Sean Murphy
2008-11-11 22:39:41 UTC
Permalink
Thank You all for your help. Debuging works and I think I have tracked
down the issue to the Force10 S50 with "SFTOS" software running on it.
The Cisco Switches and Routers backup fine. I have tried to apply the
fix to the clogin and force10.in. that a saw on an earlier post. It
now captures some of the config but stops for some reason in mid config
and RANCID rights the output in the configs directory.

here is the fix I followed.
http://www.shrubbery.net/pipermail/rancid-discuss/2008-April/002971.html

Does anyone know of a fix for the force10 S50s and SFTOS?
Post by Jethro R Binks
Post by Sean Murphy
Thats what I needed! Changing roots path worked!
I have errors on the bottom of the script "10.0.0.1: End of run not
found" has anyone seen this before?
The error is very often discussed on the list; see John's reply for more
details.
For reference, when I need to see the detail of what is really going on, I
env NOPIPE=y PATH=${PATH}:/usr/local/libexec/rancid rancid -d devicename
which will produce devicename.raw and and devicename.new files in the
current directory which can be examined along with the chatty output.
Lance Vermilion
2008-11-11 21:15:05 UTC
Permalink
Sean,

Are you running this against Cisco IOS gear? If so you will need to
make sure you are running it as the rancid user or source the rancid
file that sets all the env stuff. I think the file is located in
"<rancid_home>/etc". Also check what John had mentioned.

-Lance
Post by Sean Murphy
Thats what I needed! Changing roots path worked!
I have errors on the bottom of the script "10.0.0.1: End of run not found"
has anyone seen this before?
raphael# set path = ($path /usr/local/rancid/bin)
raphael# which rancid
/usr/local/rancid/bin/rancid
raphael# which clogin
/usr/local/rancid/bin/clogin
raphael# rancid -d 10.0.0.1
executing clogin -t 90 -c"admin show version;show version;show redundancy
secondary;show idprom backplane;show install active;admin show env all;show
env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show
boot;show bootvar;admin show variables boot;show variables boot;show
flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all
disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir
/all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all
sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all
slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all
slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all
slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all
sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all
sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show
controllers;show controllers cbus;show diagbus;admin show diag;show
diag;show module;show spe version;show c7200;show inventory raw;show vtp
status;show vlan;show vlan-switch;show debug;show running-config;write term"
10.0.0.1
PROMPT MATCH: E200C-S50#
HIT COMMAND:E200C-S50#admin show version
In ShowVersion: E200C-S50#admin show version
HIT COMMAND:E200C-S50#show version
In ShowVersion: E200C-S50#show version
HIT COMMAND:E200C-S50#show redundancy secondary
In ShowRedundancy: E200C-S50#show redundancy secondary
HIT COMMAND:E200C-S50#show idprom backplane
In ShowIDprom: E200C-S50#show idprom backplane
HIT COMMAND:E200C-S50#show install active
In ShowInstallActive: E200C-S50#show install active
HIT COMMAND:E200C-S50#admin show env all
In ShowEnv: E200C-S50#admin show env all
HIT COMMAND:E200C-S50#show env all
In ShowEnv: E200C-S50#show env all
HIT COMMAND:E200C-S50#show rsp chassis-info
In ShowRSP: E200C-S50#show rsp chassis-info
HIT COMMAND:E200C-S50#show gsr chassis
In ShowGSR: E200C-S50#show gsr chassis
HIT COMMAND:E200C-S50#show diag chassis-info
In ShowGSR: E200C-S50#show diag chassis-info
HIT COMMAND:E200C-S50#show boot
In ShowBoot: E200C-S50#show boot
HIT COMMAND:E200C-S50#show bootvar
In ShowBoot: E200C-S50#show bootvar
HIT COMMAND:E200C-S50#admin show variables boot
In ShowBoot: E200C-S50#admin show variables boot
HIT COMMAND:E200C-S50#show variables boot
In ShowBoot: E200C-S50#show variables boot
HIT COMMAND:E200C-S50#show flash
In ShowFlash: E200C-S50#show flash
HIT COMMAND:E200C-S50#show controllers
In ShowContAll: E200C-S50#show controllers
HIT COMMAND:E200C-S50#show controllers cbus
In ShowContCbus: E200C-S50#show controllers cbus
HIT COMMAND:E200C-S50#show diagbus
In ShowDiagbus: E200C-S50#show diagbus
HIT COMMAND:E200C-S50#admin show diag
In ShowDiag: E200C-S50#admin show diag
HIT COMMAND:E200C-S50#show diag
In ShowDiag: E200C-S50#show diag
HIT COMMAND:E200C-S50#show module
In ShowModule: E200C-S50#show module
HIT COMMAND:E200C-S50#show spe version
In ShowSpeVersion: E200C-S50#show spe version
HIT COMMAND:E200C-S50#show c7200
In ShowC7200: E200C-S50#show c7200
HIT COMMAND:E200C-S50#show inventory raw
In ShowInventory: E200C-S50#show inventory raw
HIT COMMAND:E200C-S50#show vtp status
In ShowVTP: E200C-S50#show vtp status
HIT COMMAND:E200C-S50#show vlan
In ShowVLAN: E200C-S50#show vlan
HIT COMMAND:E200C-S50#show vlan-switch
In ShowVLAN: E200C-S50#show vlan-switch
HIT COMMAND:E200C-S50#show debug
In ShowDebug: E200C-S50#show debug
HIT COMMAND:E200C-S50#show running-config
In WriteTerm: E200C-S50#show running-config
HIT COMMAND:E200C-S50#write term
In WriteTerm: E200C-S50#write term
10.0.0.1: End of run not found
10.0.0.1: End of run not found
^
raphael#
It looks like there all in the same directory and rancid script does not
show a path to clogin
it inherits PATH from the shell.
Lance Vermilion
2008-11-11 18:36:00 UTC
Permalink
Sean,

Try this. I am guessing you are not in the same directory as the
rancid script which means it will look in the directory which you are
executing it from to find the clogin script.

cd /usr/local/libexec/rancid/
./rancid -d <host>
Post by Sean Murphy
It looks like there all in the same directory and rancid script does not
show a path to clogin
raphael# grep clogin rancid
$timeo = 90; # clogin timeout in seconds
print STDERR "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n" if
($debug);
print STDOUT "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n" if
($log);
system "clogin -t $timeo -c \"$cisco_cmds\" $host </dev/null >
$host.raw 2>&1" || die "clogin failed for $host: $!\n";
open(INPUT, "< $host.raw") || die "clogin failed for $host: $!\n";
open(INPUT,"clogin -t $timeo -c \"$cisco_cmds\" $host </dev/null |")
|| die "clogin failed for $host: $!\n";
print STDOUT ("$host clogin error: $_");
print STDERR ("$host clogin error: $_") if ($debug);
raphael#
raphael# ls -la /usr/local/libexec/rancid
total 698
drwxr-xr-x 2 root wheel 1024 Nov 11 10:23 .
drwxr-xr-x 3 root wheel 512 Nov 10 18:08 ..
-r-xr-xr-x 1 root wheel 14384 Nov 10 18:08 agmrancid
-r-xr-xr-x 1 root wheel 14160 Nov 10 18:08 alogin
-r-xr-xr-x 1 root wheel 8479 Nov 10 18:08 arancid
-r-xr-xr-x 1 root wheel 17228 Nov 10 18:08 blogin
-r-xr-xr-x 1 root wheel 8180 Nov 10 18:08 brancid
-r-xr-xr-x 1 root wheel 35477 Nov 10 18:08 cat5rancid
-r-xr-xr-x 1 root wheel 24635 Nov 10 18:08 clogin
-r-xr-xr-x 1 root wheel 12451 Nov 10 18:08 control_rancid
-r-xr-xr-x 1 root wheel 21290 Nov 10 18:08 cssrancid
-r-xr-xr-x 1 root wheel 13129 Nov 10 18:08 elogin
-r-xr-xr-x 1 root wheel 8682 Nov 10 18:08 erancid
-r-xr-xr-x 1 root wheel 37646 Nov 10 18:08 f10rancid
-r-xr-xr-x 1 root wheel 18172 Nov 10 18:08 flogin
-r-xr-xr-x 1 root wheel 7711 Nov 10 18:08 fnrancid
-r-xr-xr-x 1 root wheel 12978 Nov 10 18:08 francid
-r-xr-xr-x 1 root wheel 20345 Nov 10 18:08 hlogin
-r-xr-xr-x 1 root wheel 12220 Nov 10 18:08 hpuifilter
-r-xr-xr-x 1 root wheel 16049 Nov 10 18:08 hrancid
-r-xr-xr-x 1 root wheel 13010 Nov 10 18:08 htlogin
-r-xr-xr-x 1 root wheel 7446 Nov 10 18:08 htrancid
-r-xr-xr-x 1 root wheel 18507 Nov 10 18:08 jerancid
-r-xr-xr-x 1 root wheel 14735 Nov 10 18:08 jlogin
-r-xr-xr-x 1 root wheel 20228 Nov 10 18:08 jrancid
-r-xr-xr-x 1 root wheel 23076 Nov 10 18:08 lg.cgi
-r-xr-xr-x 1 root wheel 6384 Nov 10 18:08 lgform.cgi
-r-xr-xr-x 1 root wheel 11870 Nov 10 18:08 mrancid
-r-xr-xr-x 1 root wheel 14588 Nov 10 18:08 nlogin
-r-xr-xr-x 1 root wheel 9676 Nov 10 18:08 nrancid
-r-xr-xr-x 1 root wheel 20307 Nov 10 18:08 nslogin
-r-xr-xr-x 1 root wheel 8538 Nov 10 18:08 nsrancid
-r-xr-xr-x 1 root wheel 4609 Nov 10 18:08 par
-r-xr-xr-x 1 root wheel 16956 Nov 10 18:08 prancid
-r-xr-xr-x 1 root wheel 59970 Nov 10 18:08 rancid
-r-xr-xr-x 1 root wheel 2954 Nov 10 18:08 rancid-cvs
-r-xr-xr-x 1 root wheel 1995 Nov 10 18:08 rancid-fe
-r-xr-xr-x 1 root wheel 3452 Nov 10 18:08 rancid-run
-r-xr-xr-x 1 root wheel 23562 Nov 10 18:08 rivlogin
-r-xr-xr-x 1 root wheel 9098 Nov 10 18:08 rivrancid
-r-xr-xr-x 1 root wheel 11416 Nov 10 18:08 rrancid
-r-xr-xr-x 1 root wheel 10566 Nov 10 18:08 srancid
-r-xr-xr-x 1 root wheel 14220 Nov 10 18:08 tntlogin
-r-xr-xr-x 1 root wheel 8084 Nov 10 18:08 tntrancid
-r-xr-xr-x 1 root wheel 14819 Nov 10 18:08 xrancid
-r-xr-xr-x 1 root wheel 11930 Nov 10 18:08 zrancid
raphael#
verify in your rancid script the location of clogin. (grep clogin
/usr/local/libexec/rancid/bin/rancid).
Your rancid stuff should be located in the bin directory inside of
your rancid directory. Like so.
/usr/local/libexec/rancid/bin/clogin
you mentioned the following as your location to clogin
/usr/local/libexec/rancid/clogin
OK I ran the command and received the following output. I thought I could
see it in real time like clogin unless this is an error. I noticed that it
said clogin not found but I can run that by itself and its fine.
raphael# ./rancid -d 10.0.0.1
executing clogin -t 90 -c"admin show version;show version;show redundancy
secondary;show idprom backplane;show install active;admin show env all;show
env all;show rsp chassis-info;show gsr chassis;show diag
chassis-info;show
boot;show bootvar;admin show variables boot;show variables boot;show
flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all
disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir
/all harddisk:;dir /all harddiska:;dir /all harddiskb:;dir /all
sup-bootflash:;dir /all sup-microcode:;dir /all slavenvram:;dir /all
slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all
slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all
slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all
sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all
sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all
sec-disk2:;show
controllers;show controllers cbus;show diagbus;admin show diag;show
diag;show module;show spe version;show c7200;show inventory raw;show vtp
status;show vlan;show vlan-switch;show debug;show running-config;write term"
10.0.0.1
clogin: not found
10.0.0.1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all
sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show
install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir
/all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables
boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show
module,admin show env all,show controllers,admin show version,show
diagbus,dir /all slavedisk0:,show debug,show idprom backplane,dir /all
bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp
status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all
slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show
controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
10.0.0.1: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp
chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr
chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all
sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show
install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir
/all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all
slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables
boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show
module,admin show env all,show controllers,admin show version,show
diagbus,dir /all slavedisk0:,show debug,show idprom backplane,dir /all
bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp
status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all
slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show
controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show
vlan-switch,admin show variables boot,show redundancy secondary,show
10.0.0.1: End of run not found
10.0.0.1: End of run not found
!
raphael#
Sean,
clogin is purely the login script. You must run "rancid -d <host>" to
see what you are looking for.
-Lance
I am trying to see the entire RANCID process from beginning to end first
with clogin and having it login run the config portion and finally logout.
I have tried /usr/local/libexec/rancid/clogin 10.0.0.1
This just shows the login portion. Is there a way to see everything?
Thanks.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...