Skip Menu |

This queue is for tickets about the Net-Appliance-Session CPAN distribution.

Report information
The Basics
Id: 63359
Status: resolved
Priority: 0/
Queue: Net-Appliance-Session

People
Owner: OLIVER [...] cpan.org
Requestors: paulgraydon [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.36
Fixed in: (no value)



Subject: Terminal Length 0
Hi, Lovely quirk of PIX/ASA devices, they seem to have changed the command 'terminal length 0', in fact terminal itself has gone unless you're at privileged level. From what I can tell so far to achieve the same thing it's now 'terminal pager 0', once privileged. Net::Appliance::Session crashes out like this for me connecting to one of our PIXes: Show quoted text
pix> terminal length 0
^ ERROR: % Invalid input detected at '^' marker. Show quoted text
pix> Command response matched device error string at
/usr/lib/perl5/site_perl/5.8.8/Net/Appliance/Session/Transport.pm line 48 The pix is running Cisco PIX Security Appliance Software Version 8.0(4)
Hi Paul, Sorry for the delay replying. On Fri Nov 26 16:42:00 2010, http://www.google.com/profiles/paulgraydon wrote: Show quoted text
> Lovely quirk of PIX/ASA devices, they seem to have changed the command > 'terminal length 0', in fact terminal itself has gone unless you're at > privileged level. From what I can tell so far to achieve the same thing > it's now 'terminal pager 0', once privileged. > The pix is running Cisco PIX Security Appliance Software Version 8.0(4)
Can you let me know which phrasebook you were using when it crashed out? The default phrasebook is based on IOS but there are overrides for PIXOS7 amongst others which alter the pager command. Invoke the phrasebook like so: my $s = Net::Appliance::Session->new( Host => 'hostname.example', Platform => 'PIXOS7', ); -- regards, oliver.
Subject: Re: [rt.cpan.org #63359] Terminal Length 0
Date: Tue, 7 Dec 2010 09:50:59 -1000
To: bug-Net-Appliance-Session [...] rt.cpan.org
From: Paul Graydon <paulgraydon [...] googlemail.com>
Hi Oliver, I'm so sorry I missed that. However I did hit one bug, PIXOS7's phrasebook is missing the err_string setting which stops it from working. I've fixed mine by copying from PIXOS, I guess it's fair to bet it'll be the same. Mind you it is cisco.. With PIXOS7's phrasebook I get: Type help or '?' for a list of available commands. Show quoted text
pix> terminal pager lines 0
^ ERROR: % Invalid input detected at '^' marker. Show quoted text
pix> Command response matched device error string at
/usr/lib/perl5/site_perl/5.8.8/Net/Appliance/Session/Transport.pm line 48 I've SSH'd on manually to double check what the options are: Show quoted text
pix> term?
ERROR: % Unrecognized command Show quoted text
pix> pa?
ERROR: % Unrecognized command Terminal only becomes an available command once I move up to enable privileges, at which point the terminal command the PIXOS7 phrasebook tries to execute will work happily. Paul On Sun, Dec 5, 2010 at 9:52 AM, Oliver Gorwits via RT < bug-Net-Appliance-Session@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=63359 > > > Hi Paul, > > Sorry for the delay replying. > > On Fri Nov 26 16:42:00 2010, http://www.google.com/profiles/paulgraydonwrote:
> > Lovely quirk of PIX/ASA devices, they seem to have changed the command > > 'terminal length 0', in fact terminal itself has gone unless you're at > > privileged level. From what I can tell so far to achieve the same thing > > it's now 'terminal pager 0', once privileged. > > The pix is running Cisco PIX Security Appliance Software Version 8.0(4)
> > Can you let me know which phrasebook you were using when it crashed out? > > The default phrasebook is based on IOS but there are overrides for PIXOS7 > amongst others > which alter the pager command. Invoke the phrasebook like so: > > my $s = Net::Appliance::Session->new( > Host => 'hostname.example', > Platform => 'PIXOS7', > ); > > -- > regards, > oliver. >
Hi Paul, First, sorry for the long time replying. On Tue Dec 07 14:51:09 2010, paulgraydon@googlemail.com wrote: Show quoted text
> However I did hit one bug, PIXOS7's > phrasebook > is missing the err_string setting which stops it from working. I've > fixed > mine by copying from PIXOS
Okay this will be fixed in the next CPAN release - thanks for the heads-up. Show quoted text
> Terminal only becomes an available command once I move up to enable > privileges, at which point the terminal command the PIXOS7 phrasebook > tries > to execute will work happily.
After some thought, I'll probably implement an ->privileged_pager(1) setting to flag this situation to the module. Thanks once again for the report. regards, oliver.