Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

hackin" dmidecode

by Kevin_Raymer (Initiate)
on Apr 18, 2011 at 20:37 UTC ( [id://900002]=perlquestion: print w/replies, xml ) Need Help??

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

    Jeffery
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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://900002]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-03-19 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found