<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class="">
<br class=""><div><blockquote type="cite" class=""><div class="">On Oct 7, 2018, at 1:23 AM, Warner Losh <<a href="mailto:imp@bsdimp.com" class="">imp@bsdimp.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Sat, Oct 6, 2018 at 11:02 PM Charles Sprickman <<a href="mailto:spork@bway.net" target="_blank" class="">spork@bway.net</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 6, 2018, at 5:48 PM, Brian Callahan <<a href="mailto:bcallah@devio.us" target="_blank" class="">bcallah@devio.us</a>> wrote:</div><br class="m_-2997223589968985547m_46167203527693216Apple-interchange-newline"><div class="">
<div text="#000000" bgcolor="#FFFFFF" class="">
<br class="">
<div class="m_-2997223589968985547m_46167203527693216moz-cite-prefix">On 10/06/18 17:44, Warner Losh wrote:<br class="">
</div>
<blockquote type="cite" class="">
<div dir="ltr" class="">
<div dir="ltr" class=""><br class="">
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="">On Sat, Oct 6, 2018 at 2:26 PM George
Rosamond <<a href="mailto:george@ceetonetechnology.com" target="_blank" class="">george@ceetonetechnology.com</a>>
wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br class="">
<br class="">
Warner Losh:<br class="">
> Greetings,<br class="">
> <br class="">
> Just thought I'd mentioned that I plugged the dmesgd
submission site on<br class="">
> FreeBSD's mailing list, so you might see an up-tick
in submissions from<br class="">
<br class="">
<br class="">
Yes... to echo brian... more is better.<br class="">
</blockquote>
<div class=""><br class="">
</div>
<div class="">Glad to hear it.</div>
<div class=""><br class="">
</div>
<div class=""><font face="arial, helvetica, sans-serif" class="">BTW, there's
a small niggle... FreeBSD just went to a reproducible
build by default, so there's strings like</font></div>
<pre style="overflow:auto" class=""><font face="arial, helvetica, sans-serif" class="">FreeBSD 12.0-ALPHA6 r338698+59ff9aa72cd4(master) amd64</font></pre>
<div class=""><font face="arial, helvetica, sans-serif" class="">now that
lack the #xxx in them. This is for someone that's using
git-svn to build the release (which is why it has both
the r# and the git hash). So their submission was
rejected.</font></div>
<div class=""><font face="arial, helvetica, sans-serif" class=""><br class="">
</font></div>
<div class=""><font face="arial, helvetica, sans-serif" class="">mine that was
built with different options looked like:</font></div>
<div class=""><font face="arial, helvetica, sans-serif" class=""><br class="">
</font></div>
<div class=""><font face="arial, helvetica, sans-serif" class="">FreeBSD
12.0-ALPHA2 #40+8d55b8a51f5(freze-newer)-dirty: Wed Aug
22 15:34:50 MDT 2018<br class="">
</font></div>
<div class=""><font face="arial, helvetica, sans-serif" class=""><br class="">
</font></div>
<div class=""><font face="arial, helvetica, sans-serif" class="">the person
that contacted me was clueful enough to puzzle it out,
but I thought I'd pass it along.</font></div>
<div class=""><font face="arial, helvetica, sans-serif" class=""><br class="">
</font></div>
<div class=""><font face="arial, helvetica, sans-serif" class="">Also, I was
going to bang together a quick python script that
automatically submits the dmesg.boot file since the web
page is kinda klunky if you are doing a bunch of
servers... Any objections? Anybody beaten me to the
punch?</font></div>
<div class=""><font face="arial, helvetica, sans-serif" class=""><br class="">
</font></div>
</div>
</div>
</div>
</blockquote>
<br class="">
<font face="arial, helvetica, sans-serif" class="">There's a Perl script by
afresh1@ that does this for OpenBSD; I assume it can be quickly
made to support any other *BSD.<br class="">
</font><a class="m_-2997223589968985547m_46167203527693216moz-txt-link-freetext" href="https://gist.github.com/afresh1/99cdd481184147f0e8c0" target="_blank">https://gist.github.com/afresh1/99cdd481184147f0e8c0</a><br class=""></div></div></blockquote><div class=""><br class=""></div><div class="">Curl works as a one-liner:</div><div class=""><br class=""></div><div class="">curl -v -d "nickname=spork" -d "<a href="mailto:email=spork@bway.net" target="_blank" class="">email=spork@bway.net</a>" -d 0 v2" -d "do=addd" --data-urlencode 'dmesg@/var/run/dmesg.boot' <a href="http://dmesgd.nycbug.org/index.cgi" target="_blank" class="">http://dmesgd.nycbug.org/index.cgi</a></div></div></div></blockquote><div class=""><br class=""></div><div class="">I think the third -d should be -d "description=name of machine v2" no?</div><div class=""><br class=""></div><div class="">Warner</div><div class=""><br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><a href="http://dmesgd.nycbug.org/index.cgi?do=view&id=3851" class="">http://dmesgd.nycbug.org/index.cgi?do=view&id=3851</a></div></blockquote><div class=""><br class=""></div><div class="">I just did <a href="http://dmesgd.nycbug.org/index.cgi?do=view&id=3852" class="">http://dmesgd.nycbug.org/index.cgi?do=view&id=3852</a> this way (though it's a legit entry too).</div></div></div></div></blockquote><div><br class=""></div><div>All - just curious if anyone else uses dmidecode (sysutils/dmidecode)?</div><div><br class=""></div><div>More specifically, for anyone looking to script dmesg collection, dmidecode pulls some decent info about the make/model of the mainboard (or in some cases, the server as a whole) that would be useful info to have in the “description” field.</div><div><br class=""></div><div>For example, part of the summary on this HP server in my garage:</div><div><br class=""></div><div>Handle 0x0100, DMI type 1, 27 bytes<br class="">System Information<br class=""> Manufacturer: HP<br class=""> Product Name: ProLiant ML10 v2<br class=""> Version: Not Specified<br class=""> Serial Number: CN65310J2D<br class=""> UUID: 32353338-3636-4e43-3635-3331304a3244<br class=""> Wake-up Type: Power Switch<br class=""> SKU Number: 835266-P01<br class=""> Family: ProLiant</div><div><br class=""></div><div>I’m wondering if there’s any way to grab this info without directing people to download yet another utility (I’m sure someone will grumble about ‘curl’). Of note, the first line of dmidecode’s output:</div><div><br class=""></div><div># dmidecode 3.2<br class="">Scanning /dev/mem for entry point. <<<— Hmmm?<br class="">SMBIOS 2.8 present.<br class="">78 structures occupying 2568 bytes.<br class="">Table at 0xF3FCB000.</div><div><br class=""></div><div>Charles</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_quote"><div class=""><br class=""></div><div class="">Warner</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><div class="">Charles</div><div class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div text="#000000" bgcolor="#FFFFFF" class="">
<br class="">
~Brian<br class="">
</div>
_______________________________________________<br class="">talk mailing list<br class=""><a href="mailto:talk@lists.nycbug.org" target="_blank" class="">talk@lists.nycbug.org</a><br class=""><a href="http://lists.nycbug.org/mailman/listinfo/talk" target="_blank" class="">http://lists.nycbug.org/mailman/listinfo/talk</a><br class=""></div></blockquote></div><br class=""></div></blockquote></div></div>
</div></blockquote></div><br class=""></body></html>