Re: symbol _send_OBSOLETE_ unresolved

2008-02-18 Thread Humpolicek
Well, the first step would be to tell us what these changes are :-) If you could post a patch containing the necessary changes, we can look at applying them to the appropriate code branches. Diff of my changes is in attachement. It contains simple replacement of send(*, *, *, *) with

Re: symbol _send_OBSOLETE_ unresolved

2008-02-18 Thread Thomas Anders
Humpolicek wrote: Diff of my changes is in attachement. It contains simple replacement of send(*, *, *, *) with sendto(*, *, *, *, NULL, 0) and recv(*, *, *, *) with recfrom(*, *, *, *, NULL, 0) in all net-snmp sources. Please submit to http://www.net-snmp.org/patches as a unified diff (GNU

Re: net-snmp 5.3.0.1 agentx community - context

2008-02-18 Thread Dave Shield
On 18/02/2008, Omri Kaplun [EMAIL PROTECTED] wrote: I wanted to know, if I can with an agentx master agent handle both SNMPv1 SNMPv2 community string and SNMPv3 context id. Yes. The Net-SNMP agent can handle both community-based and SNMPv3 requests, including requests with non-default

Re :Re: Agent Subagent connection status

2008-02-18 Thread girish
Thanks for the reply Dave.Why I'm asking for this is I need to set some flag in my subagent code when ever master goes down. Once master comes up I need to reset that flag so that my subagent will not receive any notifications untill master has came up. On Mon, 18 Feb 2008 09:33:51 + Dave

RE: AgentX as Windows Service

2008-02-18 Thread Rotem Tzuk
Thanks Dave This works for the primary agent but I want my subagent to be a service as well. I wrote the subAgent based on the net-snmp sample. Running it with -register did not do the work. I can probably add my own code to make the subAgent a service but I wanted to know if it already has

Re: AgentX as Windows Service

2008-02-18 Thread Dave Shield
On 18/02/2008, Rotem Tzuk [EMAIL PROTECTED] wrote: This works for the primary agent but I want my subagent to be a service as well. I wrote the subAgent based on the net-snmp sample. Try using the main agent framework, rather than the cut-down subagent driver. This will run as a subagent if

RE: AgentX as Windows Service

2008-02-18 Thread Rotem Tzuk
Will do that Thanks again, Rotem -Original Message- From: [EMAIL PROTECTED] on behalf of Dave Shield Sent: ב 18/02/2008 05:40 To: Rotem Tzuk Cc: net-snmp-users@lists.sourceforge.net Subject: Re: AgentX as Windows Service

Re :Re :Re: Agent Subagent connection status

2008-02-18 Thread girish
So, cant I inform my subagent by any means that master has gone down and u stop receiving the informs from other module and not to forward to master???On 18 Feb 2008 09:36:34 - girish wrote Thanks for the reply Dave.Why I'm asking for this is I need to set some flag in my subagent code

Re: Re :Re :Re: Agent Subagent connection status

2008-02-18 Thread Dave Shield
On 18 Feb 2008 11:19:15 -, girish [EMAIL PROTECTED] wrote: So, cant I inform my subagent by any means that master has gone down and u stop receiving the informs from other module and not to forward to master??? One option would be to add something to the routine agentx_reopen_session

Re :Re: Re :Re :Re: Agent Subagent connection status

2008-02-18 Thread girish
thanks for the suggestion. will try itand one more thing is i'm using agent_check_and_process which i missed mentioning in the earlier mail:while(1)nbsp;nbsp;nbsp; {nbsp;nbsp;nbsp; nbsp; nbsp; agent_check_and_process(1);/*0 = don't block*/nbsp;nbsp;nbsp;nbsp; }nbsp;nbsp;nbsp;

Re: How to send a mail if trapsnmpd is not responding

2008-02-18 Thread Dave Shield
On 18/02/2008, Vishal N [EMAIL PROTECTED] wrote: I want to send a mail if trapsnmpd is not responding. Not responding to who? The agent, or something else? Responding to traps or informs, or what? It is not possible to do this for traps, since the application generating a trap has no idea

SNMP Trap with same time stamp to different destinations - when sent simultaneously

2008-02-18 Thread Raghavendra Prasad
Hi everybody, I have a requirement to send same trap to two different Network Management Devices(NMS) simultaneosly under one condition - these traps recieved at two different NMS should have the same time stamp. This question arises because there are two possibilities: (1) The trap time stamp

snmpv3 authorization error

2008-02-18 Thread Steve McCarthy
Hi, I have been trying to set up a snmpV3 user configuration. So a question you have no doubt been asked millions of times before. I have added snmp master agent code to my embedded code, so I have not extended the snmp agent, nor am I using agentx. I run init_agent, my MIB inits,

Re: SNMP Trap with same time stamp to different destinations - when sent simultaneously

2008-02-18 Thread Dave Shield
On 18/02/2008, Raghavendra Prasad [EMAIL PROTECTED] wrote: (1) The trap time stamp is time of recieving of trap at NMS by the traphandler (2) The trap time stamp is time of sending of trap by SNMP agent Please tell me which of the above two correctly describes time stamp of a trap. The

Re: How to send a mail if trapsnmpd is not responding

2008-02-18 Thread Vishal N
OK, thanks Dave. On Feb 18, 2008 5:50 PM, Dave Shield [EMAIL PROTECTED] wrote: On 18/02/2008, Vishal N [EMAIL PROTECTED] wrote: I want to send a mail if trapsnmpd is not responding. Not responding to who? The agent, or something else? Responding to traps or informs, or what? It is not

Re: snmpv3 authorization error

2008-02-18 Thread Dave Shield
On 18/02/2008, Steve McCarthy [EMAIL PROTECTED] wrote: I then added rwuser steve1 noauth and rwuser steve3 auth to my snmpd.conf file that also had rocommunity and rwcommunity settings. I then added createUser stevev1 and createUser stevev3 MD5 my_password DES to my persistent snmpd.conf file.

Re: SNMP Trap with same time stamp to different destinations - when sent simultaneously

2008-02-18 Thread Raghavendra Prasad
Thank you Dave. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___

extend script to gather host data

2008-02-18 Thread Joey Officer
I'm attempting to add a script to be called from SNMPd, but I'm looking for some additional information. I've written a script that currently outputs data as follows: [EMAIL PROTECTED] ~/bin $ ./var-snmp.sh agetty app1:agetty pid: 7182 cpu: 0.0 mem: 0.0 totalmem: 16314328 app2:agetty pid:

Re: extend script to gather host data

2008-02-18 Thread Dave Shield
On 18/02/2008, Joey Officer [EMAIL PROTECTED] wrote: I know I need to if this is the best way to provide output, and whether or not I should include the individual field name within the result (ie cpu: 0.0 or just 0.0 ). That's up to you. What are you going to do with the output? If

Re: extend script to gather host data

2008-02-18 Thread Joey Officer
Dave Shield wrote: On 18/02/2008, Joey Officer [EMAIL PROTECTED] wrote: I know I need to if this is the best way to provide output, and whether or not I should include the individual field name within the result (ie cpu: 0.0 or just 0.0 ). That's up to you. What are you going

Re: is it possible to set the community from a subagent

2008-02-18 Thread Dave Shield
On 18/02/2008, William Hegardt [EMAIL PROTECTED] wrote: I'm using V5.3.1 and trying to get the read and read-write community string from an AgentX subagent. It's not clear exactly what you are trying to do, but AgentX doesn't work that way, The Access Control checks are applied by the

SMUX not registering with FreeRadius 1.1.7 and SNMP 5.1.2 after radiusd -X

2008-02-18 Thread shrinivas alageri
Hello I wanted to integrate SMUX aith FreeRadius with above version. Tried the steps 1)Compiling FreeRadius with snmp option 2. modified the freeradius snmp.conf file to include smux_password = verysecret 2. modified the radiusd.conf file with snmp = yes $INCLUDE

Re: SMUX not registering with FreeRadius 1.1.7 and SNMP 5.1.2 after radiusd -X

2008-02-18 Thread Dave Shield
On 18/02/2008, shrinivas alageri [EMAIL PROTECTED] wrote: I wanted to integrate SMUX aith FreeRadius with above version. A couple of things to note: - the 5.1.x line is very old and is no longer being supported - the SMUX implementation is also very old, and none of the current

Re: is it possible to set the community from a subagent

2008-02-18 Thread William Hegardt
On Feb 18, 2008 1:49 PM, Dave Shield wrote: On 18/02/2008, William Hegardt wrote: I'm using V5.3.1 and trying to get the read and read-write community string from an AgentX subagent. It's not clear exactly what you are trying to do, but AgentX doesn't work that way, The Access

Fwd: Re: SMUX not registering with FreeRadius 1.1.7 and SNMP 5.1.2 after radiusd -X

2008-02-18 Thread shrinivas alageri
Thanks Thomas, I would try and get back to you on this. Shrinivas Thomas Anders [EMAIL PROTECTED] wrote: Date: Mon, 18 Feb 2008 23:32:21 +0100 From: Thomas Anders [EMAIL PROTECTED] To: shrinivas alageri [EMAIL PROTECTED] CC: net-snmp-users@lists.sourceforge.net Subject: Re: SMUX

Re: SMUX not registering with FreeRadius 1.1.7 and SNMP 5.1.2 after radiusd -X

2008-02-18 Thread Thomas Anders
shrinivas alageri wrote: I wanted to integrate SMUX aith FreeRadius with above version. There were known bugs with the SMUX interaction between earlier net-snmp versions and FreeRADIUS. Please update to a recent net-snmp version, *at least* 5.1.4. +Thomas

Re: is it possible to set the community from a subagent

2008-02-18 Thread Dave Shield
On 18/02/2008, William Hegardt [EMAIL PROTECTED] wrote: What are you actually trying to do? My subagent needs to be able to configure the community settings for the master agent. Rather than modify snmpd.conf, I was looking for an API that would let me change this from the subagent. Sorry

[no subject]

2008-02-18 Thread yogesh marathe
difference between snmpd and SNMP agent??? please tell me soon- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.

How to create Trap?

2008-02-18 Thread SJayaram kalam
Hello all, I need to create trap that inform the manager that device IP and SSID is changed. How can I create trap ? can I add any MIB variable corresponding to trap. How the trao identified automatically at NMS side (network manager side). If possible, give me examples please. thank you.