Closed arzWZM closed 4 years ago
A possible fix for SNMP based data is
if 'Unknown Processor Type' in value:
processorn += 1
elif 'CPU' in value:
processorn += 1
Don't know about DMIDECODE file
How do I test dmidecode?
I tried the following and I get the Usage menu instead.
root@hostname:~# dmidecode > dmi.data
root@hostname:~# python fusioninventory-xmlgenerator -d dmi.data -o test.xml
Usage: fusioninventory-xmlgenerator [options]
Options:
-h, --help show this help message and exit
-d DMIFILE, --dmi=DMIFILE
DMIDecode file
-f OIDFILE, --oid=OIDFILE
OID file
-o OUTPUTFILE, --output=OUTPUTFILE
Output file dest/name
-i DEVICEID, --deviceid=DEVICEID
DeviceID: Format date-time ex.: 2013-10-11-17-00-00
@arzWZM The processors count was fixed.
About the dmidecode, he a complement to the snmp data, so you need to pass the oidfile too.
fusioninventory-xmlgenerator -f snmp.oid -d dmi.data -o test.xml
The
PROCESSORN
count is always 1. The code below shows that it'll increase only ifprocessorn == 0
which means it'll increase only once. It should increase as many times asPROCESSORS
is there.In the attached data, it should increase twice since there are two "Unkown Processor Type"
test.snmp.txt