Bug #2907

no memory information on solaris

Added by Nico LAS about 2 years ago. Updated over 1 year ago.

Status:ClosedStart date:03/20/2015
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:inventory
Target version:2.3.17
For junior contributor:No

Description

On solaris on a physical machine i don't have memory information
nothing on the xml, nothing on glpi

I think the problem came from lib/FusionInventory/Agent/Tools/Solaris.pm on getPrtdiagInfos fonction
in attachment the prtdiag from this solaris
root# uname -a
SunOS xxxxxxxxx 5.10 Generic_141444-09 sun4u sparc SUNW,SPARC-Enterprise

prtdiag.log (1.81 KB) Nico LAS, 03/20/2015 03:33 PM

fusioninventory-agent-2.3.x-2907-bugfix.patch Magnifier (954 Bytes) Guillaume Bougard, 06/05/2015 08:56 AM

History

#1 Updated by Guillaume Bougard almost 2 years ago

Hello Nico LAS,

I'm investigating this case. Can you confirm fusioninventory-agent used version ? Can you also attach the XML generated by fusioninventory-inventory command ?

Thank you

#2 Updated by Guillaume Bougard almost 2 years ago

Hi Nico LAS,

I'll propose a fix for the next release. I pushed a fix in my git clone and I'll request a merge for next 2.3.x release. Btw you still can try to apply the attached patch on Tools/Solaris.pm to confirm this fix the bug.

Thank you

#3 Updated by Guillaume Rousse almost 2 years ago

  • Status changed from New to Resolved
  • Target version set to 2.3.17
  • % Done changed from 0 to 100

The patch is correct, and the provided sample also shows we had a bug in parsing logic: we should use the second size value (dimm size) instead of the first one (available size).
Provided patch committed in #ef61969.
Additional fix committed in #25a33df.

#4 Updated by Nico LAS almost 2 years ago

Hi Guillaume
If you use DIM size, you have tu multiply this size by # of DIMMs
the installed memory size is "DIMM size" x # "of DIMMs"

#5 Updated by Guillaume Rousse over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF