Re: Problems on a double indexed table

2007-12-06 Thread Magnus Fromreide
On tor, 2007-12-06 at 17:05 +0100, [EMAIL PROTECTED] wrote: > Hi, > I am a novice in net-snmp. > I have a problem in a table with the following attributes: > ifIndex: foreign key (ifTable) > MacAddress: primary key. > other attributes... > I have generated the source code with mib2c command in MFD

Problems on a double indexed table

2007-12-06 Thread [EMAIL PROTECTED]
Hi, I am a novice in net-snmp. I have a problem in a table with the following attributes: ifIndex: foreign key (ifTable) MacAddress: primary key. other attributes... I have generated the source code with mib2c command in MFD mode. I have tryed to put the table data in a two dimensional array in the

Re: Extends the agent: pass, dlmod, AgentX?

2007-12-06 Thread Dave Shield
On 06/12/2007, Giuseppe Modugno <[EMAIL PROTECTED]> wrote: > So the question is: what are the main advantages to use dlmod or AgentX > approach against the external stand-alone application that reads from command > line parameters and writes to standard output? Three main advantages: a) The "

Extends the agent: pass, dlmod, AgentX?

2007-12-06 Thread Giuseppe Modugno
I'm going to extend the Net-SNMP agent version 5.2.1.2 running on an embedded hardware (ARM9 processor) with a private enterprise MIB subtree. I read the documentations (tutorials, man pages and so on) on the web site, but I can't dedice between pass, dlmod and perhaps AgentX. I'll write the sub

Re: manipulating trasinks internally

2007-12-06 Thread Leonardo Pereira Santos
Dave: Yes, thanks, remove_trap_session() will do the trick, provided that I store the sesp pointer from sink ( global ) right after I call create_trap_session(). But remove_trap_session() won't call snmp_close() ( but will free the sink pointer ). Won't this lead to a memory leak ? I me

Re: GET-RESPONSE with multiple OID

2007-12-06 Thread Dave Shield
On 05/12/2007, Baltazar Francois <[EMAIL PROTECTED]> wrote: > I want to know if exists a way to sent a GET-RESPONSE to a manager with > multiple OIDs in a PDU. Yes - just specify the list of OIDs on the command line. This is a perfectly normal way of using the GET request. Dave

Re: manipulating trasinks internally

2007-12-06 Thread Dave Shield
On 05/12/2007, Leonardo Pereira Santos <[EMAIL PROTECTED]> wrote: > I need to manipulate ( add/remove ) a trapsink from within the agent itself. > I'm using the create_trap_session function, and it works fine, the specified > host gets the traps. I can't figure out how to remove this sink when I do