- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cannot telnet or rlogin, remsh works
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
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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-28-2003 05:51 AM
тАО08-28-2003 05:51 AM
Thanks...Kevin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 05:59 AM
тАО08-28-2003 05:59 AM
Re: Cannot telnet or rlogin, remsh works
tail -f /var/adm/syslog/syslog.log
Then from somewhere else:
log in.
You may see very important information.
Shot in the dark:
inetd -c
See if that clears it up.
How many psuedo terminals do you have set up? The default is 60. Thats was too low for us.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 06:03 AM
тАО08-28-2003 06:03 AM
Re: Cannot telnet or rlogin, remsh works
What are the values for these parameters in the kernel ? Are they the default? Maybe some users leave many session open and you get out of pty/tty.
Increasing them should do no harm.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 06:06 AM
тАО08-28-2003 06:06 AM
Re: Cannot telnet or rlogin, remsh works
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x04206619542c3a44b7f4c73d530f629f,00.html
I usually create an abundance of all of them. nstrtel, npty & nstrpty parameters set at 1024. Here's how to create the devices. pts are created from the last command.
# cd /dev
# insf ???d pty ???s 1024 ???e ???v
# insf ???d ptm ???s 1024 ???e ???v
# insf -d telm ???s 1024 ???e ???v
# insf -d tels ???s 1024 ???e -v
There are actually three different types of pty device on 11.00 and beyond.
classic pty - man pty
used by hpterm, script, and ied
limited by npty kernel tunable
stream pty - man ptm, man pts
used by dtterm, rlogin, and gnome-terminal
limited by nstrpty kernel tunable
telnet pty - man telm, man tels
used by telnet
limited by nstrtel kernel tunable
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 06:31 AM
тАО08-28-2003 06:31 AM
Re: Cannot telnet or rlogin, remsh works
As Steven said, inetd -c can re-read the config file for inetd processes (telnetd, rlogind remshd etc), although this wouldn't affect the console, which normally uses getty to generate a login. An inetd problem would also probably prevent your remsh command from connecting.
Now when you say that remsh works, do you mean that you are using remsh to open up a session that you can interact with,
remsh machine
or executing a single command on the remote server,
remsh machine command
If the latter, it points more towards a problem with your tty's, as that form of the remsh command doesn't use one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2003 09:47 AM
тАО08-29-2003 09:47 AM
Re: Cannot telnet or rlogin, remsh works
nstrpty: 120
nstrtel: 60
nstrpty: 120
I cat'd syslog while the problem was occurring with a remsh and didn't see any errors. I didn't try inetd -c at the time, but that's a very good idea. telnet and rlogin attempts produced no errors, the commands just hung indefinitely. In the past when we've run out of tty's (I once had a Xerox print daemon eat them all) I thought I saw an error either in syslog or on the console. I can't remember.
I was running:
remsh machine command
which worked fine. I didn't think of running:
remsh machine
Also, can anyone think of a way to produce a monitoring script that would test for such behavior? I already have one that runs a
"remsh machine command" - which obviously didn't produce any errors in this instance. Since a telnet or rlogin is normally interactive I can't see how to do this with a ksh script.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2003 02:53 PM
тАО08-29-2003 02:53 PM
Re: Cannot telnet or rlogin, remsh works
I'm just throwing this out there, but do you have the -TCP_DELAY option set in your inetd.conf? We had a slowness issue here sometimes and adding that option cleared it up.
telnet stream tcp nowait root /usr/lbin/telnetd telnetd -TCP_DELAY
The only other thing I can thing of is a stale NFS mount, but that doesn't come into play until after you log in.
Good luck!
Seth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2003 03:27 PM
тАО08-29-2003 03:27 PM
SolutionYour problem is the nstrtel parm. Telnet & rlogin sessions are streams based now, so that parm is limiting you to 60. Bump it to 120 like the others & then you'll have the headroom you need. Convention is to keep all 3 of those the same.
HTH,
Jeff
P.S. Any relation to Marty Liquori the legendary distance runner?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2003 03:32 PM
тАО08-29-2003 03:32 PM
Re: Cannot telnet or rlogin, remsh works
nstrtel: 60
nstrpty: 120
They should all be the same number. Bump up nstrtel to 120 and put the new kernel in production.
You can use sam and their are procedurs aplenty on itrc for doing it on the command line.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2003 06:59 AM
тАО09-02-2003 06:59 AM
Re: Cannot telnet or rlogin, remsh works
Jeff, I've always told people I'm not related to Marty Liquori because that's what my parents said . I just looked him up (thanks to the magic of the internet) and I see he was born in New Jersey - I was born in New York - so there's a geographic similarity...hmmm...