Brickstor Hardware Information Gathering Tools
#!/bin/sh
TICKETID=FPW-771-13124
BSRZDUMPJLOG=/bp/logs/${TICKETID}-bsrzdump-j-`hostname`.log
BSRDISKDUMPELOG=/bp/logs/${TICKETID}-bsrzdump-e-`hostname`.log
BSRDISKDUMPPLOG=/bp/logs/${TICKETID}-bsrzdump-p-`hostname`.log
if [ ! -d /bp/logs ] ; then zfs create bp/logs ; fi
echo "Running /usr/racktop/sbin/bsrzdump -j..."
/usr/racktop/sbin/bsrzdump -j > ${BSRZDUMPJLOG} \
|| echo "Failed to run /usr/racktop/sbin/bsrzdump -j" >&2
echo "Running /usr/racktop/sbin/bsrdiskdump -e..."
/usr/racktop/sbin/bsrdiskdump -e > ${BSRDISKDUMPELOG} \
|| echo "Failed to run /usr/racktop/sbin/bsrdiskdump -e" >&2
echo "Running /usr/racktop/sbin/bsrdiskdump -p..."
/usr/racktop/sbin/bsrdiskdump -p > ${BSRDISKDUMPPLOG} \
|| echo "Failed to run /usr/racktop/sbin/bsrdiskdump -p" >&2
echo "Please download these outputs: ${BSRZDUMPJLOG} ${BSRDISKDUMPELOG} ${BSRDISKDUMPPLOG}"