Solaris 9 error - "Unable to allocate a master pty."

When adding or reseting serial printers in on Solaris 9 system, we use the following command (as an example):

/usr/opt/annex/rtelnet -broaP 10.15.4.10 7002 /dev/bm015

This seems to work fine most of the time, but occasionally an error such as the following will appear:

ERR :10512:20041027204139: Unable to allocate a master pty.

When this error occurs, the only way around it is to do a reboot; which is not very convenient.  Please let us know what is causing this error and provide a way around it outside of having to reboot the system.

Thanks,
Shannon Adams
shannon_adamsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brian UtterbackPrinciple Software EngineerCommented:
Verify that the daemons syseventd and devfsadmd are running. Check /var/adm/messages for any messages from either of them.
If they are running, run "ls -l /dev/pts" and verify that there are only the devices in there that are files with only digits as names.
0
yuzhCommented:
You system might reach the max number of rtelnet sessions limit. (for olderr Solaris is 60, for new one is 45)!

You can try to modify /etc/system to set pt_cnt and nautopush to see if it can help (need a reconfigure boot).

The following example increases the number of ptys to 128:
set pt_cnt=128
set npty=128
set sadcnt=256
set nautopush=128

see the following doc to learn more:
http://docs.sun.com/app/docs/doc/802-5750/6i9g464r1?l=de&a=view
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brian UtterbackPrinciple Software EngineerCommented:
Unfortunately (or fortunately depending on how you look at it) the document that yuzh gave is for Solaris 2.6. Starting
in Solaris 8 the system used to allocate ptys was made dynamic. In general the number of ptys allocated
is only limited by the amount of memory you have available. You should not have to tune anything unless there is
something going wrong with the daemons that control it.
0
yuzhCommented:
You can try to apply the Solaris 9 latest patchs to the system to see if it can help.

or modify /etc/system as I mentioned in my aerly comment to force it to
changed.

also read:
http://www.columbia.edu/~rtt2101/iaoq/
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.