- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- dmesg and syslog
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
Discussions
Discussions
Discussions
Forums
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
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
тАО07-26-2004 01:39 AM
тАО07-26-2004 01:39 AM
dmesg and syslog
I had a few queries regarding the relationship between syslog and dmesg.
1- In dmesg, the most recent message appears first?
Since dmesg does not show time, and will retain all critical messages coming to console since last reboot, it will invariably show issues in its output which have already been solved.
2- If I find some message and dmesg, but not in my syslog, can I be 100 % sure that the dmesg issue no longer applies (has been solved)?
Thanks and Regards,
-Alvi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2004 01:45 AM
тАО07-26-2004 01:45 AM
Re: dmesg and syslog
To dig out old errors, syslog.log is the file to look at.
2. Mostly it won't happen that the information is in dmesg and not in syslog.log file. (If you have configured your syslog.conf properly.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2004 01:46 AM
тАО07-26-2004 01:46 AM
Re: dmesg and syslog
How messages are handled is up to the application. Some might use the syslog function but file the data in a completely different log (e.g. mail); some applications might post error messages in both syslog and dmesg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2004 01:51 AM
тАО07-26-2004 01:51 AM
Re: dmesg and syslog
0,10,20,30,40,50 * * * * /sbin/dmesg - >>/var/adm/dmesg.log
This will add any new dmesg inforation to the dmesg.log file. You can change the time specifications to get a better timely resolution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2004 06:06 PM
тАО08-03-2004 06:06 PM
Re: dmesg and syslog
The issue however still bothers me. I have messages in dmesg complaining of invalid inode numbers, or unable to read inode and block no on some particular filesystems
Previously such messages could have appeared when we made some changes, I suspect them to be old ... but not 100 % sure.
Syslog doesn't show these messages.
Is there a way to flush dmesg, to have only new messages come there from a particular point in time?
thanks and Regards,
-Alvi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2004 06:25 PM
тАО08-03-2004 06:25 PM
Re: dmesg and syslog
I don't believe there is a way of actually flushing all messages form the dmesg buffer. These messages are held in memory so you would need to re-boot the system!
Look closely at Heiner's suggestion about logging dmesg to a log file.
Run the following from the command line:
# /usr/sbin/dmesg -
This shows any new messages in dmesg since it was last run.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2004 07:47 PM
тАО08-03-2004 07:47 PM
Re: dmesg and syslog
you can measure utilisation of setting inode
by #sar -v 1 10 this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2004 02:02 AM
тАО08-04-2004 02:02 AM
Re: dmesg and syslog
If you do a head of /var/adm/syslog/syslog.log you should get the same as dmesg unless there were a lot of dmesg messages
In my opinion in dmesg and not in syslog is a new message
Or at least since last flush
every day hour or what you like run
dmesg -
Then you see messages since previous run and know if they are new
do
dmesg -|while read line
do
logger $line
done
And the messages are copied to the syslog as
format
Date machine user: message
example
Aug 4 15:58:48 topaz root: Aug 4 15:58
Steve Steel