Loading...
Select Version
&pagelevel(4)&pagelevel
By default, snmptrapd listens for incoming SNMP requests in UDP port 162 for all IPv4 addresses. You can modify the setting by changing its configuration file (by default, snmptrapd.conf) or by passing command line arguments. For more information on this, please refer to section “Configuring SNMP trap daemon snmptrapd (snmptapd.conf)”.
snmptrapd should be started prior to the snmpd.
Snmptrapd configuration examples
snmptrapd -C -c ./trap.conf -Lo &
-C
Don't use default configuration file.-c
Load given configuration file.-Lo
Log to the stdout.snmptrapd -C -Lo --authcommunity="log public" udp:1162 &
--authcommunity="log public"
Log all traps with trapcommunity "public".udp:1162
Listen for trap notifications from all IPs on given socket.