Sosreport fails to collect "dmidecode" and other hardware info, if "rhn-client-tools" package is not installed.
Issue
- Sosreport fails to collect "dmidecode" and other hardware info, if 'rhn-client-tools' package is not installed.
It fails with a traceback if '__raisePlugins__' is enabled.
Traceback (most recent call last):
File "/usr/sbin/sosreport", line 701, in ?
sosreport()
File "/usr/sbin/sosreport", line 563, in sosreport
plug.setup()
File "/usr/lib/python2.4/site-packages/sos/plugins/hardware.py", line 41, in setup
self.collectExtOutput(glob("/usr/share/rhn/up2date*client/hardware.py")[0])
IndexError: list index out of range
The index is out of range because /usr/share/rhn/up2date*client/hardware.py doesn't exist.
Environment
- Red Hat Enterprise Linux 5.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.