[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Add entry to snmp table
From: |
James Harwood |
Subject: |
Re: [lwip-users] Add entry to snmp table |
Date: |
Wed, 18 Apr 2012 16:24:14 -0700 (PDT) |
Hi Yuriy,
Your mention of the lwip private mib generator makes me suspect that you are
using my MibParser python package.
If so, to illustrate how the table code works, in a very simplistic way, I have
attached a c source code file that fully implements the private mib example
that is included in the MibParser package.
For the exTable, take a look at:
- the test_table_struct at the top of the source code, also the declaration and
initialization of the test_table[] array
- at the bottom of the source code, in the lwip_privmib_init() function where
snmp_mib_node_insert is called twice
- the functions exEntry_get_value() and exEntry_set_value() where the
test_table
is accessed
I hope this helps,
James
----- Original Message ----
> From: Yuriy Kiselev <address@hidden>
> To: address@hidden
> Sent: Fri, April 13, 2012 5:56:15 AM
> Subject: [lwip-users] Add entry to snmp table
>
> Hello!
> I generated my own snmp tree with lwip private mib generator but I was
> not able to add entry in a table. I tried to use
> snmp_mib_node_insert() but it still empty: agent return noSuchName.
> Please can anyone show an example?
>
> MIB: http://pastebin.com/3bNaQynE
> private_mib.c: http://pastebin.com/ENi4pMED // adding node is in
> lwip_privmib_init();
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
prvmib.c
Description: Text document