sosreport fails to collect dmidecode if rhn-client-tools is not installed

Solution Unverified - Updated -

Issue

  • When attempting to run RHEV Log Collector, the following error is encountered:
INFO: SSH Connected to <ip_address>
ERROR: SSH error: sosreport (version 1.7)
ERROR: SSH error: could not setup plugin hardware
ERROR: SSH error: <type 'instance'>: ('list index out of range',)
  • sosreport fails to collect dmidecode and other hardware info if rhn-client-tools is not installed. The following error is encountered when attempting to run sosreport:
could not setup plugin hardware
<type 'instance'>: ('list index out of range',)
 plugin yum finished ...
 Completed.
  • Cannot collect HW (hardware) information and diagnostics for analysis from sosreport; is this a BUG?
Preloading files and commands to be gathered by plugin hardware could not setup plugin hardware
<type 'instance'>: ('list index out of range',)
Preloading files and commands to be gathered by plugin
  • RHEL 5.8+ reports the above message every time you run it because /usr/share/rhn doesn't exist and comes from the run-client-tools package; both physical and KVM tested

Environment

  • Red Hat Enterprise Virtualization 2.2
  • Red Hat Enterprise Linux (RHEL) 5
  • sos prior to sos-1.7-9.66.el5
  • rhn-client-tools not installed

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content