Re: Agentx subagent registering

oknets10 <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello Dave,

Thanks again for your help.
I have changed the registering of system in system_mib.c as follow:
from:
    REGISTER_MIB("mibII/system", system_variables, variable1,
system_variables_oid);
to:
   register_mib_context( "mibII/system",
                              (struct variable *)system_variables,
sizeof(struct variable1),
                              sizeof(system_variables)/sizeof(struct
variable1),
                              system_variables_oid,
                              sizeof(system_variables_oid)/sizeof(oid),
                              DEFAULT_MIB_PRIORITY, 0, 0, NULL,
                              "sub1", -1, 0);


I have try first to check it in the master agent, and I got the following
response:

SNMPv2-MIB::sysDescr.0 = No Such Object available on this agent at this OID.

Other nodes in the MIB I can get as usual.

Any idea why ?

I hope I don't need to change the registering of all the modules in the MIB.

Omri

>
> On 26/02/2008, oknets10 <[email protected]> wrote:
> > Hello Dave,
> >
> > Thank you for your help.
> > I see in FAQ:codeing 22, how I register a MIB with a non default
> context.
> > Can you direct me how to change the context of the standard MIB2 in the
> > original snmpd ?
>
> You will need to change the code for each MIB module that you want to
> register in this non-standard context.   The FAQ entry describes what
> the registration code should look like.
>
>   Most of these modules are under 'agent/mibgroup/mibII', though
> some of them have been split off into separate directories (again,
> all under 'agent/mibgroup')
>
> 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/

_______________________________________________
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.