This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

hardware temperatures

Hi,

Since in my country we are in high season the weather temperatures are going high, sometimes inside office around 27 ºC, yes really high!  so I would like to monitor the temperartures regulary of my UTM hardware (CPU, Hard drive), is there any way to do that like running a script or linux command? [:(]

Thanks.


This thread was automatically locked due to age.
Parents
  • Ok, with su it worked.

    loginuser@utm9-lan:/home/login > su
    
    Password:
    utm9-lan:/home/login # smartctl -a /dev/sda
    smartctl 6.0 2012-10-10 r3643 [x86_64-linux-3.8.13.15-119.g03ba714-smp64] (SUSE                                          RPM)
    Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org

    === START OF INFORMATION SECTION ===
    Device Model:     KINGSTON SKC300S37A60G
    Serial Number:    50026B7335005FF7
    LU WWN Device Id: 5 0026b7 335005ff7
    Firmware Version: 507ABBF0
    User Capacity:    60,022,480,896 bytes [60.0 GB]
    Sector Size:      512 bytes logical/physical
    Rotation Rate:    Solid State Device
    Device is:        Not in smartctl database [for details use: -P showall]
    ATA Version is:   ATA8-ACS, ACS-2 T13/2015-D revision 3
    SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
    Local Time is:    Thu Jun 19 21:56:38 2014 WEST
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled

    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED

    General SMART Values:
    Offline data collection status:  (0x00) Offline data collection activity
                                            was never started.
                                            Auto Offline Data Collection: Disabled.
    Self-test execution status:      (   0) The previous self-test routine completed
                                            without error or no self-test has ever
                                            been run.
    Total time to complete Offline
    data collection:                (    0) seconds.
    Offline data collection
    capabilities:                    (0x7b) SMART execute Offline immediate.
                                            Auto Offline data collection on/off supp                                         ort.
                                            Suspend Offline collection upon new
                                            command.
                                            Offline surface scan supported.
                                            Self-test supported.
                                            Conveyance Self-test supported.
                                            Selective Self-test supported.
    SMART capabilities:            (0x0003) Saves SMART data before entering
                                            power-saving mode.
                                            Supports SMART auto save timer.
    Error logging capability:        (0x01) Error logging supported.
                                            General Purpose Logging supported.
    Short self-test routine
    recommended polling time:        (   1) minutes.
    Extended self-test routine
    recommended polling time:        (  48) minutes.
    Conveyance self-test routine
    recommended polling time:        (   2) minutes.
    SCT capabilities:              (0x0021) SCT Status supported.
                                            SCT Data Table supported.

    SMART Attributes Data Structure revision number: 10
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_                                         FAILED RAW_VALUE
      1 Raw_Read_Error_Rate     0x000f   107   107   050    Pre-fail  Always       -                                                16645963
      5 Reallocated_Sector_Ct   0x0033   100   100   003    Pre-fail  Always       -                                                0
      9 Power_On_Hours          0x0032   096   096   000    Old_age   Always       -                                                3728 (103 84 0)
     12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -                                                14
     13 Read_Soft_Error_Rate    0x000a   038   038   000    Old_age   Always       -                                                271656698117963
    100 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -                                                6177
    170 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -                                                1664
    171 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -                                                0
    172 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -                                                0
    174 Unknown_Attribute       0x0030   000   000   000    Old_age   Offline      -                                                10
    177 Wear_Leveling_Count     0x0000   000   000   000    Old_age   Offline      -                                                5
    181 Program_Fail_Cnt_Total  0x0032   000   000   000    Old_age   Always       -                                                0
    182 Erase_Fail_Count_Total  0x0032   000   000   000    Old_age   Always       -                                                0
    184 End-to-End_Error        0x0032   100   100   090    Old_age   Always       -                                                0
    187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -                                                0
    189 Unknown_SSD_Attribute   0x0000   050   074   000    Old_age   Offline      -                                                68724326450
    194 Temperature_Celsius     0x0022   050   074   000    Old_age   Always       -                                                50 (Min/Max 16/74)
    195 Hardware_ECC_Recovered  0x001c   120   120   000    Old_age   Offline      -                                                16645963
    196 Reallocated_Event_Count 0x0033   100   100   003    Pre-fail  Always       -                                                0
    198 Offline_Uncorrectable   0x0010   107   107   000    Old_age   Offline      -                                                280697587630080
    199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -                                                0
    201 Unknown_SSD_Attribute   0x001c   120   120   000    Old_age   Offline      -                                                16645963
    204 Soft_ECC_Correction     0x001c   120   120   000    Old_age   Offline      -                                                16645963
    230 Unknown_SSD_Attribute   0x0013   100   100   000    Pre-fail  Always       -                                                100
    231 Temperature_Celsius     0x0013   100   100   010    Pre-fail  Always       -                                                0
    232 Available_Reservd_Space 0x0000   000   000   000    Old_age   Offline      -                                                6
    233 Media_Wearout_Indicator 0x0000   000   000   000    Old_age   Offline      -                                                4695
    234 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -                                                1152
    241 Total_LBAs_Written      0x0032   000   000   000    Old_age   Always       -                                                1152
    242 Total_LBAs_Read         0x0032   000   000   000    Old_age   Always       -                                                12

    SMART Error Log not supported

    SMART Self-test Log not supported

    SMART Selective self-test log data structure revision number 0
    Note: revision number not 1 implies that no selective self-test has ever been ru                                         n
     SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
        1        0        0  Not_testing
        2        0        0  Not_testing
        3        0        0  Not_testing
        4        0        0  Not_testing
        5        0        0  Not_testing
    Selective self-test flags (0x0):
      After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.
Reply
  • Ok, with su it worked.

    loginuser@utm9-lan:/home/login > su
    
    Password:
    utm9-lan:/home/login # smartctl -a /dev/sda
    smartctl 6.0 2012-10-10 r3643 [x86_64-linux-3.8.13.15-119.g03ba714-smp64] (SUSE                                          RPM)
    Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org

    === START OF INFORMATION SECTION ===
    Device Model:     KINGSTON SKC300S37A60G
    Serial Number:    50026B7335005FF7
    LU WWN Device Id: 5 0026b7 335005ff7
    Firmware Version: 507ABBF0
    User Capacity:    60,022,480,896 bytes [60.0 GB]
    Sector Size:      512 bytes logical/physical
    Rotation Rate:    Solid State Device
    Device is:        Not in smartctl database [for details use: -P showall]
    ATA Version is:   ATA8-ACS, ACS-2 T13/2015-D revision 3
    SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
    Local Time is:    Thu Jun 19 21:56:38 2014 WEST
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled

    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED

    General SMART Values:
    Offline data collection status:  (0x00) Offline data collection activity
                                            was never started.
                                            Auto Offline Data Collection: Disabled.
    Self-test execution status:      (   0) The previous self-test routine completed
                                            without error or no self-test has ever
                                            been run.
    Total time to complete Offline
    data collection:                (    0) seconds.
    Offline data collection
    capabilities:                    (0x7b) SMART execute Offline immediate.
                                            Auto Offline data collection on/off supp                                         ort.
                                            Suspend Offline collection upon new
                                            command.
                                            Offline surface scan supported.
                                            Self-test supported.
                                            Conveyance Self-test supported.
                                            Selective Self-test supported.
    SMART capabilities:            (0x0003) Saves SMART data before entering
                                            power-saving mode.
                                            Supports SMART auto save timer.
    Error logging capability:        (0x01) Error logging supported.
                                            General Purpose Logging supported.
    Short self-test routine
    recommended polling time:        (   1) minutes.
    Extended self-test routine
    recommended polling time:        (  48) minutes.
    Conveyance self-test routine
    recommended polling time:        (   2) minutes.
    SCT capabilities:              (0x0021) SCT Status supported.
                                            SCT Data Table supported.

    SMART Attributes Data Structure revision number: 10
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_                                         FAILED RAW_VALUE
      1 Raw_Read_Error_Rate     0x000f   107   107   050    Pre-fail  Always       -                                                16645963
      5 Reallocated_Sector_Ct   0x0033   100   100   003    Pre-fail  Always       -                                                0
      9 Power_On_Hours          0x0032   096   096   000    Old_age   Always       -                                                3728 (103 84 0)
     12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -                                                14
     13 Read_Soft_Error_Rate    0x000a   038   038   000    Old_age   Always       -                                                271656698117963
    100 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -                                                6177
    170 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -                                                1664
    171 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -                                                0
    172 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -                                                0
    174 Unknown_Attribute       0x0030   000   000   000    Old_age   Offline      -                                                10
    177 Wear_Leveling_Count     0x0000   000   000   000    Old_age   Offline      -                                                5
    181 Program_Fail_Cnt_Total  0x0032   000   000   000    Old_age   Always       -                                                0
    182 Erase_Fail_Count_Total  0x0032   000   000   000    Old_age   Always       -                                                0
    184 End-to-End_Error        0x0032   100   100   090    Old_age   Always       -                                                0
    187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -                                                0
    189 Unknown_SSD_Attribute   0x0000   050   074   000    Old_age   Offline      -                                                68724326450
    194 Temperature_Celsius     0x0022   050   074   000    Old_age   Always       -                                                50 (Min/Max 16/74)
    195 Hardware_ECC_Recovered  0x001c   120   120   000    Old_age   Offline      -                                                16645963
    196 Reallocated_Event_Count 0x0033   100   100   003    Pre-fail  Always       -                                                0
    198 Offline_Uncorrectable   0x0010   107   107   000    Old_age   Offline      -                                                280697587630080
    199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -                                                0
    201 Unknown_SSD_Attribute   0x001c   120   120   000    Old_age   Offline      -                                                16645963
    204 Soft_ECC_Correction     0x001c   120   120   000    Old_age   Offline      -                                                16645963
    230 Unknown_SSD_Attribute   0x0013   100   100   000    Pre-fail  Always       -                                                100
    231 Temperature_Celsius     0x0013   100   100   010    Pre-fail  Always       -                                                0
    232 Available_Reservd_Space 0x0000   000   000   000    Old_age   Offline      -                                                6
    233 Media_Wearout_Indicator 0x0000   000   000   000    Old_age   Offline      -                                                4695
    234 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -                                                1152
    241 Total_LBAs_Written      0x0032   000   000   000    Old_age   Always       -                                                1152
    242 Total_LBAs_Read         0x0032   000   000   000    Old_age   Always       -                                                12

    SMART Error Log not supported

    SMART Self-test Log not supported

    SMART Selective self-test log data structure revision number 0
    Note: revision number not 1 implies that no selective self-test has ever been ru                                         n
     SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
        1        0        0  Not_testing
        2        0        0  Not_testing
        3        0        0  Not_testing
        4        0        0  Not_testing
        5        0        0  Not_testing
    Selective self-test flags (0x0):
      After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.
Children
No Data