control: add command line tool to retrieve fan status (get function)

This is part two of a multipart commit to create a fan-control command
line utility to report service status, show target/actual RPM/PWM info,
and manually control single fans. This commit implements the "get"
command. Further functionality will come in subsequent commits.

Sample output: /tmp/fanctl get
TARGET SENSOR    TARGET(RPM)   FEEDBACK SENSOR   FEEDBACK(RPMS)
===============================================================
fan0_0                 10000            fan0_0            10000
                                        fan0_1            13591
fan1_0                 10000            fan1_0            10000
                                        fan1_1            13591
fan2_0                 10000            fan2_0            10000
                                        fan2_1            13591
fan3_0                 10000            fan3_0            10000
                                        fan3_1            13591
fan4_0                 10000            fan4_0            10000
                                        fan4_1            13591
fan5_0                 10000            fan5_0            10000
                                        fan5_1            13591

Signed-off-by: Mike Capps <mikepcapps@gmail.com>
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Change-Id: I5a918b34b807fa284c0072db2141aa572ae0f0da
1 file changed