Ticket #812: smartctl_mx300

File smartctl_mx300, 911 bytes (added by mdednev, 3 years ago)

Simple wrapper shell script for proper attribute decoding when using existing smartctl binary

Line 
1#!/bin/bash
2smartctl \
3        -v 1,raw48,"Raw_read_error_rate"                \
4        -v 5,raw48,"Realloctd_NAND_blk_cnt"             \
5        -v 9,raw48,"Power-on_hours_count"               \
6        -v 12,raw48,"Power_cycle_count"                 \
7        -v 171,raw48,"Program_fail_count"               \
8        -v 172,raw48,"Erase_fail_count"                 \
9        -v 173,raw48,"Average_blk_erase_count"          \
10        -v 174,raw48,"Unexpctd_pwr-loss_count"          \
11        -v 180,raw48,"Unused_rsrv_NAND_blocks"          \
12        -v 183,raw48,"SATA_interface_dwnshft"           \
13        -v 184,raw48,"Error_correction_count"           \
14        -v 187,raw48,"Reported_unc_errors"              \
15        -v 196,raw48,"Reallocation_evnt_cnt"            \
16        -v 197,raw48,"Current_pend_ECC_cnt"             \
17        -v 198,raw48,"SMART_offln_err_cnt"              \
18        -v 199,raw48,"UDMA_CRC_error_count"             \
19        -v 202,raw48,"Percent_lifetime_rem"             \
20        -v 206,raw48,"Write_error_rate"                 \
21        -v 210,raw48,"Succ_RAIN_recovery_cnt"           \
22        -v 246,raw48,"Cumul_host_sect_written"          \
23        -v 247,raw48,"Host_NAND_data_pgs_wrtn"          \
24        -v 248,raw48,"FTL_NAND_pgs_written"             \
25        $*