Operating System - HP-UX
1751934 Members
4918 Online
108783 Solutions
New Discussion юеВ

/dev/log not work in hp-ux

 
calvarez
Frequent Visitor

/dev/log not work in hp-ux

I have a hp-ix 11i v1 and I saw that /var/adm/syslog/syslog.log don't have anything. I erase the socket /dev/log and restart de syslogd service. The service rebuilt the socket good. But ever don't work. With the service up I write:
#echo "Test" > /dev/log
But that don't write anything in syslog.log. I reviewed syslog.conf but it┬┤s ok. Any idea.
Innovation must be part of your past, your present and your future.
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: /dev/log not work in hp-ux

What happens if you use the "logger" command to try to write something to syslog?

# logger "This is a test to syslog"
calvarez
Frequent Visitor

Re: /dev/log not work in hp-ux

Not, that not do anything.
Innovation must be part of your past, your present and your future.
TTr
Honored Contributor

Re: /dev/log not work in hp-ux

Did you or anyone else touch /etc/syslog.conf recently? I know you said that you reviewed it and it is ok but most of the time that's where the problem is. There can NOT be any spaces in the syslog.conf file. The "spacing" that you see in that file is made of "tab" characters.
Look at the syslog.conf file with "od -c /etc/syslog.conf" and if there are any spaces in it, edit the file with vi, and either delete the space or replace it by a tab. Restart syslogd after editing.