OS Manuals

/usr/bin/mib2c

The perl NET-SNMP module and the mib2c tool

From net-snmp-perl 5.9.5.2-r12 (os), captured 2026-11-05 by running mib2c --help (exit 1). permalink

Unknown option '--help'
/usr/bin/mib2c [-h] [-c configfile] [-f prefix] mibNode

  -h		This message.

  -c configfile	Specifies the configuration file to use
		that dictates what the output of mib2c will look like.

  -I PATH	Specifies a path to look for configuration files in

  -f prefix	Specifies the output prefix to use.  All code
		will be put into prefix.c and prefix.h

  -d		debugging output (don't do it.  trust me.)

  -S VAR=VAL	Set $VAR variable to $VAL

  -i		Don't run indent on the resulting code

  -s		Don't look for mibNode.sed and run sed on the resulting code

  mibNode	The name of the top level mib node you want to
		generate code for.  By default, the code will be stored in
		mibNode.c and mibNode.h (use the -f flag to change this)
Options (11)
OptionDescriptionSource
-hDisplay a help message.help + man
-c configfileSpecifies the configuration file to use that dictates what the output of mib2c will look like.help + man
-I PATHSpecifies a path to look for configuration files inhelp
-f prefixPlaces the output code into OUTNAME.c and OUTNAME.h.help + man
-ddebugging output (don't do it.help
-S VAR=VALSet $VAR variable to $VALhelp
-iDo not run indent on the resulting code.help + man
-sDo not look for MIBNODE.sed and run sed on the resulting code.help + man
-IPATHSearch for configuration files in PATH. (in the manual page but not in --help)man
-qRun in "quiet" mode, which minimizes the status messages mib2c generates. (in the manual page but not in --help)man
-SVAR VALPreset a variable VAR, in the mib2c..conf file, to the value VAL. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.