_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW6600 Series User manual
Issue: 1.7
Page 427 of 519
39.3
Configuring SNMP using command line
SNMP is configured under the snmpd package. The configuration files are stored on
/etc/config/snmpd.
39.3.1
System settings using UCI
root@VA_router:~# uci show snmpd
snmpd.system=system
snmpd.system.sysLocation=Office 123
snmpd.system.sysContact=Mr White
snmpd.system.sysName=Backup Access 4
snmpd.agent=agent
snmpd.agent.agentaddress=UDP:161
snmpd.agent.authtrapenabled=yes
snmpd.agent.link_updown_notify=yes
39.3.2
System settings using package options
root@VA_router:~# uci export snmpd
package snmpd
config 'system'
option sysLocation 'Office 123'
option sysContact 'Mr White'
option sysName 'Backup Access 4'
config 'agent'
option agentaddress 'UDP:161'
option authtrapenabled '1'
option link_updown_notify '1'
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.
config 'agent'
option agentaddress 'UDP:161,tcp:161,9161@localhost'
39.3.3
com2sec settings
The following sample specifies that a request from any source using “public” as the
community string will be dealt with using the security name “ro”. However, any request