I think the more general point here (and has come up in other contexts 
such as mobile phones) is that sometimes neither IP nor reverse DNS make 
sense and people would like sending something else to be 'smoother' (as 
opposed to hacky/spoofy).

My experience with vendor data hasn't given me warm and fuzzies either 
("TO BE ENTERED BY O.E.M") but I could see something like  UUID on 
startup and 'custom bits on the motherboard' as reasonable -- if not 
common -- use cases.


On 08/01/2013 12:20 PM, Dave Rawks wrote:
> Thanks for the suggestion, but dmidecode is not portable and is super
> unreliable since it depends on upstream hardware vendors setting
> reasonable values. Even running on a sample of 8-10 models of
> motherboards all from the same vendor I get vastly different results
> from dmidecode. I'd strongly discourage anybody from trying to integrate
> it into other software for anything aside from general informational use.
>
> -Dave
>
> On 08/01/2013 01:50 AM, Adrian Sevcenco wrote:
>> Hi! Regarding the identification of hosts based on motherboard UUID i
>> thought to post some info to spare developers of ganglia of some wasted
>> seconds :)
>> So : on rhel systems you must do :
>> yum install python-dmidecode  (so gmond should have dependency on this
>> package that is found in distros repo)
>>
>> and the small python script (taken from the example of developers of
>> python-demidecode) would be like this (removed all comments for space
>> reasons) :
>>
>> import dmidecode
>> import sys, os
>> from pprint import pprint
>>
>> def print_warnings():
>>           "Simple function, dumping out warnings with a prefix if warnings
>> are found and clearing warning buffer"
>>           warn = dmidecode.get_warnings()
>>           if warn:
>>                 print "### WARNING: %s" % warn
>>                 dmidecode.clear_warnings()
>>
>> root_user = (os.getuid() == 0 and True or False)
>> if not root_user:
>>           print "####  NOT RUNNING AS ROOT"
>>
>> dmixml = dmidecode.dmidecodeXML()
>>
>> dmixml.SetResultType(dmidecode.DMIXML_DOC)
>> xmldoc = dmixml.QuerySection('all')
>> dmixp = xmldoc.xpathNewContext()
>> data = dmixp.xpathEval('/dmidecode/SystemInfo/SystemUUID')
>> for d in data:
>>                   print "%s" % (d.get_content())
>>
>> del dmixp
>> del xmldoc
>>
>> HTH,
>> Adrian
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Get your SQL database under version control now!
>> Version control is standard for application code, but databases havent
>> caught up. So what steps can you take to put your SQL databases under
>> version control? Why should you start doing it? Read more to find out.
>> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
>>
>>
>>
>> _______________________________________________
>> Ganglia-developers mailing list
>> Ganglia-developers@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ganglia-developers
>>
>
>
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> _______________________________________________
> Ganglia-developers mailing list
> Ganglia-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ganglia-developers


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to