snmprelayd.template revision 7c478bd95313f5f23a4c958a745db2134aa03244
130N/A#
130N/A# CDDL HEADER START
130N/A#
130N/A# The contents of this file are subject to the terms of the
130N/A# Common Development and Distribution License, Version 1.0 only
130N/A# (the "License"). You may not use this file except in compliance
130N/A# with the License.
130N/A#
130N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
130N/A# or http://www.opensolaris.org/os/licensing.
130N/A# See the License for the specific language governing permissions
130N/A# and limitations under the License.
130N/A#
130N/A# When distributing Covered Code, include this CDDL HEADER in each
130N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
130N/A# If applicable, add the following below this CDDL HEADER, with the
130N/A# fields enclosed by brackets "[]" replaced with your own identifying
130N/A# information: Portions Copyright [yyyy] [name of copyright owner]
130N/A#
130N/A# CDDL HEADER END
844N/A#
130N/A# Copyright 1996 Sun Microsystems, Inc. All Rights Reserved.
130N/A# Use is subject to license terms.
130N/A#
130N/A# ident "%Z%%M% %I% %E% SMI"
130N/A#
130N/A
130N/A#
130N/A# A configuration file template for the SNMP Relay
135N/A#
135N/A
844N/A# IMPORTANT:
844N/A# ----------
618N/A# So that the SNMP Relay will take into account
130N/A# your configuration file, you must:
130N/A# - rename this file with the ".snmprelay" extension
130N/A# (for example: myagent.snmprelay)
130N/A# - check that this file is located in the configuration directory
181N/A# for the SNMP Relay (by default: /opt/SUNWconn/snmprelay)
130N/A
130N/A
130N/A##########
130N/A# macros #
130N/A##########
130N/A
130N/A# The following 3 macros are predefined:
130N/A#
130N/A# mib-2 = 1.3.6.1.2.1
130N/A# enterprise = 1.3.6.1.4.1
130N/A# sun = 1.3.6.1.4.1.42
130N/A#
130N/A# Your can define your own macros, so that you can
130N/A# manipulate strings instead of OIDs in defining the agent.
130N/A# See the "agent" section below.
130N/A
130N/Amacros = {
130N/A application = mib-2.27
130N/A mta = mib-2.28
729N/A dsa = mib-2.28
130N/A
130N/A my-enterprise = enterprise.n
130N/A
130N/A my-subtree1 = my-enterprise.1
130N/A my-subtree2 = my-enterprise.2
181N/A}
130N/A
130N/A# in enterprise.n, n is the number assigned to your company
130N/A# by the Internet Assigned Numbers Authority.
130N/A
130N/A
130N/A##########
130N/A# agent #
130N/A##########
# You must fill in at least the following fields:
#
# - name: the name of your agent (for example, the executable
# file name of your agent)
#
# - subtrees: the list of OIDs / subtrees of OIDs your agent
# supports. The listed items must be separated by
# a coma.
#
# - port: the UDP port number on which you will start
# your agent
#
# You can also change the following fields:
#
# - timeout: the number of micro-seconds the SNMP Relay will
# wait for a reponse from your agent
agents =
{
{
name = "myagent"
subtrees = { my-subtree1, my-subtree2 }
timeout = 4000000
port = p
}
}
# In port = p, replace p by any unused port number above 1024.
# You can use the command get_free_udp_port (default location
# /opt/SUNWconn/mhs/bin) to find out the first unused udp port
# number above 1024.