Kevin_Raymer has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: hackin" dmidecode
by bart (Canon) on Apr 19, 2011 at 12:52 UTC
    Your code snippet comes straight out of the module synopsis, so far for "original work". And of course it will not do what you want.

    And looking over the module source, I can find no mention of the word "host". So I don't think the module does it.

    As it apparently is just an interface to a command line tool "dmidecode" which doesn't even take arguments (in this module), I can only recommend to run the command line tool by hand and see if the data you're after is even there. If it is, you might be able to amend the module to produce the info you're after.

    BTW the man page for dmidecode doesn't mention "host" either.

Re: hackin" dmidecode
by JSchmitz (Canon) on Apr 20, 2011 at 14:46 UTC
    I think what you want is Net::SSH which you can pass a list of hosts to. Then you can run all the dmidecode commands you want on a list of hosts.......cheers

Re: hackin" dmidecode
by hominid (Priest) on Apr 21, 2011 at 16:08 UTC
    Welcome back, Kevin. I hope Big Mac wasn't too hard on you.

    Respect Donald Trump!