no - you do not need to include removeEntry.
________________________________
From: Arazo Camprecios, Marc [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2008 3:32 AM
To: Joan Landry; net-snmp-users@lists.sourceforge.net
Subject: RE: snmptable problem
Thanks for the reply.
I've created the files again with mib2c -c mib2c.table_data.conf and I'm
modifying the code. What have you modified in your code apart from the
Get and Set parts?
Do I have to include the function Table_removeEntry() if Im not planning
to remove any column of the table?
Thanks!
Marc Arazo
________________________________
De: Joan Landry [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 29 de septiembre de 2008 13:45
Para: Arazo Camprecios, Marc; net-snmp-users@lists.sourceforge.net
Asunto: RE: snmptable problem
The only mib2c that I was able to get to work for tables was:
mib2c -c mib2c.table_data.conf
________________________________
From: Arazo Camprecios, Marc [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2008 4:14 AM
To: net-snmp-users@lists.sourceforge.net
Subject: snmptable problem
Hello all,
I've implemented many scalars in my snmp subagent and all of them are
working well, my problem comes with a table:
I've used the mib2c.iterate.conf to generate the table, then I've
compiled the code and afterwards I've executed the subagent I have
create with subagent.m2c. When I try to get or set my table I get "No
such object available at this OID" and when I try with snmptable I get
"was that a table?"
The MIB is loaded, in fact I can get and set the scalars without any
problem.
What do I have to do to get a "good" answer from the table? Thanks!
The MIB code for the table is the following:
-- 1.3.6.1.3.1.1.1.4.4.8
pppBsdcompTable OBJECT-TYPE
SYNTAX SEQUENCE OF PppBsdcompEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"PPP: BSD compression table"
::= { ppp 8 }
-- 1.3.6.1.3.1.1.1.4.4.8.1
pppBsdcompEntry OBJECT-TYPE
SYNTAX PppBsdcompEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"PPP: BSD compression entry"
INDEX { pppBsdcompIndex }
::= { pppBsdcompTable 1 }
PppBsdcompEntry ::=
SEQUENCE {
pppBsdcomp
Integer32,
pppBsdcompIndex
Integer32
}
-- 1.3.6.1.3.1.1.1.4.4.8.1.1
pppBsdcomp OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"PPP: BSD compression"
::= { pppBsdcompEntry 1 }
-- 1.3.6.1.3.1.1.1.4.4.8.1.2
pppBsdcompIndex OBJECT-TYPE
SYNTAX Integer32 (1..2)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"PPP: BSD compression index"
::= { pppBsdcompEntry 2 }
Overture Networks Inc. The information contained in this message is
privileged, confidential, and non-binding and is intended for use by the
intended recipient or entity. All other uses, including distribution to
third parties, are prohibited. Please notify the sender if you have
received this message in error. Thank You, Overture Networks.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users