1snmpc(command)(1)                User Commands               snmpc(command)(1)
2
3
4

NAME

6       snmpc(command) - SNMP MIB compiler frontend
7

DESCRIPTION

9       The  snmpc  program  provides a way to run the SNMP MIB compiler of the
10       Erlang system.
11

EXPORTS

13       snmpc [options] file.mib | file.bin
14
15              snmpc compile a SNMP MIB file, see compile/1,2 for more info.
16
17              It can also be used to generate a header file (.hrl) with  defi‐
18              nitions  of  Erlang  constants  for  the objects in the MIB, see
19              mib_to_hrl/1.
20

COMPILER OPTIONS

22       The following options are supported (note that most of these relate  to
23       the compilation of the MIB file):
24
25         --help:
26           Prints help info.
27
28         --version:
29           Prints application and mib format version.
30
31         --verbosity verbosity:
32           Print debug info.
33
34           verbosity = trace | debug | log | info | silence
35
36           Defaults to silence.
37
38         --warnings | --W:
39           Print warning messages.
40
41         --wae | --Werror:
42           Warnings  as  errors.  Indicates  that warnings shall be treated as
43           errors.
44
45         --o directory:
46           The directory where the compiler should place the output files.  If
47           not  specified,  output files will be placed in the current working
48           directory.
49
50         --i Directory:
51           Specifies the path to search for imported (compiled) MIB files.  By
52           default, the current working directory is always included.
53
54           This  option can be present several times, each time specifying one
55           path.
56
57         --il Directory:
58           This option (include_lib),  specifies  a  list  of  directories  to
59           search  for imported MIBs. It assumes that the first element in the
60           directory name corresponds to an OTP application. The compiler will
61           find   the  current  installed  version.  For  example,  the  value
62           ["snmp/mibs/"] will be replaced by  ["snmp-3.1.1/mibs/"]  (or  what
63           the  current  version  may be in the system). The current directory
64           and the  "snmp-home"/priv/mibs/  are  always  listed  last  in  the
65           include path.
66
67         --sgc:
68           This  option  (skip  group  check),  if present, disables the group
69           check of the mib compiler. That is, should the OBJECT-GROUP and the
70           NOTIFICATION-GROUP macro(s) be checked for correctness or not.
71
72         --dep:
73           Keep  deprecated  definition(s). If not specified the compiler will
74           ignore deprecated definitions.
75
76         --desc:
77           The DESCRIPTION field will be included.
78
79         --ref:
80           The REFERENCE field will be included.
81
82         --imp:
83           The IMPORTS field will be included.
84
85         --mi:
86           The MODULE-IDENTITY field will be included.
87
88         --mc:
89           The MODULE-COMPLIANCE field will be included.
90
91         --ac:
92           The AGENT-CAPABILITIES field will be included.
93
94         --mod module:
95           The module which implements all the instrumentation functions.
96
97           The name of all instrumentation functions must be the same  as  the
98           corresponding managed object it implements.
99
100         --nd:
101           The default instrumentation functions will not be used if a managed
102           object have no  instrumentation  function.  Instead  this  will  be
103           reported as an error, and the compilation aborts.
104
105         --rrnac:
106           This  option,  if present, specifies that the row name assign check
107           shall not be done strictly according to the SMI (which allows  only
108           the value 1).
109
110           With  this  option, all values greater than zero is allowed (>= 1).
111           This means that the error will be converted to a warning.
112
113           By default it is not included, but if this  option  is  present  it
114           will be.
115

SEE ALSO

117       erlc(1), compile(3), snmpc(3)
118
119
120
121Ericsson AB                        snmp 5.5                  snmpc(command)(1)
Impressum