Re: multiple subagent with same set of oid.
Paban Agarwalla <[email protected]> Sun, 24 Apr 2022 22:59:58 +0530
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <CAMf_wv1Y2VmF8YwbwAK=FZco-5BuBBTP8gf4jPAXYm1GsrjW9A@mail.gmail.com> |
Hi Bill, Would you please share the patch? Regards Paban On Sun, Apr 24, 2022 at 10:13 PM Bill Fenner <[email protected]> wrote: > If there's interest, I have a patch that allows communities of the form > "community@context" to be treated by the snmp agent as separate community > and context values, eliminating the need to define each combination as a > valid community, and use com2sec to do the mapping. > > I hadn't upstreamed it previously because it would change the behavior for > anyone who had an "@" in their community string. Obviously giving it a > configuration file entry to turn this behavior on would probably address > that concern. > > Bill > > > On Thu, Apr 21, 2022 at 3:41 PM Wes Hardaker via Net-snmp-coders < > [email protected]> wrote: > >> Paban Agarwalla <[email protected]> writes: >> >> > We are using to Netsnmp to collect statistics from our device. >> > >> > We are registering multiple subagents with the same set of oids. >> > >> > can i get all sub agent statastics using the same oid with v2c/v1 snmp >> > host? >> >> The only way to deal with problems like that is to use SNMPv3 contexts, >> where each context can map to a different subagent with overlapping OID >> registrations. You can make v1/v2c communities to v3 contexts using the >> com2sec configuration tokens if you wish. >> >> -- >> Wes Hardaker >> Please mail all replies to [email protected] >> >> >> _______________________________________________ >> Net-snmp-coders mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders >> > _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders