User manual

21: Configuring SNMP
_______________________________________________________________________________________________________
config 'agent'
option agentaddress 'UDP:161,tcp:161,9161@localhost'
21.2 system
The options defined for this section are shown in the table below.
Name Type Required Description
agentaddress string yes
Specifies the address(es) and port(s) on which the
agent should listen.
[(udp|tcp):]port[@address][,...]
sysLocation string yes
Sets the system location, system contact or system
name for the agent. This information is reported in the
'system' group the mibII tree.
sysContact string yes
Ordinarily these objects (sysLocation.0, sysContact.0
and sysName.0) are read-write.
sysName string yes
However, specifying the value for one of these objects
by giving the appropriate token makes the
corresponding object read-only, and attempts to set the
value of the object will result in a notWritable error
response.
A possible system configuration section is shown below:
config 'system'
option sysLocation 'Office 123'
option sysContact 'Mr White'
option sysName 'Backup Access 4'
21.3 com2sec
This section is used to map SNMP community names into an arbitrary security
name. Mapping of community names into security names is done based on the
community name and the source subnet. The first source/community
combination that matches the incoming packet is used.
The options defined for this section are outlined below.
Name Type Required Description
secname string yes Specifies an arbitrary security name for the user.
source string yes
A hostname, localhost or a subnet specified as
a.b.c.d/mask or a.b.c.d/bits.
community string yes The community string being presented in the request.
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,
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 143 of 255