Log de errores del test-ping

This commit is contained in:
Sandino Araico Sanchez 2021-11-03 14:17:03 -06:00
parent ad1eb12b57
commit cfa733c48b
2 changed files with 6 additions and 0 deletions

View file

@ -41,6 +41,9 @@ while [[ 1 ]] ; do
done done
if [[ -n $FAILED ]] ; then if [[ -n $FAILED ]] ; then
echo "vLAN $RED$VLAN$OFF failed: $FAILED " echo "vLAN $RED$VLAN$OFF failed: $FAILED "
date >> $OUTPUT_DIR/ping.error.log
echo "vLAN $VLAN failed: $FAILED " \
>> $OUTPUT_DIR/ping.error.log
if [[ -n $OK_LST ]] ; then if [[ -n $OK_LST ]] ; then
echo "vLAN $GRN$VLAN$OFF Ok: $OK_LST" echo "vLAN $GRN$VLAN$OFF Ok: $OK_LST"
fi fi

View file

@ -41,6 +41,9 @@ while [[ 1 ]] ; do
done done
if [[ -n $FAILED ]] ; then if [[ -n $FAILED ]] ; then
echo "vLAN $RED$VLAN$OFF failed: $FAILED " echo "vLAN $RED$VLAN$OFF failed: $FAILED "
date >> $OUTPUT_DIR/ping.error.log
echo "vLAN $VLAN failed: $FAILED " \
>> $OUTPUT_DIR/ping.error.log
if [[ -n $OK_LST ]] ; then if [[ -n $OK_LST ]] ; then
echo "vLAN $GRN$VLAN$OFF Ok: $OK_LST" echo "vLAN $GRN$VLAN$OFF Ok: $OK_LST"
fi fi