Thanks! That is a lot of output considering in the end we only show the overall state, the name, and the predictive failure count in the service summary…
Reading the reference, it seems that show status
instead of show all
might suffice. Since I can’t (currently) access a fitting system, any help is appreciated. (I’ll keep preparing as much as I can until the customer gets back to me.)
Currently I’m planning to add this to the agent:
section_storcli() {
if inpath storcli; then
_storcli() { storcli "$@"; }
elif inpath storcli64; then
_storcli() { storcli64 "$@"; }
else
return 1
fi
echo '<<<storcli_physical_disks>>>'
_storcli /call/eall/sall show all
echo '<<<storcli_virtual_disks>>>'
_storcli /call/vall show all
echo '<<<storcli_battery_backup>>>'
_storcli /call/bbu show all
# exit successfully, because storcli was in the path.
return 0
}
For all of these I want to see if show status
is enough though.