Re: help: implementing table with multiple indices

2006-11-12 Thread D . T . Shield
> I tried modifying the > code something like this with SNMP_MALLOC_TYPEDEF > method, but still it returns "No Entries" error. Inthat case, you're probably going to try putting some debugging statements into your code, to try and identify exactly what's happening. Things to check ar

Re: where is a sipmle example of setting variable

2006-11-12 Thread D . T . Shield
> could somebody write me where I can find a simple code like > snmpdemoapp.c but where is an example of setting variable? Instead of the call snmp_add_null_var(pdu, anOID, anOID_len); try: snmp_add_var(pdu, anOID, anOID_len, 'i', "100"); for an integer value, or snmp_add_var(pdu,

Re: How can I get a string from any variable in variable_list?

2006-11-12 Thread D . T . Shield
> could somebody help me figure out how can I get a string from > any variable in variable_list? snprint_variable() See mib_api(3) Dave This message was sent using IMP, the Internet Messaging Program. ---

Re: help: implementing table with multiple indices

2006-11-12 Thread D . T . Shield
> I am trying to implement a table with two objects and > three indices. I am just trying to fill the stub > values for testing purpose... > Kindly look at the code and comment whether I am > implementing the "get_first_data_point()" function > correctly or not No - that code looks basicall

5.4.pre3 on Solaris

2006-09-30 Thread D . T . Shield
[Resending, due to mail problems] I noted the comments about problems with the CPU HAL re-write on Solaris kit, and have managed to locate a system where I can have a look at this. However, I'm running into errors compiling the agent - even before it gets as far as this new code. It's loo

Re: Frequent system calls in 5.3.1.pre3

2006-07-07 Thread D . T . Shield
Quoting Robert Story <[EMAIL PROTECTED]>: > Might I suggest using /proc/loadavg as an optimization on > Linux based single cpu systems? Except that this metric is measuring something different - the length of the run queue, not the percentage of time the CPU is active. The two are clearl

Re: Windows oddities

2006-07-02 Thread D . T . Shield
Quoting Alex Burger <[EMAIL PROTECTED]>: > Dave Shield wrote: >> Alex Burger wrote: >> >>> Can you send me a patch so I can test it with MSVC? If it works >>> with MSVC and MinGW and it fixes Cygwin then I see no reason not to >>> apply your changes. >>> >> Attached > > No issues compiling with

Re: udpTable byte order issues (again)

2006-06-23 Thread D . T . Shield
Status report: Testing was incomplete (due to arriving into Manchester before I'd finished!), but results so far are as follows: Linux: udpTable: reported correctly tcpTable: reported correctly FreeBSD: udpTable: IP value reported correctly, index reversed tcpTable: repor

Re: exec error

2006-06-02 Thread D . T . Shield
Quoting "Richard C. Thompson" <[EMAIL PROTECTED]>: > Can anyone tell me why I can't execute a bash script from > net-snmp using the exec command? > Any help would be greatly appreciated Try using the "sh" directive instead. Dave

Re: CVS delay

2006-04-21 Thread D . T . Shield
Quoting Magnus Fromreide <[EMAIL PROTECTED]>: I am curious about how big delay one should expect from the merge of a patch in the net-snmp cvs to such time when it shows up in the public CVS and the web CVS archive. I think 3 weeks delay is a little too long. That's really a question for the So