1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
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/OPENSOLARIS.LICENSE.
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# Copyright 1996 Sun Microsystems, Inc.  All Rights Reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28#
29#	A configuration file template for the SNMP Relay
30#	
31
32# IMPORTANT:
33# ----------
34#	So that the SNMP Relay will take into account
35#	your configuration file, you must:
36#	- rename this file with the ".snmprelay" extension
37#	  (for example: myagent.snmprelay)
38#	- check that this file is located in the configuration directory
39#	  for the SNMP Relay (by default: /opt/SUNWconn/snmprelay)
40
41
42##########
43# macros # 
44##########
45
46# The following 3 macros are predefined:
47#
48#	mib-2 =		1.3.6.1.2.1
49#	enterprise =	1.3.6.1.4.1
50#	sun =		1.3.6.1.4.1.42
51#
52# Your can define your own macros, so that you can
53# manipulate strings instead of OIDs in defining the agent.
54# See the "agent" section below.
55
56macros = {
57	application =		mib-2.27
58	mta =			mib-2.28
59	dsa =			mib-2.28
60
61	my-enterprise =	enterprise.n
62
63	my-subtree1 =		my-enterprise.1
64	my-subtree2 =		my-enterprise.2
65}
66
67# in enterprise.n, n is the number assigned to your company
68# by the Internet Assigned Numbers Authority.
69
70
71##########
72# agent #
73##########
74
75# You must fill in at least the following fields:
76#
77#	- name:		the name of your agent (for example, the executable
78#			file name of your agent)
79#
80#	- subtrees:	the list of OIDs / subtrees of OIDs your agent
81#			supports. The listed items must be separated by
82#			a coma.
83#
84#	- port:		the UDP port number on which you will start
85#			your agent
86#
87# You can also change the following fields:
88#
89#	- timeout:	the number of micro-seconds the SNMP Relay will
90#			wait for a reponse from your agent
91
92agents =
93{
94	{
95		name = "myagent"
96		subtrees = { my-subtree1, my-subtree2 }
97		timeout = 4000000
98		port = p
99	}
100}
101
102# In port = p, replace p by any unused port number above 1024.
103# You can use the command get_free_udp_port (default location
104# /opt/SUNWconn/mhs/bin) to find out the first unused udp port
105# number above 1024.
106
107
108