Although most configuration directives are concerned with the MIB information supplied by the agent, there are a handful of directives that control the behavior of snmpd considered simply as a daemon providing a network service.
agentaddress [<transport-specifier>:]<transport-address>[,...]
defines a list of listening addresses, on which to receive incoming SNMP requests. See section “Listening addresses in BS2000” ́details.
The default behavior is to listen on UDP port 161 on all IPv4 interfaces.
You can specify more than ore listening address.
Due to the technical reasons IPv6 ports cannot match IPv4 ports, e.g.:
agentaddress udp:161,tcp:161
- will work
agentaddress udp:161,udp6:161
- will not work
agentaddress udp:161,udp6:163
- will work
agentgroup {GROUP|#GID}
changes to the specified group after opening the listening port(s). This may refer to a group by name (GROUP), or a numeric group ID starting with '#' (#GID).
agentuser {USER|#UID}
changes to the specified user after opening the listening port(s). This may refer to a user by name (USER), or a numeric user ID starting with '#' (#UID).
leave_pidfile yes
instructs the agent to not remove its pid file on shutdown. Equivalent to specifying -U on the command line.
maxGetbulkRepeats NUM
Sets the maximum number of responses allowed for a single variable in a getbulk request. Set to 0 to enable the default and set it to -1 to enable unlimited. Because memory is allocated ahead of time, sitting this to unlimited is not considered safe if your user population cannot be trusted. A repeat number greater than this will be truncated to this value.
This is set by default to -1.
maxGetbulkResponses NUM
Sets the maximum number of responses allowed for a getbulk request. This is set by default to 100. Set to 0 to enable the default and set it to -1 to enable unlimited. Because memory is allocated ahead of time, setting this to unlimited is not considered safe if your user population cannot be trusted.
In general, the total number of responses will not be allowed to exceed the maxGetbulkResponses number and the total number returned will be an integer multiple of the number of variables requested times the calculated number of repeats allow to fit below this number.
Also note that processing of maxGetbulkRepeats is handled first.