- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: telnet script doesn't on HP
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 03:17 PM
08-16-2001 03:17 PM
telnet script doesn't on HP
script. Currently the script works on my Solaris machine but I doesn't on my HP-UX 11.00 machine.
Here is the script:
( sleep 2
echo userid
sleep 2
echo password
sleep 5
echo ls
sleep 5
echo exit ) | telnet hostname
When I ran on HP, the telnet session terminated immediately after login prompt.
Here is the output:
*************************************
Trying 156.37.133.132...
Connected to Cstool10
Escape character is '^]'.
login: userid
Password: Connection closed by foreign host.
*********************************
I got the script for this forum, I suppose it should work on HP too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 04:37 PM
08-16-2001 04:37 PM
Re: telnet script doesn't on HP
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 05:36 PM
08-16-2001 05:36 PM
Re: telnet script doesn't on HP
Thanks for the reply, However it still doesn't.
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?
****************
SOLARIS
****************
Trying...
Connecte
Escape character is '^]'.
Local flow control off
SunOS 5.7
********************
******************
HP-UX
******************
Trying...
Connected to HPUX11.
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED option ON
***************************
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 07:07 PM
08-16-2001 07:07 PM
Re: telnet script doesn't on HP
telnet hostname << EOF
userid
password
pwd
ls
exit
EOF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 07:20 PM
08-16-2001 07:20 PM
Re: telnet script doesn't on HP
1. Run the script on a sun system connecting to the same HP system
2. Run the script on another HP system connectiong to the same HP system
2. Run the script on HP connecting a SUN system
3. Since it is failing after password, I will check the server to see if there are any bad attempts due to this.
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.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2001 11:24 AM
08-17-2001 11:24 AM
Re: telnet script doesn't on HP
I have noticed that the script is actually worked on some of my HP servers and not on others.
All the servers look the same to me. What else can I check or do to resolve the problem.
Is there any log file that I can check?
Is it something to do with security on some of the server.
I can establish the connect on all the server interactively.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2001 03:36 PM
08-17-2001 03:36 PM
Re: telnet script doesn't on HP
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
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2001 05:21 PM
08-17-2001 05:21 PM
Re: telnet script doesn't on HP
I did ran tty command on those servers, return the following value either /dev/ttyp1 or /dev/ttyp2.
The script doesn't work on /dev/ttyp2 but for
/dev/ttyp1 some work and some don't.
stty command return the following result on all the servers :
speed 9600 baud; evenp hupcl
min = 0; erase = ^H;
eol2 = ^@;
susp = ^Z; dsusp = ^Y;
werase = ^@; lnext = ^V;
-inpck -istrip icrnl -ixany ixoff onlcr
-iexten echo echoe echok
-echoctl -echoke
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.
Any help is appreciated.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2001 08:08 PM
08-17-2001 08:08 PM
Re: telnet script doesn't on HP
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)?
-Regards
I am RU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2001 03:03 PM
08-18-2001 03:03 PM
Re: telnet script doesn't on HP
I can connect to all HP servers manually.
Any suggestion is greatly appreciated.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 04:58 AM
08-29-2001 04:58 AM
Re: telnet script doesn't on HP
Hi,
I have a similar problem on an HP server (HP-UX 11.00) (assume SRV1)
In fact, I have a Sun workstation from which I can connect with telnet on SRV1.
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:
login : user
Password: Connection closed by foreign host
If anyone have some elements or experience about this problem, il would be nice
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2002 09:01 AM
03-29-2002 09:01 AM
Re: telnet script doesn't on HP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 11:08 AM
07-17-2002 11:08 AM
Re: telnet script doesn't on HP
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.
bruceb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 03:47 PM
07-17-2002 03:47 PM
Re: telnet script doesn't on HP
--Misa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2002 08:09 AM
07-18-2002 08:09 AM