On 19/10/2007, Andreas Mueller <[EMAIL PROTECTED]> wrote: > Must I send no context (no NON_DEFAULT_CONTEXT flag) > or must I send a context of length 0 (or is this the same).
Not sure - it's probably the same. But the safest would be to clear the NON_DEFAULT_CONTEXT flag. > (With my tests against JAgentX, I first tried with no context and > this did not work, and it always answered with "public" context. > So I changed it to "public" and it worked.) You'd have to take this up with the JAgentX people. > I can specify a read and write community in my MIB browser. > If I keep it empty, it will automatically send "public". Is context and > community the same or are these different things? No - context and community are different things. The idea of "context" was introduced with the SNMPv3 framework, and is purely concerned with distinguishing between parallel collections (possibly overlapping) of MIB objects. This is completely separate to the authentication information used to decide whether or not to act on a particular request. The role of the "community string" is somewhat less clear. The original description was similar to the later concept of "context", but it very quickly came to be seen as a simple form of password (i.e. an authentication mechanism). This is perhaps why the JAgentX people have come to use the community as the context as well. It's certainly possible to map a community string into a particular (non default) context. If you look at the snmpCommunityTable (defined in the SNMP-COMMUNITY-MIB), this maps between a community string and a (securityName, context) pair. And strictly speaking, "context" should always be a (string, OID) pair as well. But that's probably less important here. You need to check the documentation for the master agent that you're using, to see how it handles community<->v3-security mappings. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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
