Solved

telnetd error

Posted on 1998-05-12
6
307 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
llcommand 6 90
IBM flash storage 840 15 62
Generate FIPS 140-2 Public Key on Unix 5 74
Linux :how to provide sudo access to the user 13 96
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now