Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for ID in `/var/lib/zabbix/megacli-status.py | grep " SSD " | awk '{print DISK=$1,ID=$22}'` ; do name=`echo $ID| cut -f 2 -d " "` ; ids =`echo $ID | cut -f 1 -d " "` ; "smartctl /dev/sda -d megaraid,$ids -a | grep "Reallocated_Sector_Ct"| awk '{print $10}'; echo -n "$name"; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement