SNMP multiple request

2008-11-13 Thread Mikel Korta
Hi,

 

I'm quite new on the SNMP protocol and I'm trying to figure out if the last
version of SNMP (v3) supports IP multicasting. I've that some kind of
frameworks have been proposed as a possible solution but I don't really know
if it is already standardized. What I would like to know if it possible to
make a unique request (using multicast IPs) from the SNMP manager to several
agents in order to get information from them.

 

Can anyone help me?

 

Thanks!

 

MK

 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: snmptrap source ip

2008-11-13 Thread Elad Shavit
Thank you for you detailed response.
I meant traps and not informs. In any case, I rechecked it without a
port (giving clientaddr only an IP and not of the form ip:port
like I tried until now), and it worked both on 5.4.1 and 5.4.2.
So, the problem was that I assumed that the regular structure of
ip:port is permitted.
Thanks again,

Elad Shavit
GlassHouse Technologies Ltd.

-Original Message-
From: Tackabury, Wayne [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 11, 2008 10:57 PM
To: net-snmp-users@lists.sourceforge.net
Subject: RE: snmptrap source ip

Hi Elad:

I hope I'm not confusing matters for you, but it sounds like you're
encountering the same situation we encountered a year or so ago, where
we needed to have V1 traps sent with a specific chosen interface addr of
the options available on a multihomed system--reason being that only one
of the addresses on the agent would properly reverse-DNS map when looked
up by our management station client that was running its own trap daemon
and receiving the trap.

Aside from the fact you're using informs, sound like you?  OK, either
way, it might be worth reading my original bug report with submitted
patch to 5.4.1:

http://sourceforge.net/mailarchive/message.php?msg_id=E1KL19H-0003hG-Ja%
40b55xhf1.ch3.sourceforge.com

There is some history here.  A guy named Jan Safranek from Red Hat got
me constructively motivated to actually submit this patch, but it was
after he'd submitted his own, which as I recall was almost identical
(certainly was functionally) to solve the same problem (my snmpd.conf
param is agenttrapaddr, Jan's was something else.  The discussion in
this report discussed why I don't think clientaddr affects what you
want to affect.

Now, both Jan and I submitted our patches (Jan's came in much earlier
because he's more on top of it it sounds like :), and net-snmp bug
authorities were piecing out which or what kind of hybrid to use.  I
don't know if that was resolved for an official patch release or not.
If so, use that.  Either way, we've been running with this patch
successfully for over a year now.

Note that this *only* affects agent-initiated traps (from monitor
directives in snmpd.conf).  Also, I didn't test this with informs yet,
but as I recall the code flow, both should be positively affected.

I'll try to follow the digest better than usual if you have any followup
questions here...hope this helps!

Regards,
Wayne Tackabury
Mirror Image Internet

-Original Message-
--

Date: Tue, 11 Nov 2008 15:51:59 +0200
From: Elad Shavit [EMAIL PROTECTED]
Subject: RE: snmptrap source ip

Thank you Glenn.

I have tried using the -Y clientaddr=ip:port flag but with no
success. I also tried setting the clientaddr parameter in the
snmp.conf file.
The outcome is always the same - the outgoing port is the same (I have
only one IP on my testing machine so I assume that if I could preset the
port, the ip will be also set.

Please mind I am working with 5.4.1 netsnmp version.

Does snmptrap.exe (windows XP) suppose to be influenced from this
parameter or is it only for snmpd and snmptrapd?
If only for snmpd and snmptrapd, how can I set the source ip of outgoing
traps if I am using the snmptrap.exe to send them?

Thanks in advance,

Elad Shavit
GlassHouse Technologies Ltd.

-Original Message-
From: Glenn McAllister [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2008 6:25 PM
To: Elad Shavit
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: snmptrap source ip

Elad Shavit wrote:
 Hello all,



 Does anyone know how can I predict/decide what will be the source ip
for
 sending trap using snmptrap (when sent from multiple IPs machines)?


I had a similar problem, but I was generating informs from a subagent on

a machine with multiple interfaces where I needed to ensure informs were

coming from a specific interface.  See the thread starting here:

http://thread.gmane.org/gmane.network.net-snmp.user/25707/focus=25707

I haven't tried it, but I think if you add '--clientaddr=source_ip' to

your snmptrap command line it will get you the result you want.

--
Glenn McAllister [EMAIL PROTECTED]  +1 416 348 1594
SOMA Networks, Inc.  http://www.somanetworks.com/  +1 416 977 1414



--

Message: 4
Date: Tue, 11 Nov 2008 14:16:15 -0600
From: Allen, Bill [EMAIL PROTECTED]
Subject: new to net-snmp, installing on HP-UX
To: net-snmp-users@lists.sourceforge.net
Message-ID:
 
[EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii

I am new to net-snmp.I have an HP-UX 11.23 system that I am trying
to monitor with our local monitoring software - SolarWinds.   They say I
need to install net-snmp on this HP-UX system for this purpose as the
default snmp is not sufficient.  So, I have downloaded the latest
ixNet-SNMP for HP-UX 11.23 from the HP-UX iexpress software set.  I did
a swinstall on the depot and it appears that net-snmp installed without
any errors.  However, it 

how to install or use ucdavis ?

2008-11-13 Thread chinofish
i installed net-snmp with yum.
but when i used command as follows :

snmpwalk -v 1 -c public 127.0.0.1

console will display some output info as follows: 

SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost.localdomain 2.6.18-53.el5 #1 
SMP Mon Nov 12 02:22:48 EST 2007 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (9722) 0:01:37.22
SNMPv2-MIB::sysContact.0 = STRING: Root [EMAIL PROTECTED] (configure 
/etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: localhost.localdomain
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.3 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.4 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.6 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.7 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for managing TCP 
implementations
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing IP and ICMP 
implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing UDP 
implementations
SNMPv2-MIB::sysORDescr.5 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.6 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB for Message Processing and 
Dispatching.
SNMPv2-MIB::sysORDescr.8 = STRING: The management information definitions for 
the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (1) 0:00:00.01
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (326218) 0:54:22.18
End of MIB


but when i use 
snmpwalk -v 1 -c public 127.0.0.1 mem

[EMAIL PROTECTED] ~]# snmpwalk -v 1 -c public 127.0.0.1 mem
End of MIB

why i can not use 
http://www.net-snmp.org/docs/mibs/ucdavis.html

Any suggestion will be appreciated !!




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: how to install or use ucdavis ?

2008-11-13 Thread Michael Schwartzkopff
Am Donnerstag, 13. November 2008 18:32 schrieb chinofish:
 i installed net-snmp with yum.
(...)
 but when i use
 snmpwalk -v 1 -c public 127.0.0.1 mem

 [EMAIL PROTECTED] ~]# snmpwalk -v 1 -c public 127.0.0.1 mem
 End of MIB

 why i can not use
 http://www.net-snmp.org/docs/mibs/ucdavis.html

Because ist no value that snmpwalk can translate to an OID, or in other words, 
no object is called mem.

-- 
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: [EMAIL PROTECTED]
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Problem with using pthread library

2008-11-13 Thread John Anderson
I ran across a problem trying to add my MIBS where net-snmp would hang.  I am 
cross compiling net-snmp to run on a custom embedded linux application.  I 
perform a configure where I add my mib handler files but I also add 
--with_ldflag=$LDFLAGS, where LDFLAGS=-lpthread.

This took me lots of debugging with DEBUGMSGTL statements and I'm using 
net-snmp-5.4.1..tar.gz for reference.  I found that the configure recognizes 
the fact that I want it linked with -lpthread and proceeds to add to 
include/net-snmp/net-snmp-config.h the following...

#define NET_REENTRANT 1

and

#define HAVE_PTHREAD_H 1

Well, this causes a problem where net-snmp is trying to acquire a resource lock 
using pthread mutexes when it has already acquired a resource lock.  So the 
second attempt to acquire the lock hangs net-snmp.  This has nothing to do with 
the code I added.  If you just try add the link to pthread in the configure the 
problem occurs.  The freeze occurs the first time I send an SNMP ping to my 
embedded system.

I'm curious as to if anyone has heard of this problem?  I don't need net-snmp 
to be reentrant.  I just have a small bit of code that runs a thread to 
communicate with another app that sends/recvs the parameters.  I could redesign 
it to not use threads but the code has already been used a tested so I would 
rather keep it as is.

My solution was to edit net-snmp-config.h after running configure and undoing 
those defines.

John Anderson-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Problem with using pthread library

2008-11-13 Thread Thomas Anders
John Anderson wrote:
 I found that the configure
 recognizes the fact that I want it linked with -lpthread and proceeds to
 add to include/net-snmp/net-snmp-config.h the following...
  
 #define NET_REENTRANT 1

I cannot reproduce this for 5.4.x SVN:

foo# ./configure LDFLAGS=-lpthread --with-defaults
...
foo# grep NETSNMP_REENTRANT include/net-snmp/net-snmp-config.h
/* #undef NETSNMP_REENTRANT */
#ifdef NETSNMP_REENTRANT
# define NS_REENTRANT NETSNMP_REENTRANT

 My solution was to edit net-snmp-config.h after running configure and
 undoing those defines.

That's a sufficient workaround anyway.


+Thomas

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Unknown engine ID

2008-11-13 Thread Cardoza, Eric
Greetings snmp users.

I have configured my snmpd.conf file to use snmpv3, and I ran tests using snmp 
commands to verify that the snmpget and snmpwalk commands retrieve the 
requested data from the appropriate MIBs.  However, I am encountering a 
situation where the engine ID seems to be getting dropped or lost after a short 
period of time (2 to 5 minutes).  Since it is not always the same time period, 
it would not appear to be a coded timeout value.   I did not specify an engine 
ID in the snmpd.conf file because I read that that is not the recommended 
procedure.  So snmp should be generating the engine ID with its algorithm.

Please see the snmpget commands below.  The timeticks display the number of 
seconds following the startup of the snmpd daemon.  Once the Unknown engine 
ID msg is returned, the only way to get snmp to process commands again is to 
restart the snmpd daemon.


---

/etc  snmpget hostname sysUpTime.0

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (4555) 0:00:45.55

/etc  snmpget hostname sysUpTime.0

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (8348) 0:01:23.48

/etc  snmpget hostname sysUpTime.0

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (19107) 0:03:11.07

/etc  snmpget hostname sysUpTime.0

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (21359) 0:03:33.59

/etc  snmpget hostname sysUpTime.0

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (22596) 0:03:45.96

/etc  snmpget hostname sysUpTime.0

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (24334) 0:04:03.34

/etc  snmpget hostname sysUpTime.0

snmpget: Unknown engine ID (Sub-id not found: (top) - sysUpTime)

--

Does anyone have ideas about what is causing the engine ID to get lost?

Thanking you in advance.

Eric Cardoza

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


[no subject]

2008-11-13 Thread Cardoza, Eric

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Unknown engine ID

2008-11-13 Thread Cardoza, Eric
Greetings snmp users.

I have configured my snmpd.conf file to use snmpv3, and I ran tests using snmp 
commands to verify that the snmpget and snmpwalk commands retrieve the 
requested data from the appropriate MIBs.  However, I am encountering a 
situation where the engine ID seems to be getting dropped or lost after a short 
period of time (2 to 5 minutes).  Since it is not always the same time period, 
it would not appear to be a coded timeout value.   I did not specify an engine 
ID in the snmpd.conf file because I read that that is not the recommended 
procedure.  So snmp should be generating the engine ID with its algorithm.

Please see the snmpget commands below.  The timeticks display the number of 
seconds following the startup of the snmpd daemon.  Once the Unknown engine 
ID msg is returned, the only way to get snmp to process commands again is to 
restart the snmpd daemon.


---

/etc  snmpget hostname sysUpTime.0

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (4555) 0:00:45.55

/etc  snmpget hostname sysUpTime.0

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (8348) 0:01:23.48

/etc  snmpget hostname sysUpTime.0

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (19107) 0:03:11.07

/etc  snmpget hostname sysUpTime.0

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (21359) 0:03:33.59

/etc  snmpget hostname sysUpTime.0

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (22596) 0:03:45.96

/etc  snmpget hostname sysUpTime.0

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (24334) 0:04:03.34

/etc  snmpget hostname sysUpTime.0

snmpget: Unknown engine ID (Sub-id not found: (top) - sysUpTime)

--

Does anyone have ideas about what is causing the engine ID to get lost?

Thanking you in advance.

Eric Cardoza

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users