in reply to Re^2: Cannot get enable> mode to work
in thread Cannot get enable> mode to work

Net::Telnet::Cisco subclasses Net::Telnet, so everything you have in Net::Telnet is actually available in Net::Telnet::Cisco.

Replies are listed 'Best First'.
Re^4: Cannot get enable> mode to work
by ArifS (Beadle) on Sep 19, 2014 at 13:10 UTC
    Thank you for the update. I will try with the ::cisco too.
    However, in the meantime I was able to get it to work-
    $telnet->waitfor('/Username: $/i'); $telnet->print($username); $telnet->waitfor('/Password: $/i'); $telnet->print($password); $telnet->waitfor('/>/'); $telnet->errmode("return"); $telnet->print('enable'); $telnet->errmode("return"); $telnet->waitfor('/Password: $/i'); $telnet->errmode("return"); $telnet->print($enpwd); $telnet->errmode("return");
    Key here is the errmode = return.
    It works for all the scenarios below for Tacacs, console etc-
    1) username, password, enable password
    2) username, password
    3) enable passowrd etc.