|
NAMEsnmpc - Interface Functions to the SNMP toolkit MIB compilerDESCRIPTIONThe module snmpc contains interface functions to the SNMP toolkit MIB compiler.EXPORTScompile(File)compile(File, Options) -> {ok, BinFileName} | {error, Reason} Types: File = string()
Options = [opt()] opt() = db() | relaxed_row_name_assign_check() | deprecated() | description() | reference() | group_check() | i() | il() | imports() | module() | module_identity() | module_compliance() | agent_capabilities() | outdir() | no_defs() | verbosity() | warnings() | warnings_as_errors() db() = {db, volatile|persistent|mnesia} deprecated() = {deprecated, bool()} relaxed_row_name_assign_check() = relaxed_row_name_assign_check description() = description reference() = reference group_check() = {group_check, bool()} i() = {i, [dir()]} il() = {il, [dir()]} imports() = imports module() = {module, atom()} module_identity() = module_identity module_compliance() = module_compliance agent_capabilities() = agent_capabilities no_defs() = no_defs outdir() = {outdir, dir()} verbosity() = {verbosity, silence|warning|info|log|debug|trace} warnings() = {warnings, bool()} warnings_as_errors() = warnings_as_errors dir() = string() BinFileName = string() Compiles the specified MIB file <File>.mib. The compiled file BinFileName is called <File>.bin.
Default is volatile.
Default is true.
By default it is not included, but if this option is present it will be.
By default it is not included, but if this option is present it will be.
By default it is not included, but if this option is present it will be. The reference text will be placed in the allocList field of the mib-entry record (#me{}) for the table.
Default is true.
Default is ["./"].
The name of all instrumentation functions must be the same as the corresponding managed object it implements.
Default is silence. Note that if the option warnings is true and the option verbosity is silence, warning messages will still be shown.
Default is true.
The MIB compiler understands both SMIv1 and SMIv2 MIBs. It uses the MODULE-IDENTITY statement to determine if the MIB is version 1 or 2. The MIB compiler can be invoked from the OS command line by using the command erlc. erlc recognizes the extension .mib, and invokes the SNMP MIB compiler for files with that extension. The options db, group_check, deprecated, description, verbosity, imports and module_identity have to be specified to erlc using the syntax +term. See erlc(1) for details. is_consistent(Mibs) -> ok | {error, Reason}
Types: Mibs = [MibName]
MibName = string() Checks for multiple usage of object identifiers and traps between MIBs. mib_to_hrl(MibName) -> ok | {error, Reason}
Types: MibName = string()
Generates a .hrl file with definitions of Erlang constants for the objects in the MIB. The .hrl file is called <MibName>.hrl. The MIB must be compiled, and present in the current directory. The mib_to_hrl generator can be invoked from the OS command line by using the command erlc. erlc recognizes the extension .bin, and invokes this function for files with that extension. SEE ALSOerlc(1)
Visit the GSP FreeBSD Man Page Interface. |