Bug #7203
closedfusionAgent.cf for ARM
Description
On ARM the dmidecode command don't exist, so the report have a problem. I would like to update /var/rudder/cfengine-community/inputs/inventory/1.0/fusionAgent.cf to add exception on armv7l and armv7l classes.
linux.!xen::
"RUDDERUUID_cmd" string => "/usr/sbin/dmidecode -s system-uuid";
linux.(!xen.!armv6l.!armv7l)::
"RUDDERUUID_cmd" string => "/usr/sbin/dmidecode -s system-uuid";
and add lines to grep "Serial" in /proc/cpuinfo, I can get the value with this bash command : cat /proc/cpuinfo | grep Serial | cut -d ':' -f 2
But I think it's possible to do it in cfengine only , could you help me ? :)
File example:
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 2.00
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2708
Revision : 0010
Serial : 00000000baf500ac