agent reports controllers only in numerical format (on older Linux dist.)

Bug #720635 reported by Bernhard Denner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCS Inventory: Unified Unix Agent
Fix Released
Medium
mortheres

Bug Description

hi,

I have another one for you ;)

lspci versions older than 3.0.0 (I think, but definitly till version 2.2.3) doesn't support the "-nn" switch (to show numerical and resolved values). So the these old "lspci" will output PCI devices only in "numerical format" and doesn't resolve these values to vendor and system strings.

My solutions would be to use only an "lspci -vvv" call, which is the simplest solution.

I will also add an patch for this.

regards,
Bernhard

Revision history for this message
Bernhard Denner (bernhard-denner-thalesgroup) wrote :
Revision history for this message
mortheres (mortheres) wrote :

HI Bernhard,

Can you paste the output of the :

lscpi --version

command in your old Linux systems. Instead of loose some informations for newer Linux systems, we could do a test to detect lspci version and change the lspci args if it is an old Linux system or a newer.

Kinds regards,

--
Guillaume

Changed in ocsinventory-unix-agent:
importance: Undecided → Medium
assignee: nobody → mortheres (mortheres)
Revision history for this message
Bernhard Denner (bernhard-denner-thalesgroup) wrote :

this is the output of

"lspci --version" and "lspci -h"

of various distributions.

From my point of view the "-nn" switch is available since versions 2.2.4

regards
Bernhard

Revision history for this message
mortheres (mortheres) wrote :

Hi,

I take a look to the archives of pcitutils software, and indeed, the "-nn"option was implemented in version 2.2.4 of pciutils :) :) .

The bug is fixed in revision 1035 of the ocsinventory-unix-agent stable 2.0 branch : http://bazaar.launchpad.net/~ocsinventory-dev/ocsinventory-unix-agent/stable-2.0/revision/1035 .
Now, "lspci -vvv" is the default command for lspci and if lspci version is higher or equal to 2.2.4, then the "-nn" option is activated :) :).

This fix will be released in the 2.0 RC3 release.

Kind regards,

Guillaume

Changed in ocsinventory-unix-agent:
milestone: none → 2.0rc3
status: New → Fix Committed
mortheres (mortheres)
Changed in ocsinventory-unix-agent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.