- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var/adm/messages
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
04-02-2008 03:45 AM
04-02-2008 03:45 AM
I have deleted my /var/adm/message file by mistake so copied back the prev with cp /var/adm/message.prev /var/adm/message but this is not being written to could you please advise.
Thanks,
Angus
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 03:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 03:52 AM
04-02-2008 03:52 AM
Re: /var/adm/messages
Perhaps a permissions problem?
Hope this helps.
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 04:48 AM
04-02-2008 04:48 AM
Re: /var/adm/messages
if you have not already restarted the syslogd as mentioned by Robert-Jan, you can verify the file permissions by doing:
ll /var/adm/message*
the permissions for all similar files should be the same.
you should have done the following:
either
restart as mentioned by Robert-Jan
or
touch /var/adm/message
chown root:root /var/adm/message
chmod 600 /var/adm/message
(also normally, if you had to do a copy, you should have run "cp -p" instead or "cp")
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 05:19 AM
04-02-2008 05:19 AM
Re: /var/adm/messages
Thanks for getting back to me.
I have checked the permissions and stopped and restarted syslogd but there is still nothing writing to /var/adm/messages file any other ideas.
I have also touched the file as mentioned.
Thanks,
Angus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 05:25 AM
04-02-2008 05:25 AM
Re: /var/adm/messages
could you post the /etc/syslog.conf file?
Are you sure you are using the /var/adm/messages file in the syslog.conf and not the default /var/adm/syslog/syslog.log file?
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 05:39 AM
04-02-2008 05:39 AM
Re: /var/adm/messages
Someone "Linuxed" this system by modifying syslog.conf
This is a very bad idea, because anyone you bring in to look at a problem or cover for a vacation will not be able to quickly identify the syslog file.
I recommend you change syslog.conf to the default location /var/adm/syslog/syslog.log
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 05:39 AM
04-02-2008 05:39 AM
Re: /var/adm/messages
Was this file being updated previously??
Unless you have a crontab entry that runs command:
/usr/sbin/dmesg - >> /var/adm/messages
every 10 minutes, nothing will be logged to this file. (see man dmesg)
As mentioned by Robert-Jan above, the default location of messages is /var/adm/syslog/syslog.log and this is defined in the /etc/syslog.conf
please check and revert back!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 05:41 AM
04-02-2008 05:41 AM
Re: /var/adm/messages
If it's not being written check the cron entry and the file /var/adm/msgbuf, which is a scratchpad used by dmesg -. I think the latter can just be replaced with an empty file if it has been deleted or corrupted.
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 05:47 AM
04-02-2008 05:47 AM
Re: /var/adm/messages
Thanks for getting back I have enclosed the syslog.conf file for you to look at.
root> /var/adm # ls -ltr /var/adm/messages
-rw-r--r-- 1 root root 0 Apr 2 14:12 /var/adm/messages
root > /var/adm # ls -ltr /var/adm/messages
-rw-r--r-- 1 root root 0 Apr 2 14:12 /var/adm/messages
root > /var/adm # cd /etc
root > /etc # ls -ltr syslog*
-rw-r--r-- 1 root other 1001 Jun 9 2004 syslog.conf.old
-rw-r--r-- 1 root sys 1038 Jun 9 2004 syslog.conf
lrwxrwxrwx 1 root other 21 Apr 2 14:11 syslog.pid -> ../var/run/syslog.pid
Thanks,
Angus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 06:03 AM
04-02-2008 06:03 AM
Re: /var/adm/messages
As mentioned please send your /etc/syslog.conf to determine where the syslogd is logging to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 06:05 AM
04-02-2008 06:05 AM
Re: /var/adm/messages
Typical looks like this:
# @(#)B.11.11_LR
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 07:00 AM
04-02-2008 07:00 AM
Re: /var/adm/messages
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 07:05 AM
04-02-2008 07:05 AM
Re: /var/adm/messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2008 11:16 AM
04-02-2008 11:16 AM
Re: /var/adm/messages
you can just make the message file using touch command.
Then restart the service:
/sbin/init.d/syslogd stop
/sbin/init.d/syslogd start
Thanks
Aashique