[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
Fri Feb 19 09:40:47 UTC 2010


Hi Marty,

I commited you changes in the 2.0.x branch. You can grab the branch
yourself with Bzr:

bzr branch lp:fusioninventory-agent/2.0.x



** Changed in: fusioninventory-agent
    Milestone: None => fusioninventory-agent-2.0beta3

** Changed in: fusioninventory-agent
   Importance: Undecided => Medium

** Changed in: fusioninventory-agent
       Status: New => Fix Committed

-- 
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: Fix Committed

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