Never mind. The appropriate thing to do is of course to use
(netsnmp_table_row *) row->data to point to a structure
containing everything I need to keep track of for each row
(including a pointer to the actual row data).
-Vance
---
T
On Thu, May 26, 2005 at 09:00:08AM +0100, Dave Shield wrote:
}
} netsnmp_table_request_info *ti =
} netsnmp_extract_table_info( request );
}
} The field 'ti->indexes' holds a varbind list containing
} the index values from the incoming request.
}
} So if the table was indexed
When should a handler return an error?
It's quite unclear to me when I should return SNMP_ERR_NOERROR
and when I should return something else. The examples demonstrate
setting an error on a specific request and then returning
SNMP_ERR_NOERROR from the handler:
case MODE_SET_RESERVE1:
In the examples for the table_data helper UNDO is accomplished
by having old and new entries in the row data structure:
struct foo_entry {
...
long foo;
long old_foo;
long bar;
long old_bar;
...
};
I'm not in
On Thu, May 26, 2005 at 09:00:08AM +0100, Dave Shield wrote:
}
} (but don't forget to check for null pointers first!)
Speaking of which ...
With the table_data helper can I asume that when my handler
is called for a GET request that it has validated the index?
Is the following test unnecessa
Hi,
Does net-snmp-5.1 support snmp requests using tcp.
If yes, what are the options I need to pass while starting the snmp
daemon.
Thanks
Srini
---
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create
On Thu, 2005-05-12 at 22:37, Bruce Shaw wrote:
> cd . && LC_COLLATE=C autoheader
> configure.in:438: /usr/local/bin/m4: Bad regular expression
> `[[[\(\)]]]': Unmatched ) or \)
Hmmm... I'm not sure what's wrong there - the regular
expression looks to be balanced OK.
You ought to be able
On Thu, 2005-05-26 at 08:15, Juwairia Zubair wrote:
> I. successfully sent the snmptrap with the following command
> snmptrap . 134.202.84.204 42 coldStart.0
You shouldn't add a '.0' here - the OID of the coldStart
notification is
.1.3.6.1.6.3.1.1.5.1
not
.1.3.6.1.6.3.1.1.5
On Thu, 2005-05-26 at 02:38, Vance Shipley wrote:
> I have an existing application for which I would like to embed a
> subagent. There are two tables to implement for which there exist
> data structures in the application.
The table_data helper would certainly work with that arrangement.
> The
On Thu, 2005-05-26 at 00:25, Vance Shipley wrote:
> When a SET
> arrives for an existing row I can extract my row data using:
>
> netsnmp_extract_table_row_data(request);
>
> I take it though that this will return NULL when the row doesn't
>
Hi
I am trying to get snmp version3 traps and informs to work but so far with
no success. Previously I had an application sending snmptraps(version 1)
from linux to snmptrapd running on windows2000. The command I used was
snmptrap v1 c public 134.202.84.204 134.202.84.1 69
systemSc
11 matches
Mail list logo