[Fusioninventory-devel] [Bug 522774] Re: HPUX agent doesn't work for CPU and serial on HPUX 11.31

Gonéri Le Bouder goneri at rulezlan.org
Wed Feb 17 10:17:07 UTC 2010


** Changed in: fusioninventory-agent
     Assignee: (unassigned) => Gonéri Le Bouder (goneri)

** Changed in: fusioninventory-agent
     Assignee: Gonéri Le Bouder (goneri) => dwizz (dwizz-donowin)

-- 
HPUX agent doesn't work for CPU and serial on HPUX 11.31
https://bugs.launchpad.net/bugs/522774
You received this bug notification because you are a member of
FusionInventory Developers, which is the registrant for FuisonInventory
Agent for OCS Inventory and Tracker agent.

Status in FusionInventory Agent: New

Bug description:
Here are the fixes:

for Ocsinventory/Agent/Backend/OS/HPUX/CPU.pm

      foreach ( `machinfo`)
      {
         if ( /Number of CPUs\s+=\s+(\d+)/ )
         {
            $processorn=$1;
         }
         if ( /Clock speed\s+=\s+(\d+)\s+MHz/ )
         {
            $processors=$1;
         }
         # Added for HPUX 11.31
         if ( /Intel\(R\) Itanium 2 9000 series processor \((\d+\.\d+)/ )
         {
            $processors=$1*1000;
         }
         if ( /(\d+)\s+logical processors/ )
         {
            $processorn=$1;
         }
         # end HPUX 11.31
      }

and in Ocsinventory/Agent/Backend/OS/HPUX/Bios.pm

  };

  # Added for HPUX 11.31
  for ( `machinfo |grep "achine serial number"` )
  {
      if ( /:\s+(\w+)/ )
      {
         $SystemSerial=$1;
      };
  };
# end HPUX 11.31

  $inventory->setBios ({





More information about the Fusioninventory-devel mailing list