snmpwalk is sending an exact request when walking a tree

2008-07-03 Thread mn kh
Hi all, I am trying to use a subagent (agentx), and I came across a huge problem which I can't seem to solve. Following is my mib as printed by print_mib function: Children of mmsc(8): JINNY-MMSC-MIB:wret-error(91) type=6 JINNY-MMSC-MIB:wret-ok(90) type=6

Re: Giving Parametres to an snmp-trap

2008-07-03 Thread Murilo Fujita
Hello, Barbieri! First off, can you send a common trap from A to B? Forget the granular control (IP and MAC), do you know how to send traps? I don“t know to work using IP and MAC, but maybe I can help you. Waiting for your answer. Best regards, Fujita Giuseppe Barbieri escrev

Re: Binaries for Solaris 5.5.1. or build advice

2008-07-03 Thread Thomas Anders
stan wrote: > Well, as the saying goes, I have good news, ad have bad nws. The good news > is that the pre release version seems to go a lot further in the build > process. The bad nes is that is dies with a really strnage linker erro, > whic i have no idea what it means. Here's the build results

Re: Binaries for Solaris 5.5.1. or build advice

2008-07-03 Thread stan
Well, as the saying goes, I have good news, ad have bad nws. The good news is that the pre release version seems to go a lot further in the build process. The bad nes is that is dies with a really strnage linker erro, whic i have no idea what it means. Here's the build results: Script started o

Re: Giving Parametres to an snmp-trap

2008-07-03 Thread Dave Shield
2008/7/3 Giuseppe Barbieri <[EMAIL PROTECTED]>: > If I have to send a string using snmp trap v 1 I have to write something > like this: > > snmptrap -v 1 -c public IP-DESTINATION enterprise-oid agent trap-type > specific-type uptime [OID TYPE VALUE] string > > Is it right? No. The fixed elements

Re: Giving Parametres to an snmp-trap

2008-07-03 Thread Giuseppe Barbieri
If I have to send a string using snmp trap v 1 I have to write something like this: snmptrap -v 1 -c public IP-DESTINATION enterprise-oid agent trap-type specific-type uptime [OID TYPE VALUE] string Is it right? Searching I found only tha enterprise-oid is always 6...and the others one? I dont w

Re: Retrieving table from external data (row identification?)

2008-07-03 Thread Victor Palacio
It's solved... :) The correct procedure in my case, is to allocate data context in get_next_data_point(...) so, a skeleton of the _access.c xxx_get_first_data_point() { my_loop_info * loopctx; loopctx = SNMP_ALLOC_MEMORY(my_loop_info); ... //obtain number of rows and/or any other info us

Re: Retrieving table from external data (row identification?)

2008-07-03 Thread Victor Palacio
On Thu, Jul 3, 2008 at 11:13 AM, Dave Shield <[EMAIL PROTECTED]> wrote: > 2008/7/3 Victor Palacio <[EMAIL PROTECTED]>: > > > > I'm trying to use table iterator from code skeleton generated with > > mib2c.iterate.conf. > > > > When I use snmptable on the agent, get_first_data_point function is > >

Re: Giving Parametres to an snmp-trap

2008-07-03 Thread Dave Shield
2008/7/3 Giuseppe Barbieri <[EMAIL PROTECTED]>: > I need a trap sent by A to B, and this trap has to include mac&ip of > just-associated client to A > > How can I do this? Please see the FAQ entry How can I get the agent to include varbinds with an SNMPv1 trap? http://www.net-snmp.org/

Giving Parametres to an snmp-trap

2008-07-03 Thread Giuseppe Barbieri
Hi all I need a trap sent by A to B, and this trap has to include mac&ip of just-associated client to A How can I do this? - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for

Re: Retrieving table from external data (row identification?)

2008-07-03 Thread Dave Shield
2008/7/3 Victor Palacio <[EMAIL PROTECTED]>: > > I'm trying to use table iterator from code skeleton generated with > mib2c.iterate.conf. > > When I use snmptable on the agent, get_first_data_point function is > executed every time one column is consulted, so I suppose I must load > data for consu

Retrieving table from external data (row identification?)

2008-07-03 Thread Victor Palacio
Hello, I'm coding a SNMP Agent which must generate a table with external data from a database. I'm trying to use table iterator from code skeleton generated with mib2c.iterate.conf. When I use snmptable on the agent, get_first_data_point function is executed every time one column is consulted,