Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Telnet Error - Vasanth

by thanos1983 (Parson)
on Feb 23, 2018 at 09:42 UTC ( [id://1209815]=note: print w/replies, xml ) Need Help??


in reply to Telnet Error - Vasanth

Hello vasanth.easyrider,

Unfortunately I can not test your code on my local OS due to some configurations that I have applied. So at this point I can only ask questions and try to understand why your code is not working. On your sample of code you have multiple commands, any of them are working or all are failing? Also why Net::Telnet and not Net::OpenSSH.

SSH is much more secure connection. A few years ago I was experimenting with module and I wrote this question Best module to execute administrator commands on external operating systems (Linux) which contains sample of code for all the modules.

Looking forward to your reply.

BR / Thanos

Seeking for Perl wisdom...on the process of learning...not there...yet!

Replies are listed 'Best First'.
Re^2: Telnet Error - Vasanth
by vasanth.easyrider (Acolyte) on Feb 23, 2018 at 09:52 UTC

    yes i am executing many commands. For few commands it is working fine and for few it is not working fine. I observed that, if the command output has empty lines, it is failing. Can you help me on how to overcome this?

      if the command output has empty lines, it is failing

      What is the value of $fields[4] and/or $Eleprompt and/or $match?

Re^2: Telnet Error - Vasanth
by vasanth.easyrider (Acolyte) on Feb 23, 2018 at 10:04 UTC

    If i use Net::OpenSSH, how to tackle "SSH connection: the authenticity of the target" errors that we get when we use Net::OpenSSH. Can we manage authenticity in script itself ??

      Hello again vasanth.easyrider,

      What do you mean by:

      how to tackle "SSH connection: the authenticity of the target" errors that we get when we use Net::OpenSSH

      Net::OpenSSH handles authentication, I assume you mean password_prompt. If this is the case yes the module can support that read more here Net::OpenSSH methods.

      Hope this helps. BR / Thanos

      Seeking for Perl wisdom...on the process of learning...not there...yet!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found