Hi Frank, after pointing me to dmidecode one of colleagues and I checked a recent Debian system with dmidecode version 3.1 and one of our RHEL 7.4 boxes with dmidecode version 3.0 and there is a difference ...
Kernel versions are of course different too.
Debian / dmidecode version 3.1
dmidecode -t processor | grep 'Status'
Status: Populated, Enabled
Status: Populated, Enabled
Status: Populated, Enabled
Status: Populated, Enabled
Status: Unpopulated
Status: Unpopulated
Status: Unpopulated
Status: Unpopulated
Status: Unpopulated
vs.
RHEL7 / dmidecode version 3.0
dmidecode -t processor | grep 'Status'
Status: Populated, Enabled
Status: Populated, Enabled
Status: Populated, Disabled By BIOS
Status: Populated, Disabled By BIOS
Status: Populated, Disabled By BIOS
Status: Populated, Disabled By BIOS
Status: Populated, Disabled By BIOS
Looking at
/usr/share/perl5/vendor_perl/Ocsinventory/Agent/Backend/OS/Linux/Archs/i386/CPU.pm there is
foreach my $line (@dmidecode) {
chomp $line;
$socket++ if($line =~ /^Handle/); # handle opens a new processor in dmidecode output
next if $socket < 0; # if in preface still
if($line =~ /^\s*$/ ) { # end of processor/socket found
if ( $status ne "Unpopulated") {
Regards,
Lars