FW: Re: how can i get the index of a mib by using any snmp api.c

2006-03-03 Thread elias bou rahal



Hi Dave,

 i am thankfull for ur aid and i ask u if u can send me an example of code 
c as attachement that can be parse a mib with index and than register the 
indexes in the snmp agent using v5.

 thank you very much

Best Regards

  Elias





From: Dave Shield [EMAIL PROTECTED]
To: elias bou rahal [EMAIL PROTECTED]
CC: net-snmp-users@lists.sourceforge.net
Subject: Re: how can i get the index of a mib by using any snmp api.c
Date: Thu, 02 Mar 2006 14:40:08 +

On Fri, 2006-02-03 at 13:30 +, elias bou rahal wrote:
 i need to know which function i have to call for getting
 the indexes of a mib .

Can you give a bit more detail about exactly what you mean?
Are you talking about the indexes used when registering the
MIB table (within the init_xxx routine), or the indexes used
when processing requests (within the xxx_handler routine) ?

Dave





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: FW: Re: how can i get the index of a mib by using any snmp api.c

2006-03-03 Thread Dave Shield
On Fri, 2006-03-03 at 13:03 +, elias bou rahal wrote:
 i ask u if u can send me an example of code 
 c as attachement that can be parse a mib with
 index and than register the 
 indexes in the snmp agent using v5.

There are various examples of MIB modules implemented
using the v5 API distributed with the Net-SNMP agent
source code.   Have a look in 'mibgroup/agent' for
two or three examples.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: how can i get the index of a mib by using any snmp api.c

2006-03-02 Thread Dave Shield
On Fri, 2006-02-03 at 13:30 +, elias bou rahal wrote:
 i need to know which function i have to call for getting
 the indexes of a mib .

Can you give a bit more detail about exactly what you mean?
Are you talking about the indexes used when registering the
MIB table (within the init_xxx routine), or the indexes used
when processing requests (within the xxx_handler routine) ?

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: FW: Re: how can i get the index of a mib by using any snmp api.c

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 15:56 +, elias bou rahal wrote:
 i am talking about the indexes used when registering the MIB table

OK.
Then you should provide this information manually (by looking
at the MIB file yourself).  The agent doesn't actually need the
MIB file at all, so it doesn't rely on looking up the syntax of
the table - that's part of the static design and ends up hardcoded
into the MIB implementation.

If you look at the code for some of the existing tables, you'll
see that they specify the syntax of the indexes as part of the
initialisation routine.  You should do the same.

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


FW: Re: how can i get the index of a mib by using any snmp api.c

2006-03-02 Thread elias bou rahal
i am talking about the indexes used when registering the MIB table ( within 
the init_xxx routing)

In other word:
 when i call init_mib for parsing all new mibs , through this process i 
need to read the indexes in each table in thie mibs and this is the aim 
which i talking about.



From: Dave Shield [EMAIL PROTECTED]
To: elias bou rahal [EMAIL PROTECTED]
CC: net-snmp-users@lists.sourceforge.net
Subject: Re: how can i get the index of a mib by using any snmp api.c
Date: Thu, 02 Mar 2006 14:40:08 +

On Fri, 2006-02-03 at 13:30 +, elias bou rahal wrote:
 i need to know which function i have to call for getting
 the indexes of a mib .

Can you give a bit more detail about exactly what you mean?
Are you talking about the indexes used when registering the
MIB table (within the init_xxx routine), or the indexes used
when processing requests (within the xxx_handler routine) ?

Dave





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users