2016-12-12 12:25:14 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-12-12 13:31:26 -06:00
|
|
|
MY_SERIAL=`dmidecode -s chassis-serial-number`
|
|
|
|
MY_DATETIME=`date +%Y-%m-%d_%H-%M-%S`
|
|
|
|
OUTPUT_DIR=/output/hwtests/$MY_SERIAL/$MY_DATETIME
|
|
|
|
export OUTPUT_DIR
|
|
|
|
mkdir -vp $OUTPUT_DIR
|
|
|
|
|
|
|
|
if [ ! -f $OUTPUT_DIR/dmidecode ] ; then
|
|
|
|
dmidecode > $OUTPUT_DIR/dmidecode
|
|
|
|
fi
|
2016-12-12 12:25:14 -06:00
|
|
|
|