1837210 Members
2489 Online
110115 Solutions
New Discussion

syslog.log

 
SOLVED
Go to solution
Clutier_1
Occasional Advisor

syslog.log

Hi,

i have some msg like this in the syslog.log file :

Jan 12 22:23:30 ciccogd above message repeats 59 times
Jan 12 16:23:43 ciccogd : getty: cannot open "tty0p1". errno: 2
Jan 12 16:43:24 ciccogd : getty: cannot open "tty0p1". errno: 2
Jan 12 22:43:31 ciccogd above message repeats 59 times
Jan 12 16:43:44 ciccogd : getty: cannot open "tty0p1". errno: 2
Jan 12 17:03:25 ciccogd : getty: cannot open "tty0p1". errno: 2

I do not manage to find the origin of these messages.


8 REPLIES 8
Hoefnix
Honored Contributor
Solution

Re: syslog.log

I am not sure, but could it be that there is a respwan-ed getty defined on this device in the /etc/inittab.
Try to remark this and run an "init q" after the edit and see if no new messages are logged.

#ttp1:234:respawn:/usr/sbin/getty -h tty0p1 9600

Regards,

Peter
Dietmar Konermann
Honored Contributor

Re: syslog.log

Looks like there is a getty running, trying to open a line.

Error 2 means:

#define ENOENT 2 /* No such file or directory */

Either you deconfigure the getty for that line (usually configured in /etc/inittab.. comment out the entry, run init q) or you create a new device file, if it's still needed.

# mksf -C tty -I 0 -p 1


Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Ravi_8
Honored Contributor

Re: syslog.log

Hi

another suggestion,
#insf -e

run this command and check for log files again
never give up
Andrew Cowan
Honored Contributor

Re: syslog.log

Using the "#" character as a comment in the "/etc/inittab" is not a good idea. Either begin a comment line with ": " or set the entry to "off", then do an "init q".

If you have faulty entries in your "/etc/inittab" you should see that the "/var/adm/wtmp" will grow out of control, and eventually fill the filesystem.
Elmar P. Kolkman
Honored Contributor

Re: syslog.log

Any line started with a '#' is seen as comment by init (see the man page of inittab).
It seems you have copied the inittab file or line from a system with more serial ports, or you have removed a serial port/MUX, or something like that. You can see which serial ports exist with ioscan:
ioscan -fnkCtty

Since getty cannot open tty0p1, there are two solutions:
1) if /dev/tty0p1 doesn't exist, you might try to create it. This is already described, but only solves the issue if there is a real device connected to it. So after creating it with mknod, check if it is connected to a real device with ioscan of doing a cat of the device.
2) if /dev/tty0p1 exists, the device has no real hardware connected to it, so you can comment the line and think about removing the device file(s).
Every problem has at least one solution. Only some solutions are harder to find.
Andrew Cowan
Honored Contributor

Re: syslog.log

Interesting. I don't have a HP-UX machine in front of me, and am surprised that it uses "#" as a comment. In most versions of Unix "/etc/inittab" is an exceptional case, and tends to use ":" or ";" instead.
Cheryl Griffin
Honored Contributor

Re: syslog.log

Which os's use anything other than #? The # is a shell comment.

From the man page for sh(1) and/or inittab(4)
Comments Lines
A word beginning with # causes that word and all the following characters up to a newline to be ignored.
"Downtime is a Crime."
Andrew Cowan
Honored Contributor

Re: syslog.log

Oops, sorry should have said that "/etc/inittab" was an exception, and that most OS's dont use "#" as a comment in that particular file. AIX for example uses ": " to dentote comments.