Thanks for the conformation.

I have one more question about  access control entries, is there any example 
code to show how it should done? if not? could you please give me some more 
explanation about this access list?

Thanks,

/Masoud

-----Original Message-----

From: "Dave Shield" <[EMAIL PROTECTED]>

To: "Masoud Fatollahy" <[EMAIL PROTECTED]>

Cc: Magnus Fromreide <[EMAIL PROTECTED]>, 
[email protected], [EMAIL PROTECTED]

Date: Tue, 5 Feb 2008 09:48:39 +0000

Subject: Re: overwrite standard mib2/interfaces




On 04/02/2008, Masoud Fatollahy <[EMAIL PROTECTED]> wrote:

> I find out that we could use context field to register the same objects of

> ifTable with our subagent which netsnmp will understand and forward all

> requests to my callback function connected to that context. is it right?



Yes.



> can i register same objects/mibs using different context and handle each

> context with it own callbacks?



Yes.

You could either use distinct handler routines for each context,

or (probably) use a shared handler routine for all the registered

contexts.   It's just a matter of how you write the code.



>              if so? which APIs should i use to create,

> register handles and how can i set the context.



Please see the FAQ entry

    How can I register a MIB module in a different (SNMPv3) context?

        http://www.net-snmp.org/wiki/index.php/FAQ:Coding_22 
[http://www.net-snmp.org/wiki/index.php/FAQ:Coding_22]



Dave



-------------------------------------------------------------------------

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/ 
[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 
[https://lists.sourceforge.net/lists/listinfo/net-snmp-users]
-------------------------------------------------------------------------
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to