- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cannot telnet to machine via a port
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
Discussions
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
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
04-29-2003 01:25 AM
04-29-2003 01:25 AM
Cannot telnet to machine via a port
I have an issue whereby I cannot telnet to my machine via a specified port.
We have a process, which runs on the server which allows users to log into the server via a specified port number. Ever so often this mechanism does not work. The error I got when I tried to telnet to the server was:
#> telnet `hostname1` portnumber
Trying...
Connected to `hostname`
Escape character is '^]'.
SetSockOpt: Invalid argument
Connection closed by foreign host.
Also I checked the syslog & their was another error: Too many files open.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 01:29 AM
04-29-2003 01:29 AM
Re: Cannot telnet to machine via a port
Check your nfiles settings.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 01:31 AM
04-29-2003 01:31 AM
Re: Cannot telnet to machine via a port
I would check the server to ensure that the process is actually listening on that port at the particular time you are attempting to log in
use lsof to do this
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.64/
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2003 10:07 AM
04-30-2003 10:07 AM
Re: Cannot telnet to machine via a port
when there is strange problem that happens intermittently, at least in all my cases, it's always 64bit things.
If that is the case, I guess there is little you can do other than compile the program in 32bit mode. This always solves problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2003 10:14 AM
04-30-2003 10:14 AM
Re: Cannot telnet to machine via a port
Use SAM, go to kernel configuration - configurable parameters. You can set new values for both parameters. Be aware that you will have to reboot after this, so do it during a maintenance window.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2003 02:12 PM
04-30-2003 02:12 PM
Re: Cannot telnet to machine via a port
On the other hand, this line
'SetSockOpt: Invalid argument'
is troubling. As if the service definition for this port somehow got a 'bug' for the lack of a better term.
for instance if we look at the telnet service which is listening on port 23 by default, you will see :
1) in /etc/services
telnet 23/tcp # Virtual Terminal Protocol
2) in /etc/inetd.conf
telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b /etc/issue
when you compare these lines to the respective lines of listening service on the specified port on your machine, it feels like your argunments/paramaters may be configured wrongly or totally missing. Of course without knowing the specifics of your service, it's very hard to guess the exact nature of the problem.
Also, it is not a very likely scenario here but, check your /var/adm/inetd.sec file if you have one and see if this service is allowed for the machine the request is coming from.
Hope this helps.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2003 04:42 PM
04-30-2003 04:42 PM
Re: Cannot telnet to machine via a port
Either the service is configured not to accept connections, or inetd.sec is refusing all connections(try another port).
You machine could be having GSP or network problems and dropping off the lan like my currently stricken L2000 box.
I think the too many files message may be connected only if it directly coincides with the reject.
Try this step to be sure.
On the target machine:
tail -f /var/adm/syslog/syslog.log
this will give you a running stream of that file
Then to the connect.
If the message pops up soon after the connect try or instantaneously, you have a winner. If not, you have two problems.
Good Luck.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com