- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What's the point of /var/adm/messages on HPUX?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 08:17 PM
01-13-2004 08:17 PM
What's the point of /var/adm/messages on HPUX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 08:37 PM
01-13-2004 08:37 PM
Re: What's the point of /var/adm/messages on HPUX?
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 08:42 PM
01-13-2004 08:42 PM
Re: What's the point of /var/adm/messages on HPUX?
dmesg is work before syslogd start becoz syslog starts at run level 2.
not sure about /var/adm/messages (in my system 10.20 this file is not there even).
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 08:44 PM
01-13-2004 08:44 PM
Re: What's the point of /var/adm/messages on HPUX?
/var/adm/messages is NOT the default messages file on HPUX.
/var/adm/syslog/syslog.log is.
To tell have a look at /etc/syslog.conf file which defines what is captured and to where.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 08:47 PM
01-13-2004 08:47 PM
Re: What's the point of /var/adm/messages on HPUX?
Could you check your root user crontab for the line
# /usr/sbin/dmesg - >> /var/adm/messages
If that is configured, dmesg will append the messages file.
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 08:47 PM
01-13-2004 08:47 PM
Re: What's the point of /var/adm/messages on HPUX?
Is it correct in assuming that output generated by dmesg also appears in the syslog (as configured in the /etc/syslog.conf). So the dmesg command is virtually useless?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 08:49 PM
01-13-2004 08:49 PM
Re: What's the point of /var/adm/messages on HPUX?
There's no need to maintain a /var/adm/messages file and there is no reason to use the dmesg command if you have your syslog configured correctly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 08:56 PM
01-13-2004 08:56 PM
Re: What's the point of /var/adm/messages on HPUX?
:-) John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 08:56 PM
01-13-2004 08:56 PM
Re: What's the point of /var/adm/messages on HPUX?
Yes the messages reported by dmesg will also be written to the syslog file. No dmesg is not an unusefull command because it will report on demand specific system errors, while syslog reports all kind off errors (login, ftp etc).
Dmesg is usefull when there is a sudden problem, if you need to search the syslog file it will take more time.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 08:56 PM
01-13-2004 08:56 PM
Re: What's the point of /var/adm/messages on HPUX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 08:59 PM
01-13-2004 08:59 PM
Re: What's the point of /var/adm/messages on HPUX?
I'm irged to delete it because it has nu direct use....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 09:02 PM
01-13-2004 09:02 PM
Re: What's the point of /var/adm/messages on HPUX?
I have setup the messages file too, we are running as mixed system env ( solaris, aix and hpux ) admins tend to search the messages file if there is a panic situation. (:-)
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 09:04 PM
01-13-2004 09:04 PM
Re: What's the point of /var/adm/messages on HPUX?
I know that /var/adm/messages is on Tru64, it is the equivalent of syslog.log of HP-UX.
Instead dmesg is a quick command for diagnostic messages and form error log, it usually reports messages that syslog.log contains too.
I hope this helps you.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 09:04 PM
01-13-2004 09:04 PM
Re: What's the point of /var/adm/messages on HPUX?
you may think its of no use to you but another sys admin working in your absense having to deal with a problem may like to have this. Is there really anything to be gained by removing the service ?
:-) John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 10:36 PM
01-13-2004 10:36 PM
Re: What's the point of /var/adm/messages on HPUX?
The only drawback is that it works with a buffer, and that is the reason for the redirection from crontab using the "dmesg -" incremental switch to display only messages since the last call.
I have had cases where I've picked up problems (especially H/W) quicker from a remsh call to dmesg than from trying to filter out what's useful in the syslog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2004 10:55 PM
01-13-2004 10:55 PM
Re: What's the point of /var/adm/messages on HPUX?
If the - argument is
specified, dmesg computes (incrementally) the new messages since the
last time it was run and places these on the standard output. This is
typically used with cron (see cron(1)) to produce the error log
/var/adm/messages by running the command:
/usr/sbin/dmesg - >> /var/adm/messages
every 10 minutes.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 12:36 AM
01-14-2004 12:36 AM
Re: What's the point of /var/adm/messages on HPUX?
Check out which platforms use it at the Rosetta Stone. http://bhami.com/rosetta.html