Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Telnet Switch

by VinsWorldcom (Prior)
on Aug 29, 2013 at 13:11 UTC ( [id://1051431]=note: print w/replies, xml ) Need Help??


in reply to Telnet Switch

From the Net::Telnet perldoc:

    login - perform standard login
            $ok = $obj->login($username, $password);

            $ok = $obj->login(Name     => $username,
                              Password => $password,
                              Errmode => $mode,
                              Prompt  => $match,
                              Timeout => $secs,);

        This method performs a standard login by waiting for a login prompt
        and responding with *$username*, then waiting for the password
        prompt and responding with *$password*, and then waiting for the
        command interpreter prompt. If any of those prompts sent by the
        remote side don't match what's expected, this method will time-out,
        unless timeout is turned off.

What is the login prompt on the Dell switch versus the Cisco router? I'm betting that they are different and you'll need to set 'prompt' in the login() method.

Replies are listed 'Best First'.
Re^2: Telnet Switch
by mvip (Acolyte) on Aug 30, 2013 at 06:08 UTC

    I thought the same think. But 1.) How to see what prompt is using Dell switch ... i just telnet to the ip address and how can i see what is behind. 2.) There is a log file that the script create and in that log file there is just Username: and that's all. No i have not put wrong usernam and password :) ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1051431]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-26 05:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found