473,696 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Receiving snmp traps in perl on Win platform?

{
OOPS, posted this to moderated group perl.cpan.discu ss as
well, so it can take a while to get through, if it gets through at all
Otherwise sorry for duplicate posting
}

We need to set up a server 2003 (or a win XP system) to accept
and act upon traps sent out from a storage system. Responding
to various error conditions, this system can be fully configured to
send traps.

I am wondering what must be done on the trap-accepting side.

I am fairly new to SNMP but I managed to install the NET::SNMP
module from
http://search.cpan.org/~dtown/Net-SN...ib/Net/SNMP.pm
and use it to interrogate and manipulate a remote SNMP agent (SNMP
service running on a XP-system), i.o.w. all the examples work.
I can do get and sets, and I can send traps to the remote system.
With a little utility like "SNMP Trap Watcher" I see the traps arriving.

Now I would like to create a perl script on the remote system to
listen for traps, and, at this point, to just show them on the console.
The NET::SNMP module seems not to support this.

I have been looking around I do find some examples of trap
listeners, but they all seem to work on unit or Linux only.

The module SNMP
http://search.cpan.org/~hardaker/SNMP-5.0401/SNMP.pm
seems promising, but when I try to install it with ppm, I get
ppminstall SNMP
=============== =====
Install 'SNMP' version 0.0 in ActivePerl 5.8.7.815.
=============== =====
Error: error downloading 'http://theoryx5.uwinni peg.ca/ppms/x86/Bundle-
NetSNMP.tar.gz' : 404 Not Found

Can anyone help me out here?

Tia,
Dirk Vdm
By the way, this might be of interest:
=============== ===============
ppmrep describe 1
Describing Active Repository 1:
Name: ActiveState Package Repository
Location: http://ppm.ActiveState.com/PPM/ppmse...PPM/Server/SQL
Type: PPMServer 3.0
ppm>
ppm>
ppmrep describe 2
Describing Active Repository 2:
Name: uwinnipeg
Location: http://theoryx5.uwinnipeg.ca/ppms/
Type: Webpage
ppm>
ppm>
ppmsearch snmp
Searching in Active Repositories
1. Apache-WebSNMP [0.11] Apache-WebSNMP
2. Net-SNMP [5.2] Net-SNMP
3. Net-SNMP [5.2] Object oriented interface to SNMP
4. Net-SNMP-alpha [3.9.6] Net-SNMP-alpha
5. Net-SNMP-HostInfo [0.02] Net-SNMP-HostInfo
6. Net-SNMP-Interfaces [1.2] Net-SNMP-Interfaces
7. POE-Component-SNMP [0.01] POE-Component-SNMP
8. SNMP [0.0]
9. SNMP-BridgeQuery [0.58] SNMP-BridgeQuery
10. SNMP-Effective [1] SNMP-Effective
11. SNMP-MIB-Compiler [0.06] SNMP-MIB-Compiler
12. SNMP-Persist [0.05] SNMP-Persist
13. SNMP-Util [1.8] Snmp modules to perform snmp set,get,walk,ne xt,walk_hash etc.
ppm>
=============== ===============
Jun 27 '08 #1
1 4164
Dirk Van de moortel <di************ **@ThankS-NO-SperM.hotmail.c omwrote in message
xu************* ******@newsfe17 .ams2
{
OOPS, posted this to moderated group perl.cpan.discu ss as
well, so it can take a while to get through, if it gets through at all
Otherwise sorry for duplicate posting
}

We need to set up a server 2003 (or a win XP system) to accept
and act upon traps sent out from a storage system. Responding
to various error conditions, this system can be fully configured to
send traps.

I am wondering what must be done on the trap-accepting side.
Got it.

Dirk Vdm
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1644
by: Mudcat | last post by:
Hi, I don't know very much at all about SNMP, but I have an application where I need to use it. I won't be doing too much with it, just simple queries for metric values and capturing traps. I've searched on the net for information but haven't found anything that recent as to what is the best interface to use. Unfortunately, sourceforge is down at the moment, so I can't look at any of the documenation either. But I've read a little...
0
1662
by: Chris | last post by:
For the IBM DB2 Development following this group. SNMP is coming back in a big way. Changes in Version 2c and adoptions of Version 3 are ushering in the adoption of SNMP back into the enterprise. Your customers are going to be asking for the inclusion of SNMP back into the monitoring suite. I'm not just talking about sending piddly SNMP traps. I mean the "real meat" stats you get out of your DB2 instances (physical-to-logical layout,...
10
10194
by: Bennett F. Dill | last post by:
Hi I'd like help writing a c# console app that can send an SNMP trap. I've seen some documents on writng an SNMP server, but I don't want to receive traps, I only want to send them. Thanks Ben
1
3116
by: Christophe Helfer | last post by:
After many hours searching over the web I'll try to explain what I want. I want to build an application (or service) in VB.NET that can receive snmp traps and then perform some operation. There are many option to do that : - Commercial Components. I don't want use that option - Hear UDP port 162 and decode myself the packet, but this is a fragile technique if you are not expert - Use Microsoft snmp API. This should be the best choice...
2
2367
by: Sleurhutje | last post by:
Hi, I need to add SNMP functionality to an existing app. I need to be able to read specific real-time data from another system using SNMP traps. Anyone know a good sample or libs that can do this?
1
1889
by: KDawg44 | last post by:
Hi, I am very new to Python and really just began studying and using it. I read that it was relatively easy to interact with Windows machines with Python and I am desperately looking for something to replace VBScript (not a big fan). I am currently deploying a Gentoo Linux SNMP server running Cacti in my network and would like my XP machines to report traps to this box. The SNMP service is not running by default on the machines in the
1
3795
by: idoha | last post by:
Hi All, I need to send SNMP traps of a very specific forma (version 2 snmp trap). The format is as following: 07/31/2007 16:31:47 2 172.21.49.66 172.21.49.66 1.3.6.1.4.1.6387.1.2.3.3.1.2.12 1.3.6.1.2.1.1.3.0=>363 days, 20 hours, 59 minutes, 56 seconds. 1.3.6.1.6.3.1.1.4.1.0=>.1.3.6.1.4.1.6387.1.2.3.3.1.2.12 1.3.6.1.4.1.6387.1.2.3.3.1.1.15=>Oshkosh 1 1.3.6.1.4.1.6387.1.2.3.3.1.1.3=>703 All I can find is a method that sends snmp...
11
6583
by: kr99 | last post by:
I am trying to run a scrpt and I get an error indicating that the Perl Net::SNMP module may not be loaded. #perl udpInOut.pl localhost 161 public 1 "Can't locate object method "session" via package "Net::SNMP" (perhaps you forgot to load "Net::SNMP"?) at udpInOut.pl line 35." Here are the relevant lines in the script use Net::SNMP;
7
3519
by: moon1 | last post by:
how will I change the code the 1st code according to the 2nd one? 1st code sub snmpGet(@) { # Assign arguments my ($deviceName)=$_; # Device name to read from my ($community)=$_; # SNMP Community String my ($timeout)=$_; # Timeout value for SNMP-GET request my ($type)=$_; # SNMP Object Type
0
8597
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9145
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9010
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8880
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8853
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7703
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4356
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.