The ArcGetHWMon5010 method returns the H/W monitor information for ARC-5010 & ARC-6010.
virtual ARC_STATUS ArcGetHWMon5010 ( pHwMon5010
pHwInfo ); |
[OUT]
pHwInfo: Pointer to a sHwMon5010 structure
that receives the information.
This method returns the ARC_STATUS.
This method is suitable only for ARC-5010 &
ARC-6010 RAID subsystem
ARC_STATUS Exe_Hw_Info_Cmd(CArclib &ctrl) { ARC_STATUS stat; sHwMon5010 hwInfo5010; stat = ctrl.ArcGetHWMon5010(&hwInfo5010); if (stat != ARC_SUCCESS) {
return stat; } printf("The Hardware Monitor
Information\n");
printf("===========================================\n"); printf("Controller
Temp : %d\n", hwInfo5010.monCtrlTemp); printf("BackPlane
Temp : %d\n",
hwInfo5010.monBkPlaneTemp); printf("Fan Speed
(RPM) : %d\n", hwInfo5010.monFan); printf("Power
+12.00V : %2.3lf\n",
(double)hwInfo5010.mon12V/(double)1000.0); printf("Power
+5.00V :
%2.3lf\n", (double)hwInfo5010.mon5V/(double)1000.0); printf("Power
+3.30V :
%2.3lf\n", (double)hwInfo5010.mon3_3V/(double)1000.0); printf("Power
+1.50V :
%2.3lf\n", (double)hwInfo5010.mon1_5V/(double)1000.0);
printf("===========================================\n"); return ARC_SUCCESS; } |