Solved

telnetd error

Posted on 1998-05-12
6
309 Views
Last Modified: 2013-12-27
We have a Sun server with an Informix database loaded on it.  About 60 users from PC's and other Suns telnet to the server to gain access to the database off and on throughout the day.  Here lately, i guess more users are trying to telnet at the same time and we get an error message like this:

telnetd:  All network ports in use.
Connection closed by foreign hosts.

What can be done to increase the number of users that can log into the Sun system at one time?

0
Comment
Question by:j_k
  • 3
  • 2
6 Comments
 
LVL 1

Accepted Solution

by:
wex earned 50 total points
ID: 2006769
You're not going to like this answer, but that's a kernel feature which is controlled by a compile-time constant.  If you like, I can explain why it's done that way but the short answer is that system resources are not infinite.

One possible answer would be to put more memory into the Sun.  This won't increase the number of concurrent telnet sessions which it allows, but it should make users' operations go faster so they'll get done quicker and be off sooner.  Likewise, getting a faster disk for the database might help.

Finally, you might be able to "solve" the problem socially.  Let your users know that telnet sessions are a limited resource and ask them to close their telnet sessions instead of sitting idle.  You can sort of enforce this by putting an autologout timeout into peoples' .cshrcs or somesuch.  This will boot them off when they're idle for X minutes (20-60 usually).
0
 

Author Comment

by:j_k
ID: 2006770
Wex, i would like more information as to how to modify the kernel, to gain telnet access points.  Unless thier is reason for not doing this.  I remember in the past we had to make some kernel changes, and all went well.
This server currently has 128mb of memory, it seems sufficient.  Is there a method for determining how much is used?
Also,  Can you elaborate on how to set up an autologout feature?  I'm not sure i want to use it for telnet, but there may be some other area i might want to implement this.

j_k

0
 
LVL 1

Expert Comment

by:wex
ID: 2006771
OK, if you have the ability to recompile the kernel it's pretty simple -- there are constants in various .h files and all you need to do is find the one which is controlling telnet connections and change it.  You might also need to increase the total number of possible open file descriptors for the kernel as a whole (since each telnet session consumes at least 3 fds).

As for determining how much memory is in use at any given time, it varies by OS and I don't have a Sun handy to test it out.  Try swap -s

As for the autologout, it's set on a per-user basis; you can't actually control whether it's used on telnet connections without some clever shell-script hacking.  In general, you can put a line in peoples' .cshrc files which says something like
     set autologout=20

which should log them out after 20 minutes of idleness.
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

Author Comment

by:j_k
ID: 2006772
wex,
I didn't see any reference to telnet setting's in the *.h files.  Where or what reference should i be looking for?

0
 
LVL 3

Expert Comment

by:braveheart
ID: 2006773
One approach that might work is to provide a CGI web browser interface to the database. This might involve a lot of work and you might still get contention for system resources but at least it would get round the idle login problem because connections would only be maintained for the duration of each access.

Another alternative would be to see investigate whether Informix provide some TCP/IP access to the database which could be accessed from the client machines. Again, this could be quite a lot of work but might prove to be the best ultimate solution.
0
 

Author Comment

by:j_k
ID: 2006774
Thanks for the ideas.  Not sure what i will do, but for now this is not a pressing problem anymore; yeah right!  Wait till someone complains again!!
Thanks for now?

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question