--- snmpd.conf~ 2003-11-28 16:25:40.000000000 +0800 +++ snmpd.conf 2003-12-01 11:47:49.000000000 +0800 @@ -39,13 +39,16 @@ # sec.name source community com2sec notConfigUser default public +com2sec RWUser default private #### # Second, map the security name into a group name: # groupName securityModel securityName -group notConfigGroup v1 notConfigUser +group notConfigGroup v1 notConfigUser group notConfigGroup v2c notConfigUser +group RWGroup v1 RWUser +group RWGroup v2c RWUser #### # Third, create a view for us to let the group have rights to: @@ -54,12 +57,15 @@ # name incl/excl subtree mask(optional) view systemview included .1.3.6.1.2.1.1 view systemview included .1.3.6.1.2.1.25.1.1 +view all included .1 #### # Finally, grant the group read-only access to the systemview view. # group context sec.model sec.level prefix read write notif -access notConfigGroup "" any noauth exact systemview none none +#access notConfigGroup "" any noauth exact systemview none none +access notConfigGroup "" any noauth exact all none none +access RWGroup "" any noauth exact all all all # -----------------------------------------------------------------------------