_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW2020 Series User Manual
Issue: 2.1
Page 368 of 423
option version 'usm'
option secname 'rw'
36.3.5
View settings
The following example defines two views, one for the entire system and another for only
mib2.
36.3.5.1
View settings using UCI
snmpd.all=view
snmpd.all.viewname=all
snmpd.all.oid=.1
snmpd.mib2=view
snmpd.mib2.viewname=mib2
snmpd.mib2.type=included
snmpd.mib2.oid=.iso.org.dod.Internet.mgmt.mib-2
36.3.5.2
View settings using package options
config 'view' 'all'
option viewname 'all'
option type 'included'
option oid '.1'
config 'view' 'mib2'
option viewname 'mib2'
option type 'included'
option oid '.iso.org.dod.Internet.mgmt.mib-2'
36.3.6
Access settings
The following example shows the “public” group being granted read access on the “all”
view and the “private” group being granted read and write access on the “all” view.
Although it is possible to write some settings using SNMP write permission, it is not
recommended, as any changes to the configuration made through an snmpset command
may conflict with the UCI configuration. In this instance the changes will be overwritten
by other processes and will not persist after a reboot.
36.3.6.1
Access using package options
config 'access' 'public_access'
option group 'public'
option context 'none'
option version 'any'