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-10 Thread Graeme Wilson
Hi, If your are running this as a main agent (and I think you are from another email) make sure your config files are set up correctly and in the correct locations (including the persistent file). Are you running as root or a normal user? Presumably the snmpwalk/snmpget request is being

Re: IF-MIB Solaris 9/SPARC

2007-08-10 Thread Anders Persson
Hi Joe, I just tested net-snmp 5.4.1 on a sun4u system running Solaris 9 and it worked for me (I used --with-mib-modules=if-mib --enable-mfd-rewrites). Could you run the agent with '-D access:interface' and email me whatever the output is? Thanks, Anders Joe Gainey wrote: I've seen one

how to write a handler reacting on requests under the registered mib?

2007-08-10 Thread Torben Surmer
Hi to all, I have generated some example code with mib2c -c mib2c.create-dataset.conf NET-SNMP-EXAMPLES-MIB::netSnmpIETFWGTable After compiling a subagent with the code generated by mib2c I assumed that the handler-function would be called when I run a snmpget on a MIB under the registerd

Re: Extend and integers

2007-08-10 Thread Joe Warren-Meeks
On 10 Aug 2007, at 14:34, Dave Shield wrote:] Hey guys, On 10/08/07, Joe Warren-Meeks [EMAIL PROTECTED] wrote: I believe I've implemented this correctly, however snmpwalk still misses it.. Put some debugging code into your script, to save the details of how it

Re: Extend and integers

2007-08-10 Thread Dave Shield
On 10/08/07, Joe Warren-Meeks [EMAIL PROTECTED] wrote: I believe I've implemented this correctly, however snmpwalk still misses it.. Put some debugging code into your script, to save the details of how it was invoked in a file somewhere. Similarly for which branch gets

Re: ERROR: You don't have the SNMP perl module installed.

2007-08-10 Thread Dave Shield
On 10/08/07, sumathy indian [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] usr]# mib2c ERROR: You don't have the SNMP perl module installed. Run 'perl -V' This will display the list of locations that perl will look for modules in. Check whether the file 'SNMP.pm' exists in any of these

Re: sysLog facility while running snmpd

2007-08-10 Thread Joe Warren-Meeks
On 10 Aug 2007, at 12:17, Ansa Ahammed wrote: Hi, While running snmpd , i want to enable sysLog facility. for that what configuration option We have to give. In this command , snmpd -Ls facility what the *facility* means ?? Please give me a comment on this. Facility is a

sysLog facility while running snmpd

2007-08-10 Thread Ansa Ahammed
Hi, While running snmpd , i want to enable sysLog facility. for that what configuration option We have to give. In this command , snmpd -Ls facility what the *facility* means ?? Please give me a comment on this. Regards, -Ansa -- ---

Problem with dynamic row creation and free inside the table.

2007-08-10 Thread Sreenath S
Hi All, In my table implementation, I am creating a row inside the xxx_get_first_data_point function using xxx_createEntry till it reaches the maximum allowed count, as the row creation needs to be dynamic. But I don't know the correct way to free these allocated rows. The function

ERROR: You don't have the SNMP perl module installed.

2007-08-10 Thread sumathy indian
Hello All, We have installed net-snmp and the perl modules for it as per the instructions given in the README and INSTALL files. The installation seemed to be sucessful. --- net-snmp version : 5.4

Re: ERROR: You don't have the SNMP perl module installed.

2007-08-10 Thread Jayanthi Pachaiyappan
Hi sumathy, Pls check if have done the following steps - 1)install snmp perl change to .../net-snmpdirectory/perl/SNMP directory Cmd: perl Makefile.PL Cmd: make Cmd: make test Cmd: make install for installing the perl modules. Regards, Jayanthi P sumathy indian [EMAIL PROTECTED] Sent by:

AIX , NET-SNMP, and the SNMPv2-SMI.txt mib

2007-08-10 Thread Kevin Blackwell
Not sure what's going on, but I keep getting this error. I'm running aix 5.2 and using the iinstalled snmpv3d daemon that comes with aix. I've installed NET-SNMP also. When I so snmpwalk -v 1 -c public localhost .1 It get information, but then it get to this point and reports an error.

Re: Extend and integers

2007-08-10 Thread Joe Warren-Meeks
On 9 Aug 2007, at 20:52, Dave Shield wrote: Hey guys, Your pass script should check how it is being invoked - whether this is part of a GET request (mysql-jbpm-test.sh -g OID), or as part of a GETNEXT request (mysql-jbpm-test.sh -n OID). Similarly, it should check the OID that it is

Re: SNMP logging

2007-08-10 Thread Dave Shield
On 10/08/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there any way how to turn on debugging in the API functions? debug_register_tokens(token); snmp_set_do_debugging(1); Dave - This SF.net email is sponsored

Memory cleanup in dynamic load snmp module.

2007-08-10 Thread Lucian Romi
Hi, folks I tried to write a SNMP .so agent module. I have this scalar C stub from mib2c_scalar.conf. However, in my implementation, I have the need to dynamically allocate and cleanup memories when SNMPD agent program quit. Can you show me how can I register my cleanup function? Thanks!