I am writing a Perl script that will be deployed and executed on many servers. Some of my requirements are retrieving the manufacturer, model and serial number. Unfortunately I can’t seem to figure out how to do that. I’m not seeing any built in libraries to do this.
I’m not sure if I can use libraries that don’t come with Perl since I wouldn’t be able to include those when it gets executed on the other servers.
Any thoughts?
There’s a perl module called
Parse::DMIDecodewhich will use the dmidecode program that Brian pointed out.