UserParameter=adaptec.discover,if lspci | grep Adaptec >/dev/null 2>&1; then echo 1; else false; fi | awk 'BEGIN{printf "{\"data\":["}; /^1/ {printf c"{\"{#ADAPTEC}\":\""$1"\"}";c=","}; END{print "]}"}' UserParameter=adaptec.degraded,arcconf getconfig 1 | grep "Degraded" | head -n1 UserParameter=adaptec.status[*],arcconf getconfig $1 | grep "Status of logical device\|Status of Logical Device" | head -n1 | awk '{print $NF}' UserParameter=adaptec.raid_disks,arcconf getconfig 1 | grep "Logical device number" | wc -l