Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. 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