snmpc(1)
β¨ NAME β¨
snmpc β the SNMP MIB compiler frontend, bestie π
πΈ SYNOPSIS πΈ
snmpc [options] file.mib | file.bin
π¦ DESCRIPTION π¦
Okay so, <pink>snmpc</pink> is literally your backstage pass to running the SNMP MIB compiler of the Erlang system. It's giving "I do the heavy lifting so you don't have to." π
snmpc compiles an SNMP MIB file. Wanna know more? Go peek at compile/1,2. π
It can also be your girl for generating a header file (.hrl) stuffed with definitions of Erlang constants for all the objects chilling in the MIB. That's a mib_to_hrl/1 situation, iykyk. β¨
π Compiler options π
These are the options we support (heads up: most of them are about compiling the MIB file, no cap):
--helpβ prints help info. Your little "what do I do now" rescue. π«Ά--versionβ prints the application and mib format version.--verbosityverbosity β print debug info. The verbosity value is one oftrace,debug,log,info,silence. Defaults tosilence. π€«--warnings|--Wβ print warning messages. Let her warn you, bestie.--wae|--Werrorβ warnings as errors. This says "no, actually, we're treating those warnings as errors." So serious. π--odirectory β the directory where the compiler should place the output files. If you don't specify it, the output files land in the current working directory. π--iDirectory β specifies the path to search for imported (compiled) MIB files. By default, the current working directory is always included. And plot twist: this option can show up several times, each one specifying a single path. π--ilDirectory β this one's theinclude_liboption: it specifies a list of directories to search for imported MIBs. It assumes the first element in the directory name corresponds to an OTP application, and the compiler will find the currently installed version. For example, the value["snmp/mibs/"]gets replaced by["snmp-3.1.1/mibs/"](or whatever the current version may be on your system). And the current directory plus the"snmp-home"/priv/mibs/are always listed last in the include path. β¨--sgcβ this option (skip group check), if present, disables the group check of the mib compiler. Like, should theOBJECT-GROUPand theNOTIFICATION-GROUPmacro(s) be checked for correctness or not? This option says "nah, skip it." π--depβ keep deprecated definition(s). If you don't specify it, the compiler will ignore deprecated definitions. Rip to the deprecated ones, they get ghosted by default. π»--descβ theDESCRIPTIONfield will be included.--refβ theREFERENCEfield will be included.--impβ theIMPORTSfield will be included.--miβ theMODULE-IDENTITYfield will be included.--mcβ theMODULE-COMPLIANCEfield will be included.--acβ theAGENT-CAPABILITIESfield will be included.--modmodule β the module which implements all the instrumentation functions. And the name of all instrumentation functions has to be the same as the corresponding managed object it implements. Matching names only, it's giving coordinated fits. π--ndβ the default instrumentation functions will not be used if a managed object has no instrumentation function. Instead, this gets reported as an error, and the compilation aborts. Big yikes, do not recommend casually. β οΈ--rrnacβ if present, this option specifies that the row name assign check shall not be done strictly according to the SMI (which allows only the value1). With this option, all values greater than zero are allowed (>= 1). This means the error will be converted to a warning. By default it is not included β but if this option is present, it will be. π«‘
π SEE ALSO π
erlc(1), compile, snmpc
Go compile something iconic, bestie. MIBs don't compile themselves. π₯
That's the whole vibe β snmpc(1) from the Erlang Module Definition crew. This one's brought to you by Ericsson AB, riding with snmp 5.20.5, and it's stamped snmpc(1). Periodt. π β¨
π¦ where this page comes from
- arch rolling: erlang-snmp 29.1.1-1 Β· Apache-2.0
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- ubuntu stonking: erlang-snmp 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms