Random engineID on platforms with 64bit time_t is longer.

2012-12-13 Thread Schmoll Walter
On systems with 32 bit time_t the engineID produced in setup_engineID (snmpv3.c) with ENGINEID_TYPE_NETSNMP_RND is 13 bytes long. Systems with a time_t, that is 64 bits wide, will produce an engineID with a length of 17 bytes. The additional 4 bytes are all 0 and will be for approx. the next 90

Re: Dependency of StorageType on EngineID ???

2011-02-27 Thread Wes Hardaker
> On Fri, 25 Feb 2011 19:46:37 +0530, Manjit > said: M> What is the purpose for a permanent row, is it to have a just backup or M> the snmp application should M> start using these backup data ?? Net-SNMP only has rows that are created via incoming SETs marked as "non-volatile". Any ot

Re: Dependency of StorageType on EngineID ???

2011-02-25 Thread Manjit
also changing the > M> SnmpEngineID. > > Means you're going to completely lose the point of having the row > persistent in the first place. If the EngineID is always changing then > the old users will not be useful so there is really no point in keeping > them arou

Re: Dependency of StorageType on EngineID ???

2011-02-22 Thread Wes Hardaker
hanging the M> SnmpEngineID. Means you're going to completely lose the point of having the row persistent in the first place. If the EngineID is always changing then the old users will not be useful so there is really no point in keeping them around in the first place! Why are you genera

Dependency of StorageType on EngineID ???

2011-02-20 Thread Manjit
EngineProperty will be new.( A new EngineID and a EngineBoot = 0 ) My question : Is the Permanent value of usmUserTable row have any dependency on EngineID. Or is it like the backup of usmUserTable row should be taken only in the case when the engine will have the same engineID and EngineBoot will

Re: CFV: v3 trap/engineID fix

2010-12-10 Thread Dave Shield
On 10 December 2010 05:24, Wes Hardaker wrote: > This is cleaner and clearer so I'm fine with > applying it for 5.6.1. +1 Dave -- ___ Net-snmp-coders mailing list Net-snmp-cod

Re: CFV: v3 trap/engineID fix

2010-12-10 Thread Niels Baggesen
On Thu, Dec 09, 2010 at 09:24:36PM -0800, Wes Hardaker wrote: > This is cleaner and clearer so I'm fine with > applying it for 5.6.1. +1 /Niels -- Niels Baggesen - @home - Århus - Denmark - [email protected] The purpose of computing is insight, not numbers --- R W Hamming

CFV: v3 trap/engineID fix

2010-12-09 Thread Wes Hardaker
usm.c +++ b/net-snmp/snmplib/snmpusm.c @@ -3127,7 +3127,11 @@ usm_get_user_from_list(u_char * engineID, size_t engineIDLen, memcmp(ptr->engineID, engineID, engineIDLen) == 0))) return ptr; DEBUGMSGTL(("usm", "no match on engineID ("))

Re: Configure engineID in snmptrapd.conf without restarting snmptrapd service

2010-05-27 Thread Wes Hardaker
>>>>> On Thu, 27 May 2010 10:54:25 +0530, Tony Thomas >>>>> said: TT> [Tony] Did you mean use a known engineID for subagent? The system TT> has many elements, each containing a subagent. As a solution to this TT> problem, I tried to use a known common eng

Re: Configure engineID in snmptrapd.conf without restarting snmptrapd service

2010-05-26 Thread Tony Thomas
ement to use an explicitly specified engineID << when sending traps, and configure snmptrapd with users that << also specify the same engineID. [Tony] Did you mean use a known engineID for subagent? The system has many elements, each containing a subagent. As a solution to

Re: Configure engineID in snmptrapd.conf without restarting snmptrapd service

2010-05-26 Thread Wes Hardaker
>>>>> On Wed, 26 May 2010 16:14:19 +0530, Tony Thomas >>>>> said: TT> As per system requirements, the new element must be added to system TT> without user intervention (not possible to manually configure the TT> engineID in master element). Dave's

Re: Configure engineID in snmptrapd.conf without restarting snmptrapd service

2010-05-26 Thread Dave Shield
On 26 May 2010 11:44, Tony Thomas wrote: > In my system, when a new element is added to the network, the subagent in it > sends a notification (V3 trap) to the master agent in the network using its > unique engineID. As per the tutorial, I understand that the snmptrapd.conf > sho

Configure engineID in snmptrapd.conf without restarting snmptrapd service

2010-05-26 Thread Tony Thomas
- user details with engineID details should be configured in snmptrapd.conf to receive SNMP v3 trap. In my system, when a new element is added to the network, the subagent in it sends a notification (V3 trap) to the master agent in the network using its unique engineID. As per the tutorial, I

Re: question about the engineid

2009-04-15 Thread Wes Hardaker
>>>>> On Wed, 15 Apr 2009 13:32:37 +0800, Kang Chen >>>>> said: KC> When I want to receive a v3 trap using snmptrapd, I must assign the same KC> engineid both in snmpd.conf and snmptrapd.conf. KC> But, if I use MG-SOFT mibbrowser to receive the v3 trap, I

question about the engineid

2009-04-14 Thread Kang Chen
Hi, Dave I find a difference between the snmptrapd and the third party tools like MG-SOFT mibbrowser. When I want to receive a v3 trap using snmptrapd, I must assign the same engineid both in snmpd.conf and snmptrapd.conf. But, if I use MG-SOFT mibbrowser to receive the v3 trap, I need not

Re: A config file command for specifying an exact engineID

2008-01-20 Thread Nathan Schrenk
On Jan 20, 2008 12:42 PM, Thomas Anders <[EMAIL PROTECTED]> wrote: > My gut feeling would be to extend the existing engineIDType/engineID > functionality to cover that, i.e. to introduce a new engine ID type 4 > (raw). > > Whatever way you prefer, please submit your

Re: A config file command for specifying an exact engineID

2008-01-20 Thread Thomas Anders
-SNMP release? My gut feeling would be to extend the existing engineIDType/engineID functionality to cover that, i.e. to introduce a new engine ID type 4 (raw). Whatever way you prefer, please submit your final patch to http://www.net-snmp.org/patches so it won

Re: A config file command for specifying an exact engineID

2008-01-18 Thread Nathan Schrenk
On Jan 18, 2008 3:45 PM, Dave Shield <[EMAIL PROTECTED]> wrote: > On 18/01/2008, Nathan Schrenk <[EMAIL PROTECTED]> wrote: > >there is no way to > > specify the engineID exactly. I'd like to be able to configure the > engineID

Re: A config file command for specifying an exact engineID

2008-01-18 Thread Dave Shield
On 18/01/2008, Nathan Schrenk <[EMAIL PROTECTED]> wrote: >there is no way to > specify the engineID exactly. I'd like to be able to configure the engineID > using a command that just takes the hex-encoded raw engineID, similar to the > oldE

A config file command for specifying an exact engineID

2008-01-18 Thread Nathan Schrenk
Hi, I'm working on a project to include an SNMP agent based on NET-SNMP's snmpd in an ethernet switch. The switch's command-line interface provides the ability to specify the SNMP agent's engineID. This is somewhat problematic with NET-SNMP (at least as of version 5.4.1) bec

RE: Asynchronous EngineID discovery

2007-05-14 Thread Passera Pablo-APP015
with each potential notification generator. Actually, when the agent reads the trapsess token in the config file it creates a session for that specific manager. If the trapsess token is indicating that the manager will receive informs, the agent discovers the manager's engineID. It does that synchron

Re: Asynchronous EngineID discovery

2007-05-11 Thread David T. Perkins
wrote: >> There are two scenarios, that I am thinking, when the agent can trigger >> a discovery. >> >> 1) When the session is opened. >> 2) When an inform is about to be sent and the session engineID is NULL. >> >> For the first option, to make the discover

Re: Asynchronous EngineID discovery

2007-05-11 Thread Dave Shield
On 09/05/07, Passera Pablo-APP015 <[EMAIL PROTECTED]> wrote: > There are two scenarios, that I am thinking, when the agent can trigger > a discovery. > > 1) When the session is opened. > 2) When an inform is about to be sent and the session engineID is NULL. > > For th

Re: Asynchronous EngineID discovery

2007-05-11 Thread Robert Story
On Wed, 9 May 2007 11:33:04 -0400 Passera wrote: PPA> There are two scenarios, that I am thinking, when the agent can trigger PPA> a discovery. PPA> PPA> 1) When the session is opened. PPA> 2) When an inform is about to be sent and the session engineID is NULL. PPA> PPA> For

RE: Asynchronous EngineID discovery

2007-05-09 Thread Passera Pablo-APP015
Dave, thanks for your answer. There are two scenarios, that I am thinking, when the agent can trigger a discovery. 1) When the session is opened. 2) When an inform is about to be sent and the session engineID is NULL. For the first option, to make the discovery asynchronously does not seems to

Re: Asynchronous EngineID discovery

2007-05-09 Thread Dave Shield
On 08/05/07, Passera Pablo-APP015 <[EMAIL PROTECTED]> wrote: > Did someone try to modify the code to do engineID discovery > asynchronously? Not so far. Be our guest > Is there a some reason why the discovery is being done synchronously? a) It's a lot eas

Asynchronous EngineID discovery

2007-05-08 Thread Passera Pablo-APP015
receive requests from any other sessions (like port 161). Did someone try to modify the code to do engineID discovery asynchronously? Is there a some reason why the discovery is being done synchronously? Thanks in advance, Pablo

RE: Disabling engineID Probe for Informs

2007-05-07 Thread Makavy, Erez (Erez)
TECTED] On Behalf Of Dave Shield Sent: Tuesday, February 27, 2007 1:28 AM To: Makavy, Erez (Erez) Cc: Wes Hardaker; [email protected] Subject: Re: Disabling engineID Probe for Informs On 26/02/07, Makavy, Erez (Erez) <[EMAIL PROTECTED]> wrote: > It then seems that th

Re: Disabling engineID Probe for Informs

2007-02-26 Thread Dave Shield
On 26/02/07, Makavy, Erez (Erez) <[EMAIL PROTECTED]> wrote: > It then seems that the only solution for supporting informs in a > "firewalled" system, is to use a fixed port (or range of ports) as > the source port for the sent informs, For a TCP-based transport, this sort of response to an outgoin

Re: Disabling engineID Probe for Informs

2007-02-26 Thread Andrew Hood
Makavy, Erez (Erez) wrote: > Hi, > > It then seems that the only solution for supporting informs in a > "firewalled" system, > is to use a fixed port (or range of ports) as the source port for the > sent informs, > so that the returned acknowledgements can be accepted (by adding rule to > the fire

RE: Disabling engineID Probe for Informs

2007-02-26 Thread Makavy, Erez (Erez)
---Original Message- From: Makavy, Erez (Erez) Sent: Monday, February 26, 2007 6:55 PM To: 'Wes Hardaker' Cc: [email protected] Subject: RE: Disabling engineID Probe for Informs Hi, It then seems that the only solution for supporting informs in a "firewalled"

RE: Disabling engineID Probe for Informs

2007-02-26 Thread Makavy, Erez (Erez)
es the SNMP message ID to correlate the ACK to the inform. thanks, Erez. -Original Message- From: Wes Hardaker [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 12:37 AM To: Makavy, Erez (Erez) Cc: [email protected] Subject: Re: Disabling engineID Probe for In

Re: Disabling engineID Probe for Informs

2007-02-21 Thread Wes Hardaker
>>>>> "EM" == Erez Makavy writes: EM> Before an inform is sent, an automatic engineID probe is sent to the EM> manager-station, EM> because of the firewall blocking unknown incoming UDP port, EM> the probe response is not received, and the inform is not sent

max engineid length (was: Re: CVS: net-snmp/snmplib snmp_parse_args.c, 5.25 tools.c,5.16)

2007-02-21 Thread Thomas Anders
Dave Shield wrote: > Update of /cvsroot/net-snmp/net-snmp/snmplib > In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28753 > > Modified Files: > snmp_parse_args.c tools.c > Log Message: > CHANGES: library: BUG: 1660061: Validate engineIDs more strictly. In the light of this, why do we

Disabling engineID Probe for Informs

2007-02-19 Thread Makavy, Erez (Erez)
Hi, Problem: - Sending Informs (using the snmpNotificationMIB, and snmpTargetMIB) does not work when firewall is active. [Version: Net-Snmp-5.3.1, Linux , PPC] Analysis: - Before an inform is sent, an automatic engineID probe is sent to the manager-station, because of

Re: engineID

2007-02-07 Thread Wes Hardaker
e JS> SNMP implementation does to produce a value. FYI Juergen, The Net-SNMP package has a 3rd-party mechanism for generating engineIDs specifically to avoid the above problems (and in fact, we did get reports of real-world collisions when we were using the IPv4 engineID derivation; we haven&

Re: engineID

2007-02-07 Thread Wes Hardaker
>>>>> "DS" == Dave Shield <[EMAIL PROTECTED]> writes: >> When do we need to set engineID? DS> I've no idea. Wes is the security expert, not me :-) DS> In general, unless you *know* that you need to set the engineID DS> explicitly, then you

Re: engineID

2007-02-01 Thread Juergen Schoenwaelder
On Thu, Feb 01, 2007 at 09:17:55AM +, Dave Shield wrote: > > When do we need to set engineID? > > I've no idea. Wes is the security expert, not me :-) RFC 3411 contains the definition of the SnmpEngineID textual convention which explains the various formats. In a nutshell

Re: engineID

2007-02-01 Thread Dave Shield
On 31/01/07, redhouse101 <[EMAIL PROTECTED]> wrote: > When do we need to set engineID? I've no idea. Wes is the security expert, not me :-) In general, unless you *know* that you need to set the engineID explicitly, then you probably don't (a

Re: engineID

2007-02-01 Thread redhouse101
Thank you very much, Dave! When do we need to set engineID? In man page, it states that we can set "engineID STRING" in snmpd.conf. Which snmpd.conf, persistent one or regular one? RH On 1/31/07, Dave Shield <[EMAIL PROTECTED]> wrote: DS> The engine ID is normally set aut

Re: engineID

2007-01-31 Thread Dave Shield
On 31/01/07, redhouse101 <[EMAIL PROTECTED]> wrote: > In using SNMPv3, where should engineID set? The engine ID is normally set automatically when the agent first starts up. This is then saved (again automatically) in the persistent snmpd.conf file. > In my testing, I have not

engineID

2007-01-31 Thread redhouse101
Hi, experts, In using SNMPv3, where should engineID set? in persistent snmpd.conf or regular snmpd.conf? In my testing, I have not set any, it still works. Does this an optional configuration? Thank you very much, RH

Re: new delayed engineID probing breaks other security models

2005-10-02 Thread Robert Story
On Thu, 15 Sep 2005 21:56:43 -0700 Wes wrote: WH> The new delayed engineID probing scheme actually enforces a USM probe WH> before anything else takes place. EG, if you run snmpget with a WH> different security model (eg, ksm) it forces a USM-based-packet WH> engineID probe to happen

Re: unknown engineID error during snmp open

2005-09-20 Thread Dave Shield
in spite of this error. > Does this mean that this is an expected result and I shouldn't > worry about it? Yes - that's fine. It's probably related to the automatic engineID discovery, which is (sometimes) done when the session is first opened. Don't you worry your p

unknown engineID error during snmp open

2005-09-20 Thread Rafael Garabato
Hello there,        I am developing a snmp client using snmp version 3. After the snmp_open, the session variable that is returned has its s_snmp_errno element set to SNMPERR_UNKNOWN_ENG_ID. I took a look at the snmpv3_engine_ID_probe function, which is the one that throws this error a

new delayed engineID probing breaks other security models

2005-09-15 Thread Wes Hardaker
The new delayed engineID probing scheme actually enforces a USM probe before anything else takes place. EG, if you run snmpget with a different security model (eg, ksm) it forces a USM-based-packet engineID probe to happen first which I'm sure it didn't use to do (nor should it)

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-22 Thread Robert Story
On Wed, 20 Apr 2005 09:20:55 +0100 Dave wrote: DS> On Tue, 2005-04-19 at 18:18, Wes Hardaker wrote: DS> > 5) thus, I would choose one of: DS> >a) have the new behaviour to probe later with a new flag to probe DS> >immed. DS> DS> Well, we've already got a flag to do this (sort of). DS> It's

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-20 Thread Dave Shield
On Tue, 2005-04-19 at 19:27, mark kaplun wrote: > What is the point of sending an snmpv3 GET to an agent which does > not support snmpv3? There isn't any point in doing that, no. But we're not really talking about sending a request. At least, not from the point of view of the application develope

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-20 Thread Dave Shield
On Tue, 2005-04-19 at 18:18, Wes Hardaker wrote: > 5) thus, I would choose one of: >a) have the new behaviour to probe later with a new flag to probe immed. Well, we've already got a flag to do this (sort of). It's called "DONT_PROBE". Or rather, it's the *absence* of the "DONT_PROBE" flag. I

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-19 Thread David T. Perkins
HI, It would be really cool if there was a file that had translations between transport addresses and engineIDs (and contain engineBoots, and a timestamp that could be used to compute engineTime). Instead of probing, the values from this file would be used. If a failure occured, due to engineID

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-19 Thread mark kaplun
5) thus, I would choose one of: a) have the new behaviour to probe later with a new flag to probe immed. b) have the new behaviour to have a new flag to probe later c) leave as existing Obviously c is what we're trying to avoid, b is probably safer but I think we should do a because I doubt

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-19 Thread Wes Hardaker
> On Thu, 14 Apr 2005 17:01:27 +0100, Dave Shield <[EMAIL PROTECTED]> said: >> The question is, what should the default behaviour be? >> Always delay the probe ... [or] allow a failed probe to >> successfully return, and set up to retry the probe when needed. Dave> Either of those two would b

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-19 Thread Robert Story
he semantics of the return code DS> > from snmp_open so you could tell if the probe failed. DS> DS> So you can tell whether the probe failed by looking at the engineID DS> field. That's true. The original patch, however, also define several other return codes for other failu

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-19 Thread Dave Shield
later (when the request was ready to be sent) rather than earlier (possibly before the session credentials had been properly established). IIUC, setting DONT_PROBE would mean that the initial snmp_open() would succeed, returning a session data structure (though without the remote engineID and rela

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-18 Thread Robert Story
On Mon, 18 Apr 2005 13:43:37 +0100 Dave wrote: DS> Let's take a step back - what's the purpose behind sending the DS> probe at this point (opening the session) rather than later on DS> (when it's actually used) ? You'll have to argue with Wes on that one. DS> What would be the implications of d

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-18 Thread Robert Story
On Mon, 18 Apr 2005 14:08:18 +0100 Patrick wrote: PW> but there doesn't seem to be anywhere which says something PW> like "Unless you are really writing a multithreaded application, PW> steer clear of snmp_sess_open and stick to snmp_open" i.e., style PW> recommendations / what is the actual API as

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-18 Thread Dave Shield
On Mon, 2005-04-18 at 14:08, Patrick Welche wrote: > On Mon, Apr 18, 2005 at 01:43:37PM +0100, Dave Shield wrote: > > With the old v4 distributions (and even with v5, given a configure > > choice of SNMPv1 or SNMPv2c as the default version), then > > > > snmp_sess_init( &sess ); > > ss1 =

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-18 Thread Patrick Welche
On Mon, Apr 18, 2005 at 01:43:37PM +0100, Dave Shield wrote: > On Thu, 2005-04-14 at 22:25, Robert Story wrote: > > Doesn't setting SNMP_FLAGS_DONT_PROBE in the session flags work? That should > > prevent the probe and allow a valid session struct to be returned. > > Possibly, but it still feels l

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-18 Thread Dave Shield
On Thu, 2005-04-14 at 22:25, Robert Story wrote: > Doesn't setting SNMP_FLAGS_DONT_PROBE in the session flags work? That should > prevent the probe and allow a valid session struct to be returned. Possibly, but it still feels like an unnecessary step. With the old v4 distributions (and even with

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-14 Thread Robert Story
On Thu, 14 Apr 2005 17:01:27 +0100 Dave wrote: DS> On Thu, 2005-04-14 at 16:11, Robert Story wrote: DS> > The question is, what should the default behaviour be? DS> > Always delay the probe ... [or] allow a failed probe to DS> > successfully return, and set up to retry the probe when needed. DS> D

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-14 Thread Robert Story
On Thu, 14 Apr 2005 09:53:37 -0700 (PDT) David wrote: DTP> I hope you allow the engineID to be specified in the API. Yes, you can set a flag to not probe, and set the engineID directly in the session structure. -- NOTE: messages sent directly to me, instead of the lists, will be dele

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-14 Thread David T. Perkins
HI, I hope you allow the engineID to be specified in the API. Regards, /david t. perkins On Thu, 14 Apr 2005, Robert Story wrote: > In order to fix the problem where an inform session fails to open at startup, > I'm integrating a patch (submitted a few years ago) to delay the engine

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-14 Thread Dave Shield
On Thu, 2005-04-14 at 16:11, Robert Story wrote: > The question is, what should the default behaviour be? > Always delay the probe ... [or] allow a failed probe to > successfully return, and set up to retry the probe when needed. Either of those two would be acceptable. At the moment, the library

rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-14 Thread Robert Story
In order to fix the problem where an inform session fails to open at startup, I'm integrating a patch (submitted a few years ago) to delay the engineID probe until it is needed. The question is, what should the default behaviour be? Always delay the probe (any time snmp_open is called for

Re: why engineID default format still UCD?

2004-10-06 Thread Thomas Anders
Wes Hardaker wrote: On Thu, 24 Jun 2004 17:44:13 +0200, Thomas Anders <[EMAIL PROTECTED]> said: Thomas> At least the following comment in snmplib/snmpv3.c seems to Thomas> disagree slightly: Thomas> if (localEngineIDType == ENGINEID_TYPE_UCD_RND) Thomas> /* Thomas> * we must use the net-snmp enterp

Re: why engineID default format still UCD?

2004-06-30 Thread Wes Hardaker
>>>>> On Thu, 24 Jun 2004 17:44:13 +0200, Thomas Anders <[EMAIL PROTECTED]> said: Thomas> -Coders, Thomas> AFAICS the engineIDType still defaults to the custom (aka Thomas> proprietary) ENGINEID_TYPE_UCD_RND (128) and the enterprise ID Thomas> in the engineID i

why engineID default format still UCD?

2004-06-24 Thread Thomas Anders
-Coders, AFAICS the engineIDType still defaults to the custom (aka proprietary) ENGINEID_TYPE_UCD_RND (128) and the enterprise ID in the engineID is still UCD (2021=0x07e5) instead of Net-SNMP (8072=0x1f88). Is there a good reason for still doing so, even in CVS MAIN? At least the following