Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: RANCID: Users

RANCID Debug Mode

 

 

RANCID users RSS feed   Index | Next | Previous | View Threaded


smurphy at calarts

Nov 10, 2008, 5:11 PM

Post #1 of 13 (5446 views)
Permalink
RANCID Debug Mode

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 at gheek

Nov 11, 2008, 7:38 AM

Post #2 of 13 (5391 views)
Permalink
Re: RANCID Debug Mode [In reply to]

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 <smurphy at 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-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>


smurphy at calarts

Nov 11, 2008, 8:57 AM

Post #3 of 13 (5386 views)
Permalink
Re: RANCID Debug Mode [In reply to]

An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20081111/af07fe64/attachment.html


mashcraft at omniture

Nov 11, 2008, 9:33 AM

Post #4 of 13 (5382 views)
Permalink
Re: RANCID Debug Mode [In reply to]

Sean,



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



Mike



From: rancid-discuss-bounces [at] shrubbery
[mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Sean Murphy
Sent: Tuesday, November 11, 2008 9:58 AM
To: Lance Vermilion
Cc: rancid-discuss at 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 <smurphy at calarts.edu>
<mailto:smurphy at 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-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss



_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20081111/a28f85c5/attachment.html


smurphy at calarts

Nov 11, 2008, 10:18 AM

Post #5 of 13 (5384 views)
Permalink
Re: RANCID Debug Mode [In reply to]

An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20081111/c0150e66/attachment.html


smurphy at calarts

Nov 11, 2008, 10:27 AM

Post #6 of 13 (5393 views)
Permalink
Re: RANCID Debug Mode [In reply to]

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#



Lance Vermilion wrote:
> 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
>
> On Tue, Nov 11, 2008 at 9:57 AM, Sean Murphy <smurphy at calarts.edu> wrote:
>
>> 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 <smurphy at 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-discuss at shrubbery.net
>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>>
>>
>>
>> _______________________________________________
>> Rancid-discuss mailing list
>> Rancid-discuss at shrubbery.net
>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>>
>>


rancid at gheek

Nov 11, 2008, 10:36 AM

Post #7 of 13 (5387 views)
Permalink
Re: RANCID Debug Mode [In reply to]

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>

On Tue, Nov 11, 2008 at 11:27 AM, Sean Murphy <smurphy at calarts.edu> wrote:
> 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#
>
>
>
> Lance Vermilion wrote:
>>
>> 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
>>
>> On Tue, Nov 11, 2008 at 9:57 AM, Sean Murphy <smurphy at calarts.edu> wrote:
>>
>>>
>>> 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 <smurphy at 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-discuss at shrubbery.net
>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>>>
>>>
>>>
>>> _______________________________________________
>>> Rancid-discuss mailing list
>>> Rancid-discuss at shrubbery.net
>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>>>
>>>
>


heas at shrubbery

Nov 11, 2008, 11:29 AM

Post #8 of 13 (5388 views)
Permalink
Re: RANCID Debug Mode [In reply to]

Tue, Nov 11, 2008 at 10:27:37AM -0800, 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.


smurphy at calarts

Nov 11, 2008, 1:02 PM

Post #9 of 13 (5388 views)
Permalink
Re: RANCID Debug Mode [In reply to]

An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20081111/7b25d7c2/attachment.html


heas at shrubbery

Nov 11, 2008, 1:11 PM

Post #10 of 13 (5398 views)
Permalink
Re: RANCID Debug Mode [In reply to]

Tue, Nov 11, 2008 at 01:02:04PM -0800, 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.


rancid at gheek

Nov 11, 2008, 1:15 PM

Post #11 of 13 (5388 views)
Permalink
Re: RANCID Debug Mode [In reply to]

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

On Tue, Nov 11, 2008 at 2:02 PM, Sean Murphy <smurphy at calarts.edu> wrote:
> 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#dir /all nvram:
> In DirSlotN: E200C-S50#dir /all nvram:
> HIT COMMAND:E200C-S50#dir /all bootflash:
> In DirSlotN: E200C-S50#dir /all bootflash:
> HIT COMMAND:E200C-S50#dir /all slot0:
> In DirSlotN: E200C-S50#dir /all slot0:
> HIT COMMAND:E200C-S50#dir /all disk0:
> In DirSlotN: E200C-S50#dir /all disk0:
> HIT COMMAND:E200C-S50#dir /all slot1:
> In DirSlotN: E200C-S50#dir /all slot1:
> HIT COMMAND:E200C-S50#dir /all disk1:
> In DirSlotN: E200C-S50#dir /all disk1:
> HIT COMMAND:E200C-S50#dir /all slot2:
> In DirSlotN: E200C-S50#dir /all slot2:
> HIT COMMAND:E200C-S50#dir /all disk2:
> In DirSlotN: E200C-S50#dir /all disk2:
> HIT COMMAND:E200C-S50#dir /all harddisk:
> In DirSlotN: E200C-S50#dir /all harddisk:
> HIT COMMAND:E200C-S50#dir /all harddiska:
> In DirSlotN: E200C-S50#dir /all harddiska:
> HIT COMMAND:E200C-S50#dir /all harddiskb:
> In DirSlotN: E200C-S50#dir /all harddiskb:
> HIT COMMAND:E200C-S50#dir /all sup-bootflash:
> In DirSlotN: E200C-S50#dir /all sup-bootflash:
> HIT COMMAND:E200C-S50#dir /all sup-microcode:
> In DirSlotN: E200C-S50#dir /all sup-microcode:
> HIT COMMAND:E200C-S50#dir /all slavenvram:
> In DirSlotN: E200C-S50#dir /all slavenvram:
> HIT COMMAND:E200C-S50#dir /all slavebootflash:
> In DirSlotN: E200C-S50#dir /all slavebootflash:
> HIT COMMAND:E200C-S50#dir /all slaveslot0:
> In DirSlotN: E200C-S50#dir /all slaveslot0:
> HIT COMMAND:E200C-S50#dir /all slavedisk0:
> In DirSlotN: E200C-S50#dir /all slavedisk0:
> HIT COMMAND:E200C-S50#dir /all slaveslot1:
> In DirSlotN: E200C-S50#dir /all slaveslot1:
> HIT COMMAND:E200C-S50#dir /all slavedisk1:
> In DirSlotN: E200C-S50#dir /all slavedisk1:
> HIT COMMAND:E200C-S50#dir /all slaveslot2:
> In DirSlotN: E200C-S50#dir /all slaveslot2:
> HIT COMMAND:E200C-S50#dir /all slavedisk2:
> In DirSlotN: E200C-S50#dir /all slavedisk2:
> HIT COMMAND:E200C-S50#dir /all slavesup-bootflash:
> In DirSlotN: E200C-S50#dir /all slavesup-bootflash:
> HIT COMMAND:E200C-S50#dir /all sec-nvram:
> In DirSlotN: E200C-S50#dir /all sec-nvram:
> HIT COMMAND:E200C-S50#dir /all sec-bootflash:
> In DirSlotN: E200C-S50#dir /all sec-bootflash:
> HIT COMMAND:E200C-S50#dir /all sec-slot0:
> In DirSlotN: E200C-S50#dir /all sec-slot0:
> HIT COMMAND:E200C-S50#dir /all sec-disk0:
> In DirSlotN: E200C-S50#dir /all sec-disk0:
> HIT COMMAND:E200C-S50#dir /all sec-slot1:
> In DirSlotN: E200C-S50#dir /all sec-slot1:
> HIT COMMAND:E200C-S50#dir /all sec-disk1:
> In DirSlotN: E200C-S50#dir /all sec-disk1:
> HIT COMMAND:E200C-S50#dir /all sec-slot2:
> In DirSlotN: E200C-S50#dir /all sec-slot2:
> HIT COMMAND:E200C-S50#dir /all sec-disk2:
> In DirSlotN: E200C-S50#dir /all sec-disk2:
> 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#
>
>
>
>
> john heasley wrote:
>
> Tue, Nov 11, 2008 at 10:27:37AM -0800, 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.
>


jethro.binks at strath

Nov 11, 2008, 1:29 PM

Post #12 of 13 (5388 views)
Permalink
Re: RANCID Debug Mode [In reply to]

On Tue, 11 Nov 2008, Sean Murphy wrote:

> 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.

From time to time I have also done:

cd /usr/local/libexec/rancid
expect -d ./clogin -c 'show config' devicename

to get debugging data out of expect.

Jethro.

--
. . . . . . . . . . . . . . . . . . . . . . . . .
Jethro R Binks
Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK


smurphy at calarts

Nov 11, 2008, 2:39 PM

Post #13 of 13 (5403 views)
Permalink
Re: RANCID Debug Mode [In reply to]

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?





Jethro R Binks wrote:
> On Tue, 11 Nov 2008, Sean Murphy wrote:
>
>
>> 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.
>
> >From time to time I have also done:
>
> cd /usr/local/libexec/rancid
> expect -d ./clogin -c 'show config' devicename
>
> to get debugging data out of expect.
>
> Jethro.
>
>

RANCID users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.