Operating System - HP-UX
1834768 Members
3951 Online
110070 Solutions
New Discussion

Re: continuous getty error in syslog

 
Darryl Darling_1
New Member

continuous getty error in syslog

I have a 10.20 system that is getting the following error continuously in the system log.

syslog: getty: cannot open "ttydnn". errno: 19 where nn is a numeric value.

Any ideas on this are appreciated
5 REPLIES 5
Clemens van Everdingen
Honored Contributor

Re: continuous getty error in syslog

Hi,

Try this:


1. Modify /etc/inittab by removing the getty entries running on ttys that are not being used.

2. init q

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
MANOJ SRIVASTAVA
Honored Contributor

Re: continuous getty error in syslog

Hi


Do a vi /etc/inittab ans check for the ttydnn , you can commnet out the same if the line is not being used , incase it is being used by some serial device the port amy have some problem . Also after you comment the line you need to a ps -aef | grep on the ttydnn and then kill any process assoiated with it


Manoj Srivastava
A. Clay Stephenson
Acclaimed Contributor

Re: continuous getty error in syslog

Getty is attempting to run on a device, /dev/ttydnn, that does not exist.

You may be missing device nodes. If so, an insf command (insf -C tty) can be used to recreate them. Man insf for details. Hardware may also be bad or have been removed. You can edit /etc/inittab and change the offending entries from 'respawn' to 'off'. After editing inittab, you will need to issue an 'init q' command to cause a re-read on /etc/inittab.
If it ain't broke, I can fix that.
Eric Hess
Advisor

Re: continuous getty error in syslog

More than likely this message is comming from /etc/inittab. It is a modem that was but is not currently on your system. The /etc/inittab probably looks like this.

ttp1:234:respawn:/usr/sbin/getty -h ttydnn 9600

Just remark that line out of /etc/inittab if thats the case. Hope this helps.

I didn't do it. He did!
Darren Prior
Honored Contributor

Re: continuous getty error in syslog

Hi,

errno 19 is no such device (see /usr/include/sys/errno.h)

As others have stated this error is generally caused by having a getty setup in /etc/inittab for a non-existent port.

If you're seeing different values of nn then it suggests that someone has either removed a load of device files that they didn't think they needed. Alternatively someone has restored a previous inittab that did contain many gettys.

The fix is to either recreate the device files if you need them, or remove (or turn off) the getty lines from /etc/inittab and run init q.

regards,

Darren.
Calm down. It's only ones and zeros...