#! /bin/sh # # $Id: cluster_fmstop.sh,v 6.5 2006/04/24 15:55:17 castrv Exp $ Copyright (c) 2002-2006, EMC Corporation. # # All rights reserved. # # ***************************************************************** # * * # * Copyright (c) Digital Equipment Corporation, 1999 * # * * # * All rights reserved. Unpublished rights reserved under * # * the copyright laws of the United States. * # * * # * The software contained on this media is proprietary to * # * and embodies the confidential technology of Digital * # * Equipment Corporation. Possession, use, duplication or * # * dissemination of the software and media is authorized only * # * pursuant to a valid written license from Digital Equipment * # * Corporation. * # * * # * RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure * # * by the U.S. Government is subject to restrictions as set * # * forth in Subparagraph (c)(1)(ii) of DFARS 252.227-7013, * # * or in FAR 52.227-19, as applicable. * # * * # ***************************************************************** # # # High Availability NetWorker FM_STOP method, used to shut down any # fault monitor procedure on this node for the networker agent. It is # registered when doing cluster configuration (see networker.cluster) # # Parse program arguments. # parse_args() { while [ $# -gt 0 ] do case $1 in -probe ) ;; -R ) RESOURCE_NAME=$2 shift ;; -T ) RESOURCETYPE_NAME=$2 shift ;; -G ) RESOURCEGROUP_NAME=$2 shift ;; * ) ;; esac shift done } PATH=$PATH:/usr/cluster/bin export PATH FMPROBE=nsrdfm CLU_TYPE=SC22 pkginfo -q SUNWscr if [ $? -eq 0 ]; then # Sun Cluster 3.0 CLU_TYPE=SC30 fi pmfadm -s ${FMPROBE} TERM > /dev/null 2>&1 if [ ${CLU_TYPE} = SC30 ]; then parse_args $* scha_resource_setstatus -R ${RESOURCE_NAME} -G ${RESOURCEGROUP_NAME} -s OFFLINE -m "offline, not monitored" fi exit 0