OPAQUE DOUBLE

2007-10-02 Thread Milan_Tvarozek
Hello All, net snmp clients (snmpwalk and snmpget) understand types OPAQUE_DOUBLE and OPAQUE_FLOAT. However, these are not recognized by HP OpenView and other clients. Does somebody know a workaround? Is the any way how to teach HP OpenView (e.g via MIBs) to correctly interpret OPAQUE_DOUBLE

Re: OPAQUE DOUBLE

2007-10-02 Thread Milan_Tvarozek
Hello Dave, thanks for your confirmation. We were trying to avoid string representation of floats since it is difficult to compare them (e.g. to preset thresholds). We will consider fixed point as you are suggesting. Milan On Tue, October 2, 2007 10:06 am, Dave Shield wrote: On 02/10/2007,

Re: Newbie question: netsnmp_handler_registration_create

2007-09-06 Thread Milan_Tvarozek
Hello Dave, thanks for replying. For some odd reason I did not get your mail on Tuesday. I am desperately trying different settings in snmpd.conf but w/o any success. The current settings are: com2sec paranoid default public com2sec readonly default public com2sec readwrite

Re: Newbie question: netsnmp_handler_registration_create

2007-09-06 Thread Milan_Tvarozek
Hello Dave, thanks for your prompt reply. I will use rocommunity public but what about view and access ? MIlan On Thu, September 6, 2007 12:08 pm, Dave Shield wrote: On 06/09/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am desperately trying different settings in snmpd.conf but w/o

RE: Newbie question: netsnmp_handler_registration_create

2007-09-06 Thread Milan_Tvarozek
Hello Mike, the reason for the fact that 1.3.6.1.4.x requests were not passed from the master agent to the subagent was default (=incorrect in this case) access configuration of snmpd.conf. After replacing default with rocommunity public default .1 things started to work fine. Previously, I

Newbie question: netsnmp_handler_registration_create

2007-09-05 Thread Milan_Tvarozek
Hello guys, I am struggling with netsnmp_handler_registration_create. I am able to register handlers for some OIDs and I receive requests in the handler. E.g. when I register for .1.3.6 I receive request for 1.3.6.1.2.1.1.9.1.5. When I register for 1.3.6.1.4 or 1.3.6.1.4.x.y the requests are

Requests not passed to the handler

2007-09-04 Thread Milan_Tvarozek
Hello all, I am experiencing a strange problem. I have written a simple common handler for MOD_GET a MOD_GETNEXT. The handler seems to work fine but certain SNMP requests are not passed to the handler. Example: snmpget -v 1 -c public localhost .1.3.6.1.2.1.1.1.1is passed. snmpget -v 1 -c

RE: SNMP logging

2007-08-10 Thread Milan_Tvarozek
Hello Bruce, I am writing a main agent so I am not running snmpd at all since it would conflict with my agent. Is there any way how to turn on debugging in the API functions? I worked with several logging systems and all of them had some kind of set_log_level function for filtering of

RE: Newbie question: writing a simple agent

2007-08-09 Thread Milan_Tvarozek
Hello Graeme, sorry for bothering you again. I have tried to merge your code with MFD code. I am obviously doing something wrong. When I run snmpwalk on the agent I can see that agent_check_and_process(1) in the main loop finishes but the handler does not get called. I get error message from

RE: Newbie question: writing a simple agent

2007-08-09 Thread Milan_Tvarozek
Hello Graeme, thanks for your prompt reply. netsnmp_register_handler( reg ) is hidden in printf(returned=%d\n, netsnmp_register_handler(reg)); I tried it before without printf and it was doing the same thing. I have no other handlers and no other agents started. I considered switching snmp

SNMP logging

2007-08-09 Thread Milan_Tvarozek
Hello all, I am wondering, does somebody know how to set snmp logging level/priority in C code? I went through the docs and found only functions for directing logging output (such as snmp_enable_stderrlog()). I would like to turn on the DEBUG level to get all the API messages. I do NOT mean

RE: Newbie question: writing a simple agent

2007-08-09 Thread Milan_Tvarozek
Hello, I tried even a specific OID. I am using snmpwalk on localhost with .1.3.6. I hope this should generate some requests that could be passed to the handler function. On the agent side I am getting Connection from UDP: [127.0.0.1]:-32767 On the snmpwalk side I am getting request timeout.

RE: Newbie question: writing a simple agent

2007-08-08 Thread Milan_Tvarozek
Hello Graeme, thanks for your reply. I will try your code. It seems it might be close to what I need. Have a nice day. Milan On Wed, August 8, 2007 11:11 am, Graeme Wilson wrote: Hi, I have done something similar recently (I provide some sample code below - but note that ultimately

RE: Newbie question: writing a simple agent

2007-08-08 Thread Milan_Tvarozek
Hello Graeme, I went through your code and it seems it is exactly what I need. I am just confused about one thing: how does it plug into snmpd? I understand that I need to do in agent main() registration (and un-registration at agent finish) but what do I actually generate? Should I create a

RE: Newbie question: writing a simple agent

2007-08-07 Thread Milan_Tvarozek
Hello Mike, thanks for replying to my question. I understand that a standard approach is to register the agent for a range of OISs and to let the agent to be OID aware while the other process should take care of the underlaying data. However, I was asked to write an agent that would NOT be

[no subject]

2007-08-06 Thread Milan_Tvarozek
Hello, I intend to write a simple Net-SNMP agent that would get data from another process using Inter-process procedure call. The ideas is as follows: the agent would receive from the SNMP daemon requests for a given range of OIDs (a sub-tree) pass them to the other process. The other process