<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sun, Oct 7, 2018 at 12:44 PM Charles Sprickman <<a href="mailto:spork@bway.net">spork@bway.net</a>> wrote:<br></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"><br>
<br><div><blockquote type="cite"><div>On Oct 7, 2018, at 1:23 AM, Warner Losh <<a href="mailto:imp@bsdimp.com" target="_blank">imp@bsdimp.com</a>> wrote:</div><br class="m_8599863802078996396Apple-interchange-newline"><div><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sat, Oct 6, 2018 at 11:02 PM Charles Sprickman <<a href="mailto:spork@bway.net" target="_blank">spork@bway.net</a>> wrote:<br></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"><br><div><blockquote type="cite"><div>On Oct 6, 2018, at 5:48 PM, Brian Callahan <<a href="mailto:bcallah@devio.us" target="_blank">bcallah@devio.us</a>> wrote:</div><br class="m_8599863802078996396m_-2997223589968985547m_46167203527693216Apple-interchange-newline"><div>
<div text="#000000" bgcolor="#FFFFFF">
<br>
<div class="m_8599863802078996396m_-2997223589968985547m_46167203527693216moz-cite-prefix">On 10/06/18 17:44, Warner Losh wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr"><br>
<br>
<div class="gmail_quote">
<div dir="ltr">On Sat, Oct 6, 2018 at 2:26 PM George
Rosamond <<a href="mailto:george@ceetonetechnology.com" target="_blank">george@ceetonetechnology.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
Warner Losh:<br>
> Greetings,<br>
> <br>
> Just thought I'd mentioned that I plugged the dmesgd
submission site on<br>
> FreeBSD's mailing list, so you might see an up-tick
in submissions from<br>
<br>
<br>
Yes... to echo brian... more is better.<br>
</blockquote>
<div><br>
</div>
<div>Glad to hear it.</div>
<div><br>
</div>
<div><font face="arial, helvetica, sans-serif">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"><font face="arial, helvetica, sans-serif">FreeBSD 12.0-ALPHA6 r338698+59ff9aa72cd4(master) amd64</font></pre>
<div><font face="arial, helvetica, sans-serif">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><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div><font face="arial, helvetica, sans-serif">mine that was
built with different options looked like:</font></div>
<div><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div><font face="arial, helvetica, sans-serif">FreeBSD
12.0-ALPHA2 #40+8d55b8a51f5(freze-newer)-dirty: Wed Aug
22 15:34:50 MDT 2018<br>
</font></div>
<div><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div><font face="arial, helvetica, sans-serif">the person
that contacted me was clueful enough to puzzle it out,
but I thought I'd pass it along.</font></div>
<div><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div><font face="arial, helvetica, sans-serif">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><font face="arial, helvetica, sans-serif"><br>
</font></div>
</div>
</div>
</div>
</blockquote>
<br>
<font face="arial, helvetica, sans-serif">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>
</font><a class="m_8599863802078996396m_-2997223589968985547m_46167203527693216moz-txt-link-freetext" href="https://gist.github.com/afresh1/99cdd481184147f0e8c0" target="_blank">https://gist.github.com/afresh1/99cdd481184147f0e8c0</a><br></div></div></blockquote><div><br></div><div>Curl works as a one-liner:</div><div><br></div><div>curl -v -d "nickname=spork" -d "<a href="mailto:email=spork@bway.net" target="_blank">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">http://dmesgd.nycbug.org/index.cgi</a></div></div></div></blockquote><div><br></div><div>I think the third -d should be -d "description=name of machine v2" no?</div><div><br></div><div>Warner</div><div><br></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"><a href="http://dmesgd.nycbug.org/index.cgi?do=view&id=3851" target="_blank">http://dmesgd.nycbug.org/index.cgi?do=view&id=3851</a></div></blockquote><div><br></div><div>I just did <a href="http://dmesgd.nycbug.org/index.cgi?do=view&id=3852" target="_blank">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></div><div>All - just curious if anyone else uses dmidecode (sysutils/dmidecode)?</div><div><br></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></div><div>For example, part of the summary on this HP server in my garage:</div><div><br></div><div>Handle 0x0100, DMI type 1, 27 bytes<br>System Information<br> Manufacturer: HP<br> Product Name: ProLiant ML10 v2<br> Version: Not Specified<br> Serial Number: CN65310J2D<br> UUID: 32353338-3636-4e43-3635-3331304a3244<br> Wake-up Type: Power Switch<br> SKU Number: 835266-P01<br> Family: ProLiant</div><div><br></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></div><div># dmidecode 3.2<br>Scanning /dev/mem for entry point. <<<— Hmmm?<br>SMBIOS 2.8 present.<br>78 structures occupying 2568 bytes.<br>Table at 0xF3FCB000.</div></div></div></blockquote><div><br></div><div>FreeBSD's boot loader exports these as kenv variables, so I posted this:</div><div><br></div><div>curl -v -d "nickname=$USER" -d "email=$USER@$(hostname)" -d "description=FreeBSD/$(uname -m) on $(kenv smbios.system.maker) $(kenv smbios.system.product)" -d "do=addd" --data-urlencode 'dmesg@/var/run/dmesg.boot' <a href="http://dmesgd.nycbug.org/index.cgi" target="_blank">http://dmesgd.nycbug.org/index.cgi</a><br></div><div><br></div><div>but some systems didn't fill in 'system' but did fill in 'planar' and vice versa :( One can cope with *THAT* too, but it's messier as a one-liner.</div><div><br></div><div>Warner</div><div> </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"><div><div>Charles</div><div><br></div><br><blockquote type="cite"><div><div dir="ltr"><div class="gmail_quote"><div><br></div><div>Warner</div><div> </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"><div><div>Charles</div><div><br></div><blockquote type="cite"><div><div text="#000000" bgcolor="#FFFFFF">
<br>
~Brian<br>
</div>
_______________________________________________<br>talk mailing list<br><a href="mailto:talk@lists.nycbug.org" target="_blank">talk@lists.nycbug.org</a><br><a href="http://lists.nycbug.org/mailman/listinfo/talk" target="_blank">http://lists.nycbug.org/mailman/listinfo/talk</a><br></div></blockquote></div><br></div></blockquote></div></div>
</div></blockquote></div><br></div></blockquote></div></div>