Forum Discussion

eek0212_26291's avatar
eek0212_26291
Icon for Nimbostratus rankNimbostratus
Oct 02, 2008

how shuld i get the cpu_temperature value?

i trying to solve this problem through your iControl SDK tutorials.

 

but there seems to any kind of 'sample code' existed.

 

 

here is sample code:

 

(yeah! this code is totally wrong, uncompilable... so please help me)

 

 

iControl.SystemPlatformCPUs y = h_interfaces.SystemSystemInfo.get_cpu_metrics();

 

y.cpus[0][1].metric_type = this.label_output2.Text;

 

 

  • A sample in Perl is attached.

     

     

    Sample:

     

    ./devcentral2.pl 10.11.22.33 admin admin_pwd

     

    TimeStamp: 02/10/2008 10:26:46

     

    CPU_INDEX 1

     

    CPU_TEMPERATURE 39

     

    CPU_FAN_SPEED 6617