Create 30_crs.sh

This commit is contained in:
Yacine31
2023-11-30 02:34:18 +01:00
parent 1932d9eab6
commit 9e0f5fe24c

14
sh/30_crs.sh Normal file
View File

@@ -0,0 +1,14 @@
# script à exécuter si couche grid/crs
count=$(ps -ef | grep ohasd | grep -v grep | wc -l)
if [ $count -gt 0 ]; then
echo "<h2>Services CRS</h2>"
# les process dbvisit en cours
BIN_DIR=$(dirname $(ps -ef | grep ohasd.bin | grep -v grep | awk '{print $8}'))
echo "<pre>"
${BIN_DIR}/crsctl status res -t
echo "</pre>"
fi