ReadMe
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
28steps to create the sample agent using the agent toolkit.
29
30Step 1 : Create your MIB
31Step 2 : Copy the files in the sample directory to your own directory
32 where you want to create your sub agent.
33Step 3 : Copy your MIB file in this directory.
34Step 4 : Modify the Makefile. Look for AGENT and assign the name of
35 your sub agent.
36Step 5 : Modify the MIBS entry in the Makefile. You can replace mib_demo.txt
37 with your mib file name(e.g mymib.txt).
38Step 6 : Type "make parse" to invoke the mibcodegen executable with
39 the required mib files. This will create multiple 'c' code files.
40Step 7 : Modify the SOURCES entry in the Makefile. Add the 'c' files
41 which are created in the previous step.
42Step 8 : Type "make", the sample agent executable will be created
43Step 9 : Modify the various generated 'c' files to add the functionality that
44 the sub agent need to provide.
45
46Remark:
47Usage: snmpdemod /* the generated subagent executable */
48 [-h] /* help message */
49
50 [-k (don't read config file)] /* run the subagent as standalone, in
51 other words, it doesn't register with master
52 agent */
53
54 [-p port ] /* port for listening SNMP requests */
55
56 [-c config-file (default /etc/opt/SUNWconn/SSA/snmp/conf/snmpdemo.reg)]
57 /* file for oid(subtrees) registration with master agent.
58 with -k option, this file won't be read */
59
60 [-a sec-config-file (default /etc/opt/SUNWconn/SSA/snmp/conf/snmpdemo.acl)]
61 /* access control file for the subagent */
62
63 [-i poll-interval (default 30 seconds)]
64 /* maximum interval for subagent to wait for requests */
65
66 [-d trace-level (range 0..4, default 0)]
67 /* debugging purpose */
68
69