Quantcast
Channel: Ocsinventory Q&A - Recent questions and answers in OCS Inventory NG agent
Viewing all articles
Browse latest Browse all 4573

Answered: Agent 2.4 for Unix - wrong number of CPUS

$
0
0

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


Viewing all articles
Browse latest Browse all 4573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>