in reply to Net telnet Cisco Login

I don't see off-hand what's wrong about it. Have you tried it? What result did you get?

Maybe the routers don't allow multiple login attempts per session. If that's the case you either have to open a new connection for the second login attempt, or store for each router if it needs a username, and only use the desired authentication method.

Perl 6 projects - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^2: Net telnet Cisco Login
by sout11 (Initiate) on Aug 25, 2009 at 13:52 UTC

    Thanks for the reply moritz, The problem I having is due to compilation errors within my IF statement, I will have to tell it when it is equal to something then login in using method 1 else use method 2:

    if (login=???){$conn->login( Name => $username, Password => $password); } else {$conn->login( Passcode => $passw); };

    I am hitting a brick wall with this if statement, Thanks again for the quick reply