1836599 Members
2450 Online
110102 Solutions
New Discussion

/var/adm/messages

 
SOLVED
Go to solution
Mike Kuhar
Advisor

/var/adm/messages

What is /var/adm/messages used for?
13 REPLIES 13
John Poff
Honored Contributor
Solution

Re: /var/adm/messages

It is the error log file for the output of messages from dmesg.

JP
harry d brown jr
Honored Contributor

Re: /var/adm/messages


What kind of machine??

If you have one, post it and we can tell you what it is.

ALSO, post your /etc/syslog.conf (look for messages)

Strange, a lot of syslog queries today


live free or die
harry d brown jr

Live Free or Die
John Poff
Honored Contributor

Re: /var/adm/messages

Actually, I should have said, diagnostic messages and not error messages.

JP
Mike Kuhar
Advisor

Re: /var/adm/messages

It on a 9000/800/SD32000 running HPUX 11.11. I'm having a dispute on whether it is a system file, created on system installation. I maintain that it's a valid system file.
Kent Ostby
Honored Contributor

Re: /var/adm/messages

This is generally used as a log from dmesg ...

do a :

crontab -l

and see if you have something in there.

Generally, this is created with an entry like this:

/usr/sbin/dmesg - >> /var/adm/messages
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Kent Ostby
Honored Contributor

Re: /var/adm/messages

To clarify, it's not a default directory, but is used by "a lot" of users to log out dmesg.


See document KBRC00002381
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Ranjith_5
Honored Contributor

Re: /var/adm/messages

Hi Mike,

Post your /etc/syslog.conf

By default there is no /var/adm/messages present in HPUX , but in Linux.


if u can post the above may be we can get a clue, if you have customized your system logging.

Regards,
Syam
John Poff
Honored Contributor

Re: /var/adm/messages

I have /var/adm/messages on my HP-UX boxes. The file gets updated via cron jobs:

# Log kernel diagnostic messages every 5 minutes: ############################
00,05 * * * * /usr/sbin/dmesg - >> /var/adm/messages
10,15 * * * * /usr/sbin/dmesg - >> /var/adm/messages
20,25 * * * * /usr/sbin/dmesg - >> /var/adm/messages
30,35 * * * * /usr/sbin/dmesg - >> /var/adm/messages
40,45 * * * * /usr/sbin/dmesg - >> /var/adm/messages
50,55 * * * * /usr/sbin/dmesg - >> /var/adm/messages


JP
Pete Randall
Outstanding Contributor

Re: /var/adm/messages

Do a man on dmesg.


Pete

Pete
Mike Kuhar
Advisor

Re: /var/adm/messages

I understand that dmesg can use /var/adm/essages. If HP no longer uses this file by default, when did it stop using it, which version of HP/UX?
Pete Randall
Outstanding Contributor

Re: /var/adm/messages

Mike,

To the best of my knowledge, it was never a default. It was always something that had to be set up by the user.


Pete

Pete
Mike Kuhar
Advisor

Re: /var/adm/messages

Thanks to everyone who replied. I appreciate the input.
Stephen Keane
Honored Contributor

Re: /var/adm/messages

If you appreciate their efforts then please award them (not me) some points!