Update check_mq.sh

This commit is contained in:
Demonic 2022-04-13 16:10:20 +02:00
parent aac1638f4e
commit 81608c291c

View File

@ -62,4 +62,17 @@ done
######################## ########################
## PROGRAMME ## ## PROGRAMME ##
######################## ########################
# MQINFO de la file MQ
echo "\nMQINFO de la file EDS.OCB.01 \n"
su - mqm -c "MQINFO.exe EDS.OCB.01" > $ficLogOCB
# Récupération des valeurs (nb de message, nb de message max, taux)
echo "\nRECUPERATION DES VALEURS \n"
nbMess=`grep "Number of messages in queue" $ficLogOCB | sed 's/.* = (//g' | sed 's/).*//g'`
nbMax=`grep "Maximum number" $ficLogOCB | sed 's/.* = (//g' | sed 's/).*//g'`
tauxRemp=`grep "ratio" $ficLogOCB | sed 's/.* = (//g' | sed 's/).*//g'`