<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automatic telnet ( non-interactive telnet) within Unix servers in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734725#M21840</link>
    <description>I think that will be better and maybe more secure to setup a ssh connection with public keys and no passphrase. You can use the PermitRootLogin forced-commands-only option. And then you can use ssh to get the status of the remote server.</description>
    <pubDate>Mon, 20 Feb 2006 06:40:40 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2006-02-20T06:40:40Z</dc:date>
    <item>
      <title>Automatic telnet ( non-interactive telnet) within Unix servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734724#M21839</link>
      <description>HI Group, &lt;BR /&gt;I have an urgent requirement to automatic telnet few Linux and Unix servers through some script and then run a health status check script. &lt;BR /&gt;&lt;BR /&gt;I have tried a Perl based script.&lt;BR /&gt;============================================&lt;BR /&gt;#!/usr/bin/perl -w    &lt;BR /&gt;# perl telnet1.pl username password hostname  &lt;BR /&gt;use Net::Telnet;    &lt;BR /&gt;# Get number of command-line arguments.  &lt;BR /&gt;$num_args = scalar( @ARGV );    &lt;BR /&gt;if ( $num_args &amp;lt; 2) {&lt;BR /&gt;  die "Usage: username password hostname\n";&lt;BR /&gt;}   &lt;BR /&gt;$username = shift;&lt;BR /&gt;$password = shift;&lt;BR /&gt;$hostname = shift;  &lt;BR /&gt;$tel = Net::Telnet-&amp;gt;new(Host =&amp;gt; $hostname,&lt;BR /&gt;          Input_log =&amp;gt; ‘telnet.txt’,&lt;BR /&gt;      Timeout =&amp;gt; 30 );    &lt;BR /&gt;$tel-&amp;gt;login($username, $password)&lt;BR /&gt;   or die "Unable to establish telnet connection $!";&lt;BR /&gt;# Issue a command on the remote system.  &lt;BR /&gt;@df_result = $tel-&amp;gt;cmd("df");  &lt;BR /&gt;  &lt;BR /&gt;foreach $line (@df_result) {  &lt;BR /&gt;   print "$line";  &lt;BR /&gt;}  &lt;BR /&gt;$tel-&amp;gt;close();   &lt;BR /&gt;# telnet1.pl &lt;BR /&gt;===============================================&lt;BR /&gt;$perl telnet1.pl username password hostname&lt;BR /&gt;this script is working on non-interactive telnet with localhost but did not connecting with remote hosts. &lt;BR /&gt;Please guide what I need to modify here or if someone is using any script for such situation,PLEASE PLEASE send me.  &lt;BR /&gt;&lt;BR /&gt;Thanks a lot ..........&lt;BR /&gt;Anil &lt;BR /&gt;anil_garg5@yahoo.com &lt;BR /&gt;</description>
      <pubDate>Sun, 19 Feb 2006 23:16:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734724#M21839</guid>
      <dc:creator>anil_garg5</dc:creator>
      <dc:date>2006-02-19T23:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet ( non-interactive telnet) within Unix servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734725#M21840</link>
      <description>I think that will be better and maybe more secure to setup a ssh connection with public keys and no passphrase. You can use the PermitRootLogin forced-commands-only option. And then you can use ssh to get the status of the remote server.</description>
      <pubDate>Mon, 20 Feb 2006 06:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734725#M21840</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-02-20T06:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet ( non-interactive telnet) within Unix servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734726#M21841</link>
      <description>Thanks for your reply....&lt;BR /&gt;Only the telnet service is configured in all the remote servers. ssh service is disaled in all the server, so I have no choice..How can tackle this in present situation? Please guide.</description>
      <pubDate>Mon, 20 Feb 2006 06:45:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734726#M21841</guid>
      <dc:creator>anil_garg5</dc:creator>
      <dc:date>2006-02-20T06:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet ( non-interactive telnet) within Unix servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734727#M21842</link>
      <description>It is also usefull to check that:&lt;BR /&gt;&lt;BR /&gt;1) telnetd is installed and running on your remote Linux&amp;amp;Unix machines.&lt;BR /&gt;&lt;BR /&gt;2) Your mgmt host is allowed to connect to all remote hosts (add "in.telnetd:&lt;MGMT_IP&gt;" to the bottom of the /etc/hosts.allow file on all hosts).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs&lt;/MGMT_IP&gt;</description>
      <pubDate>Mon, 20 Feb 2006 08:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734727#M21842</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2006-02-20T08:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet ( non-interactive telnet) within Unix servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734728#M21843</link>
      <description>What is the error that you get, can you interactively telnet to the remote host?</description>
      <pubDate>Mon, 20 Feb 2006 09:08:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734728#M21843</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-02-20T09:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet ( non-interactive telnet) within Unix servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734729#M21844</link>
      <description>I would seriously consider installing sshd&lt;BR /&gt;where it is missing.&lt;BR /&gt;&lt;BR /&gt;If you want to do health checks then&lt;BR /&gt;seriously consider installing nagios&lt;BR /&gt;or one of the programs of its ilk.&lt;BR /&gt;&lt;BR /&gt;Both options are much more secure.&lt;BR /&gt;&lt;BR /&gt;Also if you are connecting as root, this&lt;BR /&gt;may be prevented (quite rightly) by &lt;BR /&gt;/etc/securetty, or a similar file.&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Feb 2006 10:07:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734729#M21844</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2006-02-20T10:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet ( non-interactive telnet) within Unix servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734730#M21845</link>
      <description>Thanks a lot all. &lt;BR /&gt;I have installaed sshd on Linux machine. &lt;BR /&gt;but unable to install sshd on the Solaris machine.I am still working on it.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Feb 2006 06:47:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734730#M21845</guid>
      <dc:creator>anil_garg5</dc:creator>
      <dc:date>2006-02-21T06:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet ( non-interactive telnet) within Unix servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734731#M21846</link>
      <description>For automation you can try with,&lt;BR /&gt;&lt;BR /&gt;a) expect&lt;BR /&gt;b) telent + piping() as,&lt;BR /&gt;&lt;BR /&gt;(&lt;BR /&gt;echo "root"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "&lt;PASSWORD of="" user=""&gt;"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "command to execute"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "exit"&lt;BR /&gt;) | telnet machine&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu&lt;/PASSWORD&gt;</description>
      <pubDate>Tue, 21 Feb 2006 07:22:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734731#M21846</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-02-21T07:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet ( non-interactive telnet) within Unix servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734732#M21847</link>
      <description>Problem is,&lt;BR /&gt;&lt;BR /&gt;sometime telnet service is not enabled in all machines of *NIX. It depends upon your machines. Try to check all the machines for common login service availablity. Then automate with perl or expect scripting or telnet + piping.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Tue, 21 Feb 2006 07:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734732#M21847</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-02-21T07:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet ( non-interactive telnet) within Unix servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734733#M21848</link>
      <description>You might want to look into using EXPECT, withg either telnet or ssh.</description>
      <pubDate>Tue, 21 Feb 2006 10:48:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734733#M21848</guid>
      <dc:creator>Alan_152</dc:creator>
      <dc:date>2006-02-21T10:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet ( non-interactive telnet) within Unix servers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734734#M21849</link>
      <description>One alternative to public keys and no passphrase is to use keychain.  On login, you're asked for your passphrase once, then keychain handles authentication after that.  You don't need to input your passphrase again unless you reboot.</description>
      <pubDate>Mon, 27 Feb 2006 11:52:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/automatic-telnet-non-interactive-telnet-within-unix-servers/m-p/3734734#M21849</guid>
      <dc:creator>Stephen Barratt</dc:creator>
      <dc:date>2006-02-27T11:52:08Z</dc:date>
    </item>
  </channel>
</rss>

