6 # The contents of this file are subject to the terms of the
7 # Common Development and Distribution License (the "License").
8 # You may not use this file except in compliance with the License.
10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 # or http://www.opensolaris.org/os/licensing.
12 # See the License for the specific language governing permissions
13 # and limitations under the License.
15 # When distributing Covered Code, include this CDDL HEADER in each
16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 # If applicable, add the following below this CDDL HEADER, with the
18 # fields enclosed by brackets "[]" replaced with your own identifying
19 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
25 # ident "@(#)svc-net-snmp 1.2 10/10/24 SMI"
27 # Start method script for the net-snmp SNMP daemon
30 .
/lib
/svc
/share
/smf_include.sh
32 SMF_FMRI
=svc
:/application
/management
/net-snmp
33 SNMPD_FILE
=/etc
/net-snmp
/snmp
/snmpd.conf
34 SNMPCONFPATH
=/etc
/net-snmp
/snmp
:/var
/net-snmp
35 MIBDIRS
=/etc
/net-snmp
/snmp
/mibs
36 CPU_ARCH
=`/usr/bin/arch`
42 if [ "$CPU_ARCH" == "i86pc" ]; then
43 arch_type
=`/bin/svcprop -p general/arch_type $SMF_FMRI`
44 if [ "$arch_type" == "32" ]; then
46 elif [ "$arch_type" == "64" ]; then
48 elif [ "$arch_type" == "0" ]; then
51 elif [ "$CPU_ARCH" == "sun4" ]; then