User manual
21: Configuring SNMP
_______________________________________________________________________________________________________
21 Configuring SNMP
The SNMP daemon has several configuration sections that configure the agent
itself (agent and system sections), assignment of community names and which
SNMP protocols are in use to groups (com2sec and group sections), creation of
views and subviews (access section) of the whole available SNMP tree and
finally, granting specific access to those views on a group by group basis (access
section).
21.1 agent
The options defined for this section are outlined below.
A typical sample agent configuration is shown below. It causes the agent to
listen on udp port 161, with authentication traps and notify link up/down
enabled.
uci set snmpd.@agent[0].agentaddress=UDP:161
uci set snmpd.@agent[0].authtrapenabled=1
uci set snmpd.@agent[0].link_updown_notify=yes
config 'agent'
option agentaddress 'UDP:161'
option authtrapenabled '1'
option link_updown_notify 'yes'
Another sample agent configuration shown below causes the agent to listen on
udp port 161, tcp port 161 and udp port 9161 on only the interface associated
with the localhost address.
Name
Type
Required
Description
agentaddress string yes
Specifies the address(es) and port(s) on which the
agent should listen.
[(udp|tcp):]port[@address][,...]
authtrapenabled
boolean
yes|no
no
yes: enables SNMP authentication trap
no: disables SNMP authentication trap
Note this is the SNMP poll authentication trap, to
be sent when there is a community mismatch
link_updown_notify boolean
yes|no
no
when enabled the router sends a trap notifying link
up/down
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 142 of 255