[Fusioninventory-devel] [Bug 522774] Re: HPUX agent doesn't work for CPU and serial on HPUX 11.31
dwizz
dwizz.donowin at yahoo.fr
Wed Feb 17 10:42:30 UTC 2010
Thanks for the fix.
I can test the HPUX module on 11.31: I have no server with this version.
I insert in the code your fix as soon as possible.
--
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