<?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: non-interactive telnet in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948991#M577440</link>
    <description>you could possibly mess around with the non-interactive ftp scripts that you can find all over this forum.&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
    <pubDate>Fri, 11 Apr 2003 09:21:55 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2003-04-11T09:21:55Z</dc:date>
    <item>
      <title>non-interactive telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948987#M577436</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need to run  non-interactive telnet session to HP-UX 11.&lt;BR /&gt;I try to use command&lt;BR /&gt;(sleep 3;echo oracle;sleep 3; echo &lt;PASSWORD&gt;;sleep 3;echo script.sh;sleep 10;echo exit)|telnet atest&lt;BR /&gt;When I connect to server with HPUX 10.20 this command works fine but when I try to connect to server with HPUX 11.0, I get &lt;BR /&gt;# ./tn.sh&lt;BR /&gt;Trying...&lt;BR /&gt;Connected to atest.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Local flow control on&lt;BR /&gt;Telnet TERMINAL-SPEED option ON&lt;BR /&gt;&lt;BR /&gt;HP-UX ATEST B.11.00 A 9000/800 (te)&lt;BR /&gt;&lt;BR /&gt;login: root&lt;BR /&gt;Password: Connection closed by foreign host.&lt;BR /&gt;# Trying...&lt;BR /&gt;Connected to atest.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Local flow control on&lt;BR /&gt;Telnet TERMINAL-SPEED option ON&lt;BR /&gt;&lt;BR /&gt;HP-UX ATEST B.11.00 A 9000/800 (te)&lt;BR /&gt;&lt;BR /&gt;login: root&lt;BR /&gt;Password: Connection close by foreigh host&lt;BR /&gt;&lt;BR /&gt;I tried to change timeout value for telnetd daemon (-z option)in inetd.conf file but result was same.&lt;/PASSWORD&gt;</description>
      <pubDate>Fri, 11 Apr 2003 07:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948987#M577436</guid>
      <dc:creator>TopS_1</dc:creator>
      <dc:date>2003-04-11T07:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: non-interactive telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948988#M577437</link>
      <description>Hi Olga&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I remember correctly there is a script here:-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0x026250011d20d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0x026250011d20d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Fri, 11 Apr 2003 08:23:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948988#M577437</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2003-04-11T08:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: non-interactive telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948989#M577438</link>
      <description>You need another solution for this:&lt;BR /&gt;&lt;BR /&gt;take a look at the expect software (&lt;A href="http://expect.nist.gov/)" target="_blank"&gt;http://expect.nist.gov/)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Expect is a tool for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. Expect really makes this stuff trivial. Expect is also useful for testing these same applications&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Apr 2003 08:25:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948989#M577438</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2003-04-11T08:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: non-interactive telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948990#M577439</link>
      <description>Olga&lt;BR /&gt;&lt;BR /&gt;Have you looked at rlogin for this task.&lt;BR /&gt;&lt;BR /&gt;Man rhosts and man rlogin.&lt;BR /&gt;&lt;BR /&gt;I would also watch the security aspect as I see you are trying to login at root level.  Test on a test server as if it goes wrong on your script it can make a mess of the server you are loging in to.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Fri, 11 Apr 2003 08:31:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948990#M577439</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2003-04-11T08:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: non-interactive telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948991#M577440</link>
      <description>you could possibly mess around with the non-interactive ftp scripts that you can find all over this forum.&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 11 Apr 2003 09:21:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948991#M577440</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2003-04-11T09:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: non-interactive telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948992#M577441</link>
      <description>Normally the default is not to allow root to login remotely.  Try it with a different user first.  If that doesn't work then:&lt;BR /&gt;&lt;BR /&gt;Try adding \r at the end as per the following script (I've cleaned it up by replacing the IP address, login and password and removed the actual commands but we use it every day):&lt;BR /&gt;&lt;BR /&gt;REMOTE=A.B.C.D&lt;BR /&gt;(sleep 5&lt;BR /&gt;echo "\r"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "login\r"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "password\r"&lt;BR /&gt;sleep 5&lt;BR /&gt;echo "some command\r"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "another command\r"&lt;BR /&gt;sleep 5&lt;BR /&gt;echo "q\r"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "exit\r"&lt;BR /&gt;echo "\r") |telnet $REMOTE&lt;BR /&gt;&lt;BR /&gt;Ron&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Apr 2003 14:30:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948992#M577441</guid>
      <dc:creator>Ron Kinner</dc:creator>
      <dc:date>2003-04-11T14:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: non-interactive telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948993#M577442</link>
      <description>I would recommend installed ssh on your box:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA" target="_blank"&gt;http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA&lt;/A&gt;&lt;BR /&gt;fpr the HP-supported version, or&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/openssh-3.6.1p1/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/openssh-3.6.1p1/&lt;/A&gt;&lt;BR /&gt;if you want to roll your own copy.&lt;BR /&gt;&lt;BR /&gt;You can set up private/public keys for root, and run commands on the remote host via:&lt;BR /&gt;&lt;BR /&gt;ssh -l root -i /path/to/root/private_id /some/command&lt;BR /&gt;&lt;BR /&gt;More secure than embedding a root password in a script, plus you get encryption across the network.&lt;BR /&gt;&lt;BR /&gt;See man pages for ssh, ssh-keygen.</description>
      <pubDate>Mon, 14 Apr 2003 03:57:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948993#M577442</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-04-14T03:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: non-interactive telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948994#M577443</link>
      <description>I use expect to do non-interactive telnet sessions.  it's extreemly easy to do.  just type:&lt;BR /&gt;autoexpect -f &lt;FILENAME&gt; telnet hostname&lt;BR /&gt;then proceed to do what you want to.  when done it generates a script for you.  you will need to edit this script and remove some of the extraneous text such as the time and date... I'm attaching an example script with my username, password, and hostname changed.&lt;/FILENAME&gt;</description>
      <pubDate>Mon, 14 Apr 2003 11:55:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-interactive-telnet/m-p/2948994#M577443</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-04-14T11:55:03Z</dc:date>
    </item>
  </channel>
</rss>

