Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29
  1. #11
    Master Untangler
    Join Date
    Jul 2018
    Posts
    142

    Default

    Where does one get that info on Untangle? Would like to see the same for my SSD in there....

  2. #12
    Untangler
    Join Date
    Jan 2019
    Posts
    91

    Default

    /usr/sbin/smartctl -A /dev/sda
    and do the math yourself.

    Or to get sky-knight's summary, use the bash script on:
    http://www.jdgleaver.co.uk/blog/2014...der_linux.html
    Last edited by LaurentR; 02-21-2019 at 09:28 AM.

  3. #13
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    26,510

    Default

    Yep, that's the script I used. It's been rather nice to have while vetting SSDs for use. smartctl is nice, but it's a bit hard to read.
    Last edited by sky-knight; 02-21-2019 at 09:35 AM.
    Rob Sandling, BS:SWE, MCP
    NexgenAppliances.com
    Phone: 866-794-8879 x201
    Email: support@nexgenappliances.com

  4. #14
    Master Untangler
    Join Date
    Jul 2018
    Posts
    142

    Default

    Thx!

  5. #15
    Master Untangler
    Join Date
    Jul 2018
    Posts
    142

    Default

    Sorry. How do I run the script from the untangle cli?
    Do I have to copy it to untangle? how?

  6. #16
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    26,510

    Default

    Yes, save the .bash file and upload it to your untangle, I use a tool called WinSCP for that. https://winscp.net/eng/index.php

    I put the .bash file in /root, the home directory for the root user. Assuming you have SSH enabled, all you have to do is point WinSCP at Untangle's IP address, login as root just like you do for SSH and you'll see files and folders, it'll even default you to /root as that's the home directory for the root user. The linked blog gives you the command you need to set the permissions on the file so that it's executable, and then you just call it via ssh, again when you first login you'll be in the /root folder.

    If all of that sounds strange, or you're confused in even the slightest degree, do not perform any of this on your Untangle server. Improperly allowing access via SSH on Untangle is incredibly dangerous. Also, you're logging in as a God level admin, so if you screw up your server is toast and the only way back is to reinstall it.

    Great power and great responsibility and all that.
    Rob Sandling, BS:SWE, MCP
    NexgenAppliances.com
    Phone: 866-794-8879 x201
    Email: support@nexgenappliances.com

  7. #17
    Untangler
    Join Date
    Jan 2019
    Posts
    91

    Default

    Note: since the script is 50 lines of text, it's just as easy to open your favorite Unix editor (vi, nano...) and paste the code in your ssh window.

    The script is also fairly human readable, so if you're not comfortable dealing with it, just:
    * run /usr/sbin/smartctl -A /dev/sda
    * The health % is under "177 Wear_Leveling_Count" Column "VALUE"
    * The runtime is under " 9 Power_On_Hours" column "RAW_VALUE"
    * The data written is under "241 Total_LBAs_Written: column "RAW_VALUE". Multiply by 512 to convert LBAs to bytes.

    Note that this will work with most Samsung SSDs and probably not for other brands (they all report differently using SMART data).

    As for nitpicking, the script uses uses:
    BYTES_PER_TB=1099511627776
    whereas the TB used by the storage guys and in the SMART spec (including TBW ratings) are the proper power-of-ten ones, so 1TB=1,000,000,000,000B. That's a 10% difference.

  8. #18
    Master Untangler
    Join Date
    Jul 2018
    Posts
    142

    Default

    All done.
    the putput is:

    ------------------------------
    SSD Status: /dev/sda
    ------------------------------
    On time: 5,067 hr
    ------------------------------
    Data written:
    MB: .605
    GB: 0
    TB: 0
    ------------------------------
    Mean write rate:
    MB/hr: 0
    ------------------------------
    Drive health: %
    ------------------------------

    It's not a Samsung but a WD blue 512GB one....

    smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-7-untangle-amd64] (local build)
    Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

    === START OF READ SMART DATA SECTION ===
    SMART Attributes Data Structure revision number: 4
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    5 Reallocated_Sector_Ct 0x0032 100 100 --- Old_age Always - 0
    9 Power_On_Hours 0x0032 100 100 --- Old_age Always - 5067
    12 Power_Cycle_Count 0x0032 100 100 --- Old_age Always - 5
    165 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 13172882
    166 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 0
    167 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 39
    168 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 2
    169 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 400
    170 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 0
    171 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 0
    172 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 0
    173 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 0
    174 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 2
    184 End-to-End_Error 0x0032 100 100 --- Old_age Always - 0
    187 Reported_Uncorrect 0x0032 100 100 --- Old_age Always - 0
    188 Command_Timeout 0x0032 100 100 --- Old_age Always - 75
    194 Temperature_Celsius 0x0022 051 068 --- Old_age Always - 49 (Min/Max 34/68)
    199 UDMA_CRC_Error_Count 0x0032 100 100 --- Old_age Always - 102
    230 Unknown_SSD_Attribute 0x0032 100 100 --- Old_age Always - 124554051613
    232 Available_Reservd_Space 0x0033 100 100 004 Pre-fail Always - 100
    233 Media_Wearout_Indicator 0x0032 100 100 --- Old_age Always - 476
    234 Unknown_Attribute 0x0032 100 100 --- Old_age Always - 1784
    241 Total_LBAs_Written 0x0030 253 253 --- Old_age Offline - 1241
    242 Total_LBAs_Read 0x0030 253 253 --- Old_age Offline - 34
    244 Unknown_Attribute 0x0032 000 100 --- Old_age Always - 0

  9. #19
    Master Untangler
    Join Date
    Jul 2018
    Posts
    142

    Default

    Can you help me modify the script?? It's out of my knowledge unfortunately

  10. #20
    Master Untangler
    Join Date
    Jul 2018
    Posts
    142

    Default

    Changed the following:
    ON_TIME_TAG="Power_On_Hours"
    WEAR_COUNT_TAG="Media_Wearout_Indicator"
    LBAS_WRITTEN_TAG="Total_LBAs_Written"

    Which seems to be correct as the tags appear in the raw output. But when I run the command the data written is still wrong. Drive health seems OK.

    ------------------------------
    SSD Status: /dev/sda
    ------------------------------
    On time: 5,067 hr
    ------------------------------
    Data written:
    MB: .605
    GB: 0
    TB: 0
    ------------------------------
    Mean write rate:
    MB/hr: 0
    ------------------------------
    Drive health: 100 %
    ------------------------------

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2