RE: Configuring a new vacmContextName
"Joan Landry" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <A9FCB77F97940A418A61FD9BB71E4170A1C61D@dexbe012-6.exch012.intermedia.net> |
>>Users don't "have" contexts so much as they "exist in" them. What are
you trying to accomplish here?
My two goals are:
1. I would like to be able to configure a CONTEXT in the snmpd.conf file
and have it show up in the vacmContextTable, when I walk this table.
2. I would like to be able to use this CONTEXT in the following:
com2sec [-Cn CONTEXT] SECNAME SOURCE COMMUNITY
access GROUP CONTEXT {any|v1|v2c|usm} LEVEL PREFX READ WRITE NOTIFY
And have this configuration work so that when I specify the same CONTEXT
on the mibBrowser or when doing a snmpget or snmpset with the same
CONTEXT - it works.
Such as:
snmpget -v 3 -n context1 -l priv -u user3 -a MD5 -A abcdefgh -x DES -X
abcdefgh localhost SNMPv2-MIB::sysContact.0
Currently the only CONTEXT that I am able to get working is the "" empty
default one.
So the difference is that the following configuration works:
(I can access the mib2 objects):
com2sec userc default userc
group groupc usm userc
access groupc "" usm authPriv exact readview writeview none
createUser userc MD5 abcdefgh DES abcdefgh
And this configuration does not work (I can not access the mib2
objects):
com2sec -Cn context1 userc default userc
group groupc usm userc
access groupc context1 usm authPriv exact readview writeview none
createUser userc MD5 abcdefgh DES abcdefgh
The only difference between the two configuration is that I added a
context name of "context1" to the 2nd configuration. Also, the 2nd
configuration did not result in a new vacmContextName being added to the
vacmContextTable.
Thanks,
Joan
-----Original Message-----
From: Mike Ayers [mailto:[email protected]]
Sent: Wednesday, April 09, 2008 8:34 PM
To: Joan Landry; [email protected]
Subject: RE: Configuring a new vacmContextName
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Joan Landry
> Sent: Wednesday, April 09, 2008 1:17 PM
> >>If you are using "com2sec", then this relates to SNMPv1/2.
>
> What should I use for SNMPv3?
>
> I created the following 2 users one has a context name defined the
> other one does not. The one that uses a context name does not work,
> the other one works fine.
Users don't "have" contexts so much as they "exist in" them.
What are you trying to accomplish here?
Thanks,
Mike
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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