<?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: telnet script doesn't on HP in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566332#M30009</link>
    <description>Hi Sri,&lt;BR /&gt;&lt;BR /&gt;I did ran tty command on those servers, return the following value either /dev/ttyp1 or /dev/ttyp2.&lt;BR /&gt;&lt;BR /&gt;The script doesn't work on /dev/ttyp2 but for&lt;BR /&gt;/dev/ttyp1 some work and some don't. &lt;BR /&gt;&lt;BR /&gt;stty command return the following result on all the servers :&lt;BR /&gt;&lt;BR /&gt;speed 9600 baud; evenp hupcl&lt;BR /&gt;min = 0; erase = ^H;&lt;BR /&gt;eol2 = ^@;&lt;BR /&gt;susp = ^Z; dsusp = ^Y;&lt;BR /&gt;werase = ^@; lnext = ^V;&lt;BR /&gt;-inpck -istrip icrnl -ixany ixoff onlcr&lt;BR /&gt;-iexten echo echoe echok&lt;BR /&gt;-echoctl -echoke&lt;BR /&gt;&lt;BR /&gt;I did copy .profile from working server to not working server but still am not be able to connect to those not O.K servers.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
    <pubDate>Sat, 18 Aug 2001 00:21:24 GMT</pubDate>
    <dc:creator>Ridzuan Zakaria</dc:creator>
    <dc:date>2001-08-18T00:21:24Z</dc:date>
    <item>
      <title>telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566325#M30002</link>
      <description>I am trying to telnet to remote host using&lt;BR /&gt;script. Currently the script works on my Solaris machine but I doesn't on my HP-UX 11.00 machine.&lt;BR /&gt;&lt;BR /&gt;Here is the script:&lt;BR /&gt;&lt;BR /&gt;( sleep 2&lt;BR /&gt;echo userid&lt;BR /&gt;sleep 2&lt;BR /&gt;echo password&lt;BR /&gt;sleep 5&lt;BR /&gt;echo ls&lt;BR /&gt;sleep 5&lt;BR /&gt;echo exit ) | telnet hostname&lt;BR /&gt;&lt;BR /&gt;When I ran on HP, the telnet session terminated immediately after login prompt.&lt;BR /&gt;&lt;BR /&gt;Here is the output:&lt;BR /&gt;&lt;BR /&gt;*************************************&lt;BR /&gt;Trying 156.37.133.132...&lt;BR /&gt;Connected to Cstool10&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;login: userid&lt;BR /&gt;Password: Connection closed by foreign host.&lt;BR /&gt;&lt;BR /&gt;*********************************&lt;BR /&gt;&lt;BR /&gt;I got the script for this forum, I suppose it should work on HP too.&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Aug 2001 22:17:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566325#M30002</guid>
      <dc:creator>Ridzuan Zakaria</dc:creator>
      <dc:date>2001-08-16T22:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566326#M30003</link>
      <description>Change the second sleep value to 1 and try. Your script should work.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 16 Aug 2001 23:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566326#M30003</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-08-16T23:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566327#M30004</link>
      <description>Sri,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply, However it still doesn't.&lt;BR /&gt;&lt;BR /&gt;One things thatI noticed the different between my Sun and HP server is that on Sun " Local flow control is OFF and HP is ON. Could this be the problem? If so how can I turn it off?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;****************&lt;BR /&gt;SOLARIS&lt;BR /&gt;****************&lt;BR /&gt;Trying...&lt;BR /&gt;Connecte&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Local flow control off&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SunOS 5.7&lt;BR /&gt;********************&lt;BR /&gt;&lt;BR /&gt;******************&lt;BR /&gt;HP-UX&lt;BR /&gt;******************&lt;BR /&gt;Trying...&lt;BR /&gt;Connected to HPUX11.&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;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Fri, 17 Aug 2001 00:36:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566327#M30004</guid>
      <dc:creator>Ridzuan Zakaria</dc:creator>
      <dc:date>2001-08-17T00:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566328#M30005</link>
      <description>I am not on my machine so I don't know if this will work or not, but you might give it a try:&lt;BR /&gt;&lt;BR /&gt;telnet hostname &amp;lt;&amp;lt; EOF&lt;BR /&gt;userid&lt;BR /&gt;password&lt;BR /&gt;pwd&lt;BR /&gt;ls&lt;BR /&gt;exit&lt;BR /&gt;EOF</description>
      <pubDate>Fri, 17 Aug 2001 02:07:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566328#M30005</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-08-17T02:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566329#M30006</link>
      <description>I am quite surprized. Your script should work. Local flow control - it shouldn't matter. I am not able to duplicate the problem here. It shows local flow control on but works. Do you have another hp system and try if your script works there?. You might have already done but I would do the following&lt;BR /&gt;&lt;BR /&gt;1. Run the script on a sun system connecting to the same HP system&lt;BR /&gt;2. Run the script on another HP system connectiong to the same HP system&lt;BR /&gt;2. Run the script on HP connecting a SUN system&lt;BR /&gt;3. Since it is failing after password, I will check the server to see if there are any bad attempts due to this.&lt;BR /&gt;&lt;BR /&gt;Connection closed by foreign host means that it is not able to read from or write to the server. This message is given by your telnet session itself.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Aug 2001 02:20:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566329#M30006</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-08-17T02:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566330#M30007</link>
      <description>Hi Guys, Thanks for you reply.&lt;BR /&gt;&lt;BR /&gt;I have noticed that the script is actually worked on some of my HP servers and not on others.&lt;BR /&gt;&lt;BR /&gt;All the servers look the same to me. What else can I check or do to resolve the problem.&lt;BR /&gt;&lt;BR /&gt;Is there any log file that I can check?&lt;BR /&gt;Is it something to do with security on some of the server.&lt;BR /&gt;&lt;BR /&gt;I can establish the connect on all the server interactively.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Fri, 17 Aug 2001 18:24:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566330#M30007</guid>
      <dc:creator>Ridzuan Zakaria</dc:creator>
      <dc:date>2001-08-17T18:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566331#M30008</link>
      <description>Hi Ridzuan,&lt;BR /&gt;&lt;BR /&gt;As it is working on other HP systems, it is may be your tty settings that are causing the problem. I may be able to give a fix but you could try setting the .profile to default profile, execute the profile and then run this script. Else, you can copy the .profile from the system where the script is working and see if it fixes the problem&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 17 Aug 2001 22:36:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566331#M30008</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-08-17T22:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566332#M30009</link>
      <description>Hi Sri,&lt;BR /&gt;&lt;BR /&gt;I did ran tty command on those servers, return the following value either /dev/ttyp1 or /dev/ttyp2.&lt;BR /&gt;&lt;BR /&gt;The script doesn't work on /dev/ttyp2 but for&lt;BR /&gt;/dev/ttyp1 some work and some don't. &lt;BR /&gt;&lt;BR /&gt;stty command return the following result on all the servers :&lt;BR /&gt;&lt;BR /&gt;speed 9600 baud; evenp hupcl&lt;BR /&gt;min = 0; erase = ^H;&lt;BR /&gt;eol2 = ^@;&lt;BR /&gt;susp = ^Z; dsusp = ^Y;&lt;BR /&gt;werase = ^@; lnext = ^V;&lt;BR /&gt;-inpck -istrip icrnl -ixany ixoff onlcr&lt;BR /&gt;-iexten echo echoe echok&lt;BR /&gt;-echoctl -echoke&lt;BR /&gt;&lt;BR /&gt;I did copy .profile from working server to not working server but still am not be able to connect to those not O.K servers.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Sat, 18 Aug 2001 00:21:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566332#M30009</guid>
      <dc:creator>Ridzuan Zakaria</dc:creator>
      <dc:date>2001-08-18T00:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566333#M30010</link>
      <description>Hi Ridzuan,&lt;BR /&gt;&lt;BR /&gt;On the machines where you are having a problem, can you login manually? Do you see any errors in  /var/adm/syslog/syslog.log (looking for telnetd errors basically)?&lt;BR /&gt;&lt;BR /&gt;-Regards&lt;BR /&gt;I am RU</description>
      <pubDate>Sat, 18 Aug 2001 03:08:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566333#M30010</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-08-18T03:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566334#M30011</link>
      <description>Hi RU,&lt;BR /&gt;&lt;BR /&gt;I can connect  to all HP servers manually.&lt;BR /&gt;&lt;BR /&gt;Any suggestion is greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 18 Aug 2001 22:03:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566334#M30011</guid>
      <dc:creator>Ridzuan Zakaria</dc:creator>
      <dc:date>2001-08-18T22:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566335#M30012</link>
      <description>&lt;BR /&gt;Hi, &lt;BR /&gt;&lt;BR /&gt;I have a similar problem on an HP server (HP-UX 11.00) (assume SRV1)&lt;BR /&gt;&lt;BR /&gt;In fact, I have a Sun workstation from which I can connect with telnet on SRV1.&lt;BR /&gt;But when I connect (telnet) on another HP server (assume SRV2) and from it, try to connect with telnet on the orginal machine (SRV1), it outputs as following: &lt;BR /&gt;&lt;BR /&gt;login : user &lt;BR /&gt;Password: Connection closed by foreign host &lt;BR /&gt;&lt;BR /&gt;If anyone have some elements or experience about this problem, il would be nice &lt;BR /&gt;&lt;BR /&gt;Best regards &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Aug 2001 11:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566335#M30012</guid>
      <dc:creator>IST_1</dc:creator>
      <dc:date>2001-08-29T11:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566336#M30013</link>
      <description>This patch will fix your login from a script problem, PHNE_26051.</description>
      <pubDate>Fri, 29 Mar 2002 17:01:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566336#M30013</guid>
      <dc:creator>Michael Salazar</dc:creator>
      <dc:date>2002-03-29T17:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566337#M30014</link>
      <description>Hi, Ridzuan,&lt;BR /&gt;   I have exact same problem on HPUX 11. Glad to see these talks. But I can't get it work on mine. Have got it work on all of your HPs? May I have a copy of your best working script? please send to bbai@hbfgroup.com? I appreciate greatly.&lt;BR /&gt;bruceb</description>
      <pubDate>Wed, 17 Jul 2002 18:08:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566337#M30014</guid>
      <dc:creator>bruce bai</dc:creator>
      <dc:date>2002-07-17T18:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566338#M30015</link>
      <description>Something's nagging at me that my answer's wrong, but I'll suggest anyway -- does the user's login environment have something in it that's causing an immediate logout?  (i.e., an exit statement in a .login or .profile, etc)&lt;BR /&gt;&lt;BR /&gt;--Misa</description>
      <pubDate>Wed, 17 Jul 2002 22:47:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566338#M30015</guid>
      <dc:creator>Misa</dc:creator>
      <dc:date>2002-07-17T22:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: telnet script doesn't on HP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566339#M30016</link>
      <description>thanks, Misa. There is no eixt kind of statement in my user environment. And I can telnet mannualy. Did found a post talking about differences in .profile/.login on Solaris and C shells. Not know the solution. Can anyone help?</description>
      <pubDate>Thu, 18 Jul 2002 15:09:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-script-doesn-t-on-hp/m-p/2566339#M30016</guid>
      <dc:creator>bruce bai</dc:creator>
      <dc:date>2002-07-18T15:09:17Z</dc:date>
    </item>
  </channel>
</rss>

