Mailing List Archive

missed cmds under redhat 9.0
I am trying to migrate my rancid collection machine from Solaris 2.8 to
Redhat 9.0. The diffs are working, but rancid logs into each cisco
router 4 times with the errors -

svl0rtr00: missed cmd(s): show diag,show install active,show controllers
cbus
svl0rtr01: missed cmd(s): show diag,show install active,show controllers
cbus
svl0rtr02: missed cmd(s): show diag,show install active,show controllers
cbus

When I look at the raw dialog, I see the commands are there -

Entry=13: Addr=FFFF.FFFF.FFFF^M
Entry=14: Addr=FFFF.FFFF.FFFF^M
Entry=15: Addr=0000.2100.0000^M
^M
svl0rtr00#show controllers cbus^M
^^M
% Invalid input detected at '^' marker.^M
^M
svl0rtr00#show diagbus^M
^M
svl0rtr00#show diag^M
^M
svl0rtr00#show module^M
% Incomplete command.^M
^M
svl0rtr00#show c7200^M
^^M
% Invalid input detected at '^' marker.^M
^M
svl0rtr00#show vtp status^M
^^M
% Invalid input detected at '^' marker.^M
^M
svl0rtr00#show vlan^M
% Incomplete command.^M
^M
svl0rtr00#write term^M
Building configuration...^M
^M
Current configuration : 11485 bytes^M
!^M
! Last configuration change at 17:12:12 PDT Tue Aug 12 2003^M
! NVRAM config last updated at 17:12:13 PDT Tue Aug 12 2003^M
!^M
version 12.1^M


This setup worked great under solaris, and it still works well for the
foundry and extreme gear.

Here's the versions
solaris redhat
OS 5.8 9.0
rancid 2.2.2 2.2.2
perl v5.6.1 v5.8.0
expect 5.38.0 5.38.0

Any help would be appreciated. It looks like it's in the perl parsing
the output, but I haven't been able to chase it down.

Thanks

-Mark
missed cmds under redhat 9.0 [ In reply to ]
The perl "study" command appears to cause the problem in RedHat 9. What I
have determined at this point is that study in a sub (like sub ShowVersion)
causes the regexp not to match when it returns to "main". Therefore a line
in the router config is skipped. Remove "study" from the subs that use it
and the problem will go away. (An alternative is to move study after the
"last" statement which is a few lines later. This only causes the last line
before the next command not to be "studied".)

If you notice, the commands being skipped all follow a command whose output
is parsed by a sub that uses study.

I haven't determined if this is something specific to the way study is used
in rancid or a general RedHat 9/perl 5.8.0 problem.

At least, that worked for me, YMMV,
David King
missed cmds under redhat 9.0 [ In reply to ]
Wed, Aug 13, 2003 at 03:52:51PM -0400, King, David:
> The perl "study" command appears to cause the problem in RedHat 9. What I
> have determined at this point is that study in a sub (like sub ShowVersion)
> causes the regexp not to match when it returns to "main". Therefore a line
> in the router config is skipped. Remove "study" from the subs that use it
> and the problem will go away. (An alternative is to move study after the
> "last" statement which is a few lines later. This only causes the last line
> before the next command not to be "studied".)
>
> If you notice, the commands being skipped all follow a command whose output
> is parsed by a sub that uses study.
>
> I haven't determined if this is something specific to the way study is used
> in rancid or a general RedHat 9/perl 5.8.0 problem.
>
> At least, that worked for me, YMMV,
> David King

use of study was a prayer of squeezing a little more out of perl. :)
i have removed them. thanks.