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 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.

Shannon Adams
Who is Participating?
yuzhConnect With a Mentor Commented:
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:
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.
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.
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

also read:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.