First Commit - Source Code from Reply

This commit is contained in:
vincenzofariello
2024-05-13 12:54:14 +02:00
parent 73e32a5020
commit a15aee1f08
11184 changed files with 1065913 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#!/bin/ksh
MASTER_NODE="dbcesefep1"
THIS_NODE=`hostname`
MASTER_ONLINE="-"$(/usr/es/sbin/cluster/utilities/clRGinfo | grep $MASTER_NODE | grep ONLINE | awk '{print $NF}')
if [ "-"$FROM_GUI_DBC = "-true" ]
then
exit 0
else
if [ "-"$MASTER_NODE = $MASTER_ONLINE ]
then
if [ $THIS_NODE = $MASTER_NODE ]
then
exit 0
else
exit 1
fi
else
if [ $THIS_NODE = $MASTER_NODE ]
then
exit 1
else
exit 0
fi
fi
fi