OS Manuals

/usr/bin/snmptrapd

Simple Network Management Protocol

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

Usage: snmptrapd [OPTIONS] [LISTENING ADDRESSES]

	NET-SNMP Version:  5.9.5.2
	Web:      http://www.net-snmp.org/
	Email:    net-snmp-coders@lists.sourceforge.net

  -a			ignore authentication failure traps
  -A			append to log file rather than truncating it
  -c FILE		read FILE as a configuration file
  -C			do not read the default configuration files
  -d			dump sent and received SNMP packets
  -D[TOKEN[,...]]		turn on debugging output for the specified TOKENs
			   (ALL gives extremely verbose debugging output)
  -f			do not fork from the shell
  -F FORMAT		use specified format for logging to standard error
  -g GID		change to this numeric gid after opening
			  transport endpoints
  -h, --help		display this usage message
  -H			display configuration file directives understood
  -m MIBLIST		use MIBLIST instead of the default MIB list
  -M DIRLIST		use DIRLIST as the list of locations
			  to look for MIBs
  -n			use numeric addresses instead of attempting
			  hostname lookups (no DNS)
  -p FILE		store process id in FILE
  -t			Prevent traps from being logged to syslog
  -u UID		change to this uid (numeric or textual) after
			  opening transport endpoints
  -v, --version		display version information
  -x ADDRESS		use ADDRESS as AgentX address
  -X			don't become a subagent
  -O <OUTOPTS>		toggle options controlling output display
			0:  print leading 0 for single-digit hex characters
			a:  print all strings in ascii format
			b:  do not break OID indexes down
			e:  print enums numerically
			E:  escape quotes in string indices
			f:  print full OIDs on output
			n:  print OIDs numerically
			p PRECISION:  display floating point values with specified PRECISION (printf format string)
			q:  quick print for easier parsing
			Q:  quick print with equal-signs
			s:  print only last symbolic element of OID
			S:  print MIB module-id plus last element
			t:  print timeticks unparsed as numeric integers
			T:  print human-readable text along with hex strings
			u:  print OIDs using UCD-style prefix suppression
			U:  don't print units
			v:  print values only (not OID = value)
			x:  print all strings in hex format
			X:  extended index format
  -L <LOGOPTS>		toggle options controlling where to log to
			e:           log to standard error
			o:           log to standard output
			n:           don't log at all
			f file:      log to the specified file
			s facility:  log to syslog (via the specified facility)

			(variants)
			[EON] pri:   log to standard error, output or /dev/null for level 'pri' and above
			[EON] p1-p2: log to standard error, output or /dev/null for levels 'p1' to 'p2'
			[FS] pri token:    log to file/syslog for level 'pri' and above
			[FS] p1-p2 token:  log to file/syslog for levels 'p1' to 'p2'
Options (23)
OptionDescriptionSource
-aignore authentication failure trapshelp + man
-AAppend to the log file rather than truncating it.help + man
-c FILERead FILE as a configuration file (or a comma-separated list of configuration files).help + man
-CDo not read any configuration files except the one optionally specified by the -c option.help + man
-dDump (in hexadecimal) the sent and received SNMP packets.help + man
-D TOKENturn on debugging output for the specified TOKENs (ALL gives extremely verbose debugging output)help
-fDo not fork() from the calling shell.help + man
-F FORMATWhen logging to standard output, use the format in the string FORMAT.help + man
-g GIDchange to this numeric gid after opening transport endpointshelp
-h, --helpDisplay a brief usage message and then exit.help + man
-HDisplay a list of configuration file directives understood by the trap daemon and then exit.help + man
-m MIBLISTSpecifies a colon separated list of MIB modules to load for this application.help + man
-M DIRLISTSpecifies a colon separated list of directories to search for MIBs.help + man
-nDo not attempt to translate source addresses of incoming packets into hostnames.help + man
-p FILESave the process ID of the trap daemon in FILE.help + man
-tPrevent traps from being logged to sysloghelp + man
-u UIDchange to this uid (numeric or textual) after opening transport endpointshelp
-v, --versionPrint version information for the trap daemon and then exit.help + man
-x ADDRESSConnect to the AgentX master agent on the specified address, rather than the default "/var/agentx/master".help + man
-XDo not connect to a AgentX master agenthelp + man
-O OUTOPTStoggle options controlling output display 0: print leading 0 for single-digit hex characters a: print all strings in ascii format b: do not break OID indexes down e: print enums numerically E: escape…help
-L LOGOPTStoggle options controlling where to log to e: log to standard error o: log to standard output n: don't log at all f file: log to the specified file s facility: log to syslog (via the specified…help
--name "value"Allows one to specify any token ("name") supported in the snmptrapd.conf file and sets its value to "value". (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.