1 #!/usr/bin/ksh 2 # 3 # CDDL HEADER START 4 # 5 # The contents of this file are subject to the terms of the 6 # Common Development and Distribution License (the License). 7 # You may not use this file except in compliance with the License. 8 # 9 # You can obtain a copy of the license at usr/src/CDDL.txt 10 # or http://www.opensolaris.org/os/licensing. 11 # See the License for the specific language governing permissions 12 # and limitations under the License. 13 # 14 # When distributing Covered Code, include this CDDL HEADER in each 15 # file and include the License file at usr/src/CDDL.txt. 16 # If applicable, add the following below this CDDL HEADER, with the 17 # fields enclosed by brackets [] replaced with your own identifying 18 # information: Portions Copyright [yyyy] [name of copyright owner] 19 # 20 # CDDL HEADER END 21 # 22 23 # 24 # Copyright 2007 Sun Microsystems, Inc. All rights reserved. 25 # Use is subject to license terms. 26 # 27 28 #ident "@(#)saa_register.ksh 1.7 07/06/06 SMI" 29 30 . `dirname $0`/saa_config 31 32 if [ "${PERFORM_REAL_MONITORING}" -eq 0 ]; then 33 PROBEFLAG="" 34 elif [ "${PERFORM_REAL_MONITORING}" -eq 1 ]; then 35 PROBEFLAG="-P" 36 else 37 echo "Error: PERFORM_REAL_MONITORING must be set to either 0 or 1!" 38 exit 1 39 fi 40 41 /usr/cluster/bin/scrgadm -a -j $RS -g $RG -t SUNW.gds \ 42 -x Start_command="/opt/SUNWscsaa/bin/start_SAA \ 43 -R $RS -G $RG $PROBEFLAG " \ 44 -x Stop_command="/opt/SUNWscsaa/bin/stop_SAA \ 45 -R $RS -G $RG $PROBEFLAG " \ 46 -x Probe_command="/opt/SUNWscsaa/bin/probe_SAA \ 47 -R $RS -G $RG $PROBEFLAG " \ 48 -y Port_list=$PORT/tcp -y Network_resources_used=$LH \ 49 -x Stop_signal=9 \ 50 -y Resource_dependencies=$HAS_RS 51