#users root::::PRM_SYS

#application records

/opt/math/bin/tool::::math_dept,num_cruncher,print_answer /usr/local/games/tetris::::computer_dept

EOF1

fi

# is PRM turned on?

/opt/prm/bin/prmconfig 2> /dev/null > /dev/null if [ “$?” -eq “1” ]

then

# need to initialize PRM

/opt/prm/bin/prmconfig -ie -f /etc/opt/prm/conf/Serviceguard if [ “$?” -eq “1” ]

then

echo “WARNING : prmconfig -f /etc/opt/prm/conf/Serviceguard failed” return 0

fi else

# make sure it has my group

/opt/prm/bin/prmconfig grep math_dept > /dev/null 2> /dev/null if [ “$?” -ne “0” ]

then

echo “WARNING : conflicting PRM already running on $UNAME” return 0

else

#log the initial configuration /opt/prm/bin/prmconfig

fi

fi

else

# no luck. PRM not installed

echo “PRM not installed on $UNAME” return 0

fi

return 0

}

For information on setting up Serviceguard, see the manual Managing ServiceGuard.

128 Using PRM with Serviceguard

Page 128
Image 128
HP Process Resource Manager (PRM) manual EOF1