From cfa733c48b48bfa791938a15acb41c0700273b25 Mon Sep 17 00:00:00 2001 From: Sandino Araico Sanchez Date: Wed, 3 Nov 2021 14:17:03 -0600 Subject: [PATCH] Log de errores del test-ping --- scripts/stat-ping | 3 +++ scripts/stat-ping110 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/stat-ping b/scripts/stat-ping index 51de854..3d58638 100755 --- a/scripts/stat-ping +++ b/scripts/stat-ping @@ -41,6 +41,9 @@ while [[ 1 ]] ; do done if [[ -n $FAILED ]] ; then 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 echo "vLAN $GRN$VLAN$OFF Ok: $OK_LST" fi diff --git a/scripts/stat-ping110 b/scripts/stat-ping110 index 321acab..94e51df 100755 --- a/scripts/stat-ping110 +++ b/scripts/stat-ping110 @@ -41,6 +41,9 @@ while [[ 1 ]] ; do done if [[ -n $FAILED ]] ; then 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 echo "vLAN $GRN$VLAN$OFF Ok: $OK_LST" fi