How to monitor pty

Hi all,
today I could not telnet in AIX 5.2 cause I received the error
"telnetd: All network ports in use".

To allow users to telnet again I increased the number of ptys from default 256 to the new number 512.

To avoid the same problem in the future and for a better understanding, I need (and would like) to monitor and detect all the ptys in the system. I also need to know from which processes they are arised.

Someone can help me in this?

Thanks very much,
Luciano

Use `ps ax`, more help: `man ps`

smitty pty
increase the number of max ptys