Manual Page Result
0
Command: mosy | Section: 8 | Source: Digital UNIX | File: mosy.8.gz
mosy(8) System Manager's Manual mosy(8)
NAME
mosy - The managed object syntax compiler.
SYNOPSIS
/usr/sbin/mosy [-o output_file] [-s] [-i] [-1] input_file
DESCRIPTION
The mosy program reads a description of an SNMP-managed objects module
(extracted from a MIB) and produces a simple ASCII file containing
equivalent definitions. The output file is used by various management
applications. In particular, mosy output files are used as input to
the snmpi program when developing extensible SNMP subagents for DIGITAL
UNIX .
If not given, the output file is derived from the input file name by
replacing the suffix .my with specified (or is specified as a hyphen
(-) for standard input), output goes to standard output.
For a complete description of using mosy and developing subagents refer
to the Network Programmer's Guide .
The input_file is a text file in MIB format describing a set of managed
objects. This file is typically obtained by cleaning up an RFC file
that defines a MIB. (You can use the /usr/examples/esnmp/mib_con-
verter.sh script to perform this task.) If you do not specify an in-
put_file or specify a hyphen (-), the program accepts input from stan-
dard input.
The output_file specifies the file to create for mosy output. You can
also use a hyphen "-" to specify the output file name, which means out-
put to standard out. If not given, the output file is derived from the
input file name by replacing the suffix .my with specified (or is spec-
ified as a hyphen (-) for standard input) output goes to standard out.
FLAGS
Creates the specified output file. The default behavior is to derive
the output file name from the input file name. Indicates silent mode
which turns off the default behavior of printing out objects names,
type names, and identifiers. Specifies that errors are ignored. This
option causes the mosy program to create an output file even if it en-
counters errors. The default behavior is that the mosy program gener-
ates no output file when errors are encountered. Specifies that the
mosy program will perform only the first validation pass when compil-
ing. The mosy program prints the input_file contents as it parses,
which is useful when debugging syntax errors.
EXAMPLES
Compile the file toaster.my with the output going to the file
toaster.defs. # mosy toaster Clean up the MIB defined in RFC1514.txt
and compile it, placing the output in file fred.objects # /usr/exam-
ples/esnmp/mib_converter < rfc1514.txt > rfc1514.my # mosy rfc1514 -o
fred.objects
RELATED INFORMATION
Commands: /usr/sbin/mib_converter.sh, snmpi(8), snmpd(8), snmp_re-
quest(8)
Network Programmer's Guide
IDENTIFICATION
Marshall T. Rose, Performance Systems International
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.
It has been modified for use in DIGITAL UNIX extensible SNMP. delim
off
mosy(8)