Content-type: text/html
snmpi - The extensible SNMP subagent data initializer
/usr/sbin/snmpi [-p] [-n prefix] [-e exclude_file] def_file [subtree...]
The snmpi program emits subtree object table initialization C code to be compiled and linked with the method routines as part of an extensible SNMP subagent.
The def_file is a mosy output file or a concatenation of mosy output files.
The subtree argument specifies the name of a MIB object that defines the base of the objects that will be registered as a unit (with the snmpd daemon) by the subagent. (The snmpd daemon will subsequently expect the subagent to handle all MIB objects subordinate to subtree.) Several subtrees may be specified, and at least one is required unless the -p flag is used.
If the base MIB object name is not unique, its name may be prefixed by its parents name, separated by an underscore character (_); for example, mn_system.
The subtree argument may also contain the suffix _tbl.h or _tbl.c to facilitate the use of snmpi within makefiles.
For each subtree argument specified, snmpi produces the files subtree_tbl.h and subtree_tbl.c.
For a complete description of using snmpi refer to the Network Programmer's Guide .
Generates formatted output of the internal tree of all MIB objects defined in def_file. This option is useful in identifying problems in MIB symbol resolution. Specifies a prefix string to be prepended to each variable generated by the snmpi program. Specifies the name of a file that will contain a list of MIB objects that are not to be included in the emitted object table initialization code created by the program.
Commands: mosy(8), snmpd(8), snmp_request(8)
Originally, this work was partially supported by the U.S. Defense Advanced Research Projects Agency and the Rome Air Development Center of the U.S. Air Force Systems Command under contract number F30602-88-C-0016. Marshall T. Rose wrote the original (insecure) 4BSD/ISODE SNMP package.
David L. Partain of the Department of Computer and Information Science at Linkoping University, Sweden added most of the administrative facilities as a part of his Masters work at the University of Tennessee, Knoxville. Dr. Jeffrey D. Case of SNMP Research supervised his work, and Keith McCloghrie of Hughes LAN Systems provided implementation guidance.
Major modifications to the code were made as part of the extensible SNMP Agent for Digital UNIX. delim off