RE: MIB design query (specifying the range for TC TruthValue)

2007-06-06 Thread Adam Bell
TruthValue already has a meaning, and redefining it is not a good idea. Why don't you just define an INTEGER with a single enumerated value of 1 for the specific MIB in question. Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jayaprakasha Guddenah

linking in external libraries

2007-04-30 Thread Adam Bell
Hi all, I am trying to link in an external library as part of cache loading routines for MIB table_access code. I added configure options for includes and libraries. It appears as the library should be linked into libnetsnmpmibs.so MY_INCLUDE="-O2 -Wall -I/home/abell/Software/app/cfgmon -I/h

RE: how to include "ASN_OBJECT_ID" in a trap with net-snmp

2007-04-20 Thread Adam Bell
I find the simplest way is to 1. Write the notification MIB with the varbinds defined 2. run mib2c with mib2c.notify.conf, this builds the varbind list automatically 3. link the code generated into the snmpd application 4. send the trap from snmpd -Original Message- From: [EMAIL PROTECTE

FW: Writing/building my trap send code

2007-03-28 Thread Adam Bell
appreciated, Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Bell Sent: Thursday, March 08, 2007 10:48 AM To: net-snmp-users@lists.sourceforge.net Subject: Writing/building my trap send code All, I have read through the trap send related FAQs but I

RE: Decrease execute times of get_first_data_point() when getBulk

2007-03-19 Thread Adam Bell
My bad, I missed a '(' in the param list. There is a function call in the parameter list Prototypes match fine. Sorry all Adam -Original Message----- From: Adam Bell Sent: Friday, March 16, 2007 12:49 PM To: Adam Bell; Dave Shield Cc: net-snmp-coders@lists.sourceforge.net S

RE: Decrease execute times of get_first_data_point() when getBulk

2007-03-16 Thread Adam Bell
and found nothing like the second prototype. I am running v5.2.3 net-snmp. Any ideas? Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Bell Sent: Friday, March 16, 2007 9:06 AM To: Dave Shield Cc: net-snmp-coders@lists.sourceforge.net Subject: RE

RE: Decrease execute times of get_first_data_point() when getBulk

2007-03-16 Thread Adam Bell
going to be sent? Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Friday, March 16, 2007 5:51 AM To: Adam Bell Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Decrease execute times of get_first_data_point() when getBulk On

RE: Decrease execute times of get_first_data_point() when getBulk

2007-03-15 Thread Adam Bell
I like the code format of the iterate_access output but the -S cache=1 option does not generate the cache access code as in the iterate option. The only real difference I see in the code is the access code is put into a separate file, with some support routines also. The iterate option is a bit

RE: external application asks agent to send a trap - how to

2007-03-09 Thread Adam Bell
All, I have been looking at the code generated by mib2c for the iterate-access code style and mfd code style. I have chosen the iterate-access style because of the smaller footprint but I would like to have a pre_handler and post_handler similar to what is defined in the MFD style. I assume the b

RE: Decrease execute times of get_first_data_point() when getBulk

2007-03-09 Thread Adam Bell
Have you tried putting a timer on the data load so that when init runs, the table is not fetched again? This is my plan for the tables I must read. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zhang Chuan Sent: Thursday, March 08, 2007 9:26 PM To: net-snmp-coders@list

RE: mib2c generated code and GET_NEXT

2007-03-01 Thread Adam Bell
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Thursday, March 01, 2007 12:25 PM To: Adam Bell Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: mib2c generated code and GET_NEXT On 01/03/07, Adam Bell <[EMAIL PROTECTED]>

mib2c generated code and GET_NEXT

2007-03-01 Thread Adam Bell
I have started using mib2c to generate the stub code for my access routines. I see much commonality in the bulk of the code but I have a couple questions, if anyone could I would appreciate it. 1. Using mib2c -c mib2c.scalar.conf : works like a champ, I have get and set working.

RE: configure options and removing mib modules are causing make f ailures

2007-02-19 Thread Adam Bell
, February 17, 2007 6:18 AM To: Adam Bell Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: configure options and removing mib modules are causing make failures First, have you read http://sourceforge.net/mailarchive/message.php?msg_id=37989423 ? If that isn't enough it would be nice i

configure options and removing mib modules are causing make failures

2007-02-16 Thread Adam Bell
I am trying to integrate net-snmp v 5.4 into a small footprint device under Linux and am having a couple problems. 1. The configure option --enable-mini-agent causes ./.libs/libnetsnmpmibs.so: undefined reference to `initialize_table_ifXTable during make I am trying top make this as small as pos