252N/A#!/bin/ksh
252N/A#
252N/A#
252N/A# CDDL HEADER START
252N/A#
252N/A# The contents of this file are subject to the terms of the
252N/A# Common Development and Distribution License (the "License").
252N/A# You may not use this file except in compliance with the License.
252N/A#
252N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
252N/A# or http://www.opensolaris.org/os/licensing.
252N/A# See the License for the specific language governing permissions
252N/A# and limitations under the License.
252N/A#
252N/A# When distributing Covered Code, include this CDDL HEADER in each
252N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
252N/A# If applicable, add the following below this CDDL HEADER, with the
252N/A# fields enclosed by brackets "[]" replaced with your own identifying
252N/A# information: Portions Copyright [yyyy] [name of copyright owner]
252N/A#
252N/A# CDDL HEADER END
252N/A#
252N/A# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
252N/A#
252N/A# ident "@(#)svc-net-snmp 1.2 10/10/24 SMI"
252N/A#
252N/A# Start method script for the net-snmp SNMP daemon
252N/A#
252N/A
252N/A. /lib/svc/share/smf_include.sh
252N/A
252N/ASMF_FMRI=svc:/application/management/net-snmp
252N/ASNMPD_FILE=/etc/net-snmp/snmp/snmpd.conf
252N/ASNMPCONFPATH=/etc/net-snmp/snmp:/var/net-snmp
252N/AMIBDIRS=/etc/net-snmp/snmp/mibs
252N/ACPU_ARCH=`/usr/bin/arch`
252N/A
252N/Aexport SNMPCONFPATH
252N/Aexport MIBDIRS
252N/A
252N/A
252N/Aif [ "$CPU_ARCH" == "i86pc" ]; then
252N/A arch_type=`/bin/svcprop -p general/arch_type $SMF_FMRI`
252N/A if [ "$arch_type" == "32" ]; then
252N/A /usr/sbin/i86/snmpd
252N/A elif [ "$arch_type" == "64" ]; then
252N/A /usr/sbin/amd64/snmpd
252N/A elif [ "$arch_type" == "0" ]; then
252N/A /usr/sbin/snmpd
252N/A fi
252N/Aelif [ "$CPU_ARCH" == "sun4" ]; then
252N/A /usr/sbin/snmpd
252N/Afi