28: Configuring SNMP 
_______________________________________________________________________________________________________ 
_____________________________________________________________________________________________________ 
© Virtual Access 2017 
GW1000 Series User Manual 
Issue: 1.9    Page 271 of 350 
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 
28.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' 
28.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 
from the localhost itself using “private” as the community string will be dealt with using 
the security name “rw”.  
Note: the security names of “ro” and “rw” here are simply names – the fact of a security 
name having read only or read-write permissions is handled in the access section and 
dealt with at a group granularity.