Posted on 2009-10-08 16:00:39-07 by littlab
Press any key to continue. when logging in
Is there a way to get passed a press any key at login screen.
++++++UNAUTHORIZED ACCESS IS PROHIBITED++++++ Press any key to continue.
These are 1900's running old cisco os. Once I get passed this screen I am then sent to an option screen:
User Interface Menu [M] Menus [K] Command Line Enter Selection:
With my current script I'm trying the following:
##To get to the UIM screen $session->cmd("\r"); ##So I will know it is a device running old os print "\n" . $session->last_prompt . "\n";
Any help??!!
Direct Responses: 11570 | 11577 | Write a response
Posted on 2009-10-08 16:10:21-07 by littlab in response to 11569
Re: Press any key to continue. when logging in
forgot to add this is my error with the current return cmd
Incomplete command write: only 0 bytes have been sent at blahscript.pl line blah
Direct Responses: Write a response
Posted on 2009-10-10 16:56:45-07 by oliver in response to 11569
Re: Press any key to continue. when logging in

Hi, unfortunately the current version of Net::Appliance::Session doesn't support Menu driven command line interfaces.

You could try hacking the prompt regular expressions in Net::Appliance::Phrasebook so that they match things like "key to continue" but it could be hard work and fragile. Sorry there's no support, but it is something I'm trying to work out how to do for a future version of the module.

regards, oliver.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.