Re: Agentx subagent registering

oknets10 <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Isn't the fact that I'm getting a response from the agent, is indicating
that I have the required mapping ?

Anyway, following is the relevant mapping from my snmpd.conf:
rocommunity mas-public
rwcommunity mas-privae
rocommunity sub-public
rwcommunity sub-privae

com2sec mas-Sec-Ro default mas-public
com2sec mas-Sec-Rw default mas-private
com2sec sub-Sec-Ro default sub-public
com2sec sub-Sec-Rw default sub-private

####
# Second, map the security names into group names:
# sec.model sec.name
group mas-Ro-Group v1 mas-Sec-Ro
group mas-Rw-Group v1 mas-Sec-Rw
group sub-Ro-Group v1 sub-Sec-Ro
group sub-Rw-Group v1 sub-Sec-Rw^M

####
# Third, create a view for us to let the groups have rights to:
# incl/excl subtree mask
view all included .1

####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:
# context sec.model sec.level match read write notif
access mas-Ro-Group "" any noauth exact all none none
access mas-Rw-Group "" any noauth exact all all none^M
access sub-Ro-Group sub1 any noauth exact all none none^M
access sub-Rw-Group sub1 any noauth exact all all none^M

Omri


On Wed, Feb 27, 2008 at 5:58 PM, Dave Shield <[email protected]>
wrote:

> On 27/02/2008, oknets10 <[email protected]> wrote:
> > The command was:
> >  snmpget -v 2c -c sub-public 192.168.1.1 sysDescr.0
>
> And have you got anything configured to map the
> community "sub-public" into the context "sub1" ?
>
> Dave
>
> PS: Note that I'm now away for a long weekend, so you'll
>       have to rely on other members of the list for assistance
>       until Monday.
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.