Operating System - HP-UX
1834818 Members
2662 Online
110070 Solutions
New Discussion

Repeated error getty: cannot vhangup line "console". errno: 25

 
Yuri Kozlov
Advisor

Repeated error getty: cannot vhangup line "console". errno: 25

Hello.
I have HP-UX 11.11 on B-class server and trying setup console port in order to connect notebook with null-modem cable. In /etc/inittab:
a0:3:respawn:/usr/sbin/getty -h tty0p0 DT9600 vt100
In /etc/gettydefs:
DT9600 # B9600 CS8 CLOCAL # B9600 SANE -ISTRIP CLOCAL #login: #DT9600
(standart strings is not work and this line I read from this forum)
All work OK, but I see many errors in log
getty: cannot vhangup line "console". errno: 25

Thats wrong ?

Regards, Yuri Kozlov
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Repeated error getty: cannot vhangup line "console". errno: 25

Probably the communications settings on the serial port on the laptop Yuri.

If you have another system with a proper console or monitor, your best bet is to "borrow" it for a while.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Yuri Kozlov
Advisor

Re: Repeated error getty: cannot vhangup line "console". errno: 25

Sorry, I forget to say, this error happen when no console connection(no cable and another computer plug-in)
Michael Steele_2
Honored Contributor

Re: Repeated error getty: cannot vhangup line "console". errno: 25

Is there a linux device involved in this somewhere?
Support Fatherhood - Stop Family Law
Darren Prior
Honored Contributor

Re: Repeated error getty: cannot vhangup line "console". errno: 25

Hi Yuri,

There's a couple of points you ought to check:

1) did you leave one blank line either side of your DT9600 entry in /etc/gettydefs? This file is very sensitive to any syntax errors. If in doubt start with the fresh file from /usr/newconfig/etc/gettydefs and add any customisation back in. I always put customised entries above the last entry in the file, and ensure there's one blank line before and after it. getty -c can also be used to do _some_ syntax checking of this file - see the getty man page.

2) the dial in device is ttyd0p0, rather than tty0p0. Check whether you have another entry in inittab that references the same physical port (ie ttyd0p0, tty0p0, etc.)

3) errno 25 is "not a typewriter." If you set the a0 line in /etc/inittab to off, do you still see this error?

regards,

Darren
Calm down. It's only ones and zeros...
Yuri Kozlov
Advisor

Re: Repeated error getty: cannot vhangup line "console". errno: 25

Thanks Darren.
I found answer.
This computer no have monitor,
but in inittab start getty console. I comment this and error disappear. Another question: how to leave getty on console without monitor?

Regards, Yuri Kozlov
Darren Prior
Honored Contributor

Re: Repeated error getty: cannot vhangup line "console". errno: 25

Hi Yuri,

I'm not sure of the specifics for the B-class, but some workstations use the monitor for the console, unless it's not connected at which point a serial port is used.

regards,

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