SNMPC(1) General Commands Manual SNMPC(1)

snmpc - SNMP MIB compiler frontend

snmpc [options] file.mib | file.bin

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

snmpc compiles an SNMP MIB file. See compile/1,2 for more information.

It can also be used to generate a header file (.hrl) with definitions of Erlang constants for the objects in the MIB. See mib_to_hrl/1.

The following options are supported (note that most of these relate to the compilation of the MIB file):

verbosity = trace | debug | log | info | silence
Defaults to silence.
This option can be present several times, each time specifying one path.
The name of all instrumentation functions must be the same as the corresponding managed object it implements.
With this option, all values greater than zero is allowed (>= 1). This means that the error will be converted to a warning.
By default it is not included, but if this option is present it will be.

erlc(1), m:compile, m:snmpc

January 2025