lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Add entry to snmp table


From: vincent cui
Subject: Re: [lwip-users] Add entry to snmp table
Date: Wed, 18 Apr 2012 23:26:11 +0000

Hi :
The private code is good enough and easy to digest . 
I have added my company private code to it . and MIB file is complex . but I 
realize GET/SET/TRAP.. 

Vincent Cui
Software Engineer Leader
Mobile: +8613255150315
Tel: +86 21 34612525x6104
Fax: +86 21 34619770
E-Mail: address@hidden
Shanghai EnLogic Electric Technology Co., Ltd.
Address: 1104-1106, Building A, No.391, Guiping Road, Xuhui District, Shanghai, 
200233
 


-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of James Harwood
Sent: 2012年4月19日 7:24
To: Mailing list for lwIP users
Subject: Re: [lwip-users] Add entry to snmp table

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
> 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]