net-snmp version?

2007-01-09 Thread mahua dutta
Is there any version of the snmp sub agent ? we can configure snmpd to v1/v2/v3. How to check what kind of PDU (v1/v2/v3 ) is sent by subagent? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Fwd: writing a snmpd

2007-01-09 Thread Alef Veld
Hi! Thanks Thomas and Daniel. I'm already on the mailinglist. I also already am using net-snmp and am linking to it in my software. But i just need example source code for a snmpd trap receiver so i can modify it for my own needs. So the link Thomas provided should keep me busy for now :-) Th

Re: Fwd: writing a snmpd

2007-01-09 Thread Thomas Anders
Alef Veld wrote: > In that case, does anyone have any good example code for a > snmpdtrapd ? See apps/snmptrapd.c in the Net-SNMP source. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) - Take Surveys. Earn Ca

Fwd: writing a snmpd

2007-01-09 Thread Alef Veld
> > Hi > i need a snmpd daemon functionality in my code, in the sense that > it can receive traps/informs. > Can i use : http://www.net-snmp.org/tutorial/tutorial-5/toolkit/ > demon/example-demon.c > as an example ? > > Because there seem to be some difference in definitions regarding > snmpd

Windows development environment?

2007-01-09 Thread Daniel Lacey
I would like to compile net-snmp on a windows platform. I have played with the open-source environment cygwin, but would like to go native! I am a *NIX programmer. I do not have a clue what is involved in microsoft development. (OK, I have a clue, but it was a couple years ago playing with OMNI

Re: Legacy code. Can send V1 traps. V2 traps result in "Invalid notification format"

2007-01-09 Thread Kapil Sharma
Thanks Dave. The only other way I can think of is using netsnmp_variable_list instead of netsnmp_pdu and calling snmp_varlist_add_var() instead of snmp_pdu_add_variable(). Do you think that would work? I am not sure if I can simply call the function send_v2trap() to send the notification, bec

RE: HOST-RESOURCES-MIB::hrSWRunParameters - truncation - Solaris 9 - NetSNMP 5.4

2007-01-09 Thread Clinton, John
I appreciate the thorough look into this. I have extended NetSNMP with an "extend" command of "/usr/ucb/ps" which at least gives me the information in the agent. I will modify my poller to extract what I need from it. Thanks guys! John -Original Message- From: [EMAIL PROTECTED] on b

Re: rfc: library layering

2007-01-09 Thread Dave Shield
On 08/01/07, Thomas Anders <[EMAIL PROTECTED]> wrote: > How about the attached patch? Looks good to me. > I must admit that I'm not fully convinced the temporary file handling in > mibgroup/utilities/execute.c:run_shell_command() combined with > make_tempfile/netsnmp_mktemp is safe, but I consid

Re: HOST-RESOURCES-MIB::hrSWRunParameters - truncation - Solaris 9 - NetSNMP 5.4

2007-01-09 Thread Dave Shield
On 08/01/07, Anders Persson <[EMAIL PROTECTED]> wrote: > Unfortunately I do not think that will help, because in both cases you > will get a field that can store at maximum PSARGSZ characters (which is > 80 in OpenSolaris). That doesn't surprise me, really. It was just a thought that the KVM-bas

Re: Legacy code. Can send V1 traps. V2 traps result in "Invalid notification format"

2007-01-09 Thread Dave Shield
On 08/01/07, Kapil Sharma <[EMAIL PROTECTED]> wrote: > I have some legacy code that I worked on a bit, and I am able to get it to > send SNMPv1 traps. I want it to send SNMPv2c traps, and that's not happening > (The SNMP trap receiver gets the varbinds, community string, timestamps and > everything

Net-SNMP 5.3.0.1 Coredump - Linux

2007-01-09 Thread Mark Clinton
I am using Net-SNMP 5.3.0.1 Agent in Master-Subagent architecture. I created a subagent and I ran some tests (a walk of the subagent tree every 60 seconds) twice and both the times, the Master Agent coredumped after around 15-20 hours. Is this a known bug? (My subagent was okay even after the ma