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