1753500 Members
4636 Online
108794 Solutions
New Discussion

Re: dmesg

 
Indrajit Bhagat
Regular Advisor

dmesg

Hello All

 

In HP-Unix, How to read the dmesg with Timestamps..Also is there log file name to which dmesg is getting diverted.

 

Regards

Indrajit Bhagat

2 REPLIES 2
Torsten.
Acclaimed Contributor

Re: dmesg

Usually you will find the same messages in syslog and/or diagnostics (depending on type).


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!   
Bill Hassell
Honored Contributor

Re: dmesg

dmesg does not create a logfile.
Although some of the dmesg lines are logged to syslog.log during bootup, subsequent messages are not logged.

 

To create a log *and* add a timestamp, add this line to your crontab on *all* HP-UX boxes, any version:

 

# Monitor dmesg with timestamps
0,10,20,30,40,50 * * * * /sbin/dmesg - >> /var/adm/dmesg.log

 The timestamp is added when dmesg - is run.

The "-" character tells dmesg to only display anything new since the last dmesg - command.

 

 



Bill Hassell, sysadmin