<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic dmesg timestamp; msgbuf in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dmesg-timestamp-msgbuf/m-p/7028114#M491071</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Is msgbuf file content is identical to the output of dmesg ?&lt;/P&gt;&lt;P&gt;2. how can I add timestamp to dmesgbuf ?&lt;/P&gt;&lt;P&gt;3. how /var/adm/msgbuf is created? I have this file in one server but missing on ther other&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 22:22:49 GMT</pubDate>
    <dc:creator>guldasta</dc:creator>
    <dc:date>2018-12-10T22:22:49Z</dc:date>
    <item>
      <title>dmesg timestamp; msgbuf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dmesg-timestamp-msgbuf/m-p/7028114#M491071</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Is msgbuf file content is identical to the output of dmesg ?&lt;/P&gt;&lt;P&gt;2. how can I add timestamp to dmesgbuf ?&lt;/P&gt;&lt;P&gt;3. how /var/adm/msgbuf is created? I have this file in one server but missing on ther other&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 22:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dmesg-timestamp-msgbuf/m-p/7028114#M491071</guid>
      <dc:creator>guldasta</dc:creator>
      <dc:date>2018-12-10T22:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: dmesg timestamp; msgbuf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dmesg-timestamp-msgbuf/m-p/7028149#M491073</link>
      <description>&lt;P&gt;&lt;SPAN&gt;dmesg is an in-core buffer kept by the kernel and also a command which will always report everything when you run it *UNLESS* you use the - option (I know, it's hard to see). This option is designed to keep a cumulative log and an example using cron is available in /usr/newconfig, but it looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;00,10,20,30,40,50 * * * * /usr/sbin/dmesg - &amp;gt;&amp;gt; /var/adm/messages&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Be sure you use the - flag. This makes dmesg scan the buffer for new info and if none is found, nothing is reported.&amp;nbsp; Otherwise a timestamp is added to the file and the newest contents from dmesg is added.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Actually, I prefer /var/adm/dmesg.log rather than "messages" since it makes more sense.&lt;BR /&gt;Like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;00,10,20,30,40,50 * * * * /usr/sbin/dmesg - &amp;gt;&amp;gt; /var/adm/dmesg.log&lt;/PRE&gt;&lt;P&gt;The msgbuf is a scratch file used by the "-" option and should not be touched.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 07:49:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dmesg-timestamp-msgbuf/m-p/7028149#M491073</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2018-12-11T07:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: dmesg timestamp; msgbuf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dmesg-timestamp-msgbuf/m-p/7029459#M491086</link>
      <description>&lt;P&gt;Bill, thank you so much for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is msgbuf file is created by the system itself? Because I did not have msgbuf file until I ran dmesg command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 21:54:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dmesg-timestamp-msgbuf/m-p/7029459#M491086</guid>
      <dc:creator>guldasta</dc:creator>
      <dc:date>2018-12-26T21:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: dmesg timestamp; msgbuf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dmesg-timestamp-msgbuf/m-p/7029460#M491087</link>
      <description>As I mentioned, msgbuf is a temp file used by the dmesg tool. Don't use it for information. Use dmesg for latest info and append additional info using the above cron example.</description>
      <pubDate>Wed, 26 Dec 2018 22:03:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dmesg-timestamp-msgbuf/m-p/7029460#M491087</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2018-12-26T22:03:45Z</dc:date>
    </item>
  </channel>
</rss>

