• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux NetSNMP::TrapReceiver Download

NetSNMP::TrapReceiver

August 3, 2009
The Net-SNMP's snmptrapd software now includes embedded Perl trap handling capabilities, allowing users to customize how traps are handled.
Version 5.0401
License Perl Artistic License
Platform Linux
Supported Languages English
Homepage search.cpan.org
Developed by Wes Hardaker
I recently had the opportunity to use NetSNMP::TrapReceiver, a Perl module that allows you to register Perl subroutines into the Net-SNMP snmptrapd process. However, it is worth noting that for this module to work, Net-SNMP has to be configured using --enable-embedded-perl. The registration of functions can then be done through the snmptrapd.conf configuration file.

It’s important to note that this module cannot be used in a regular Perl script to receive traps. It is intended solely for embedded use within the snmptrapd daemon.

Within the snmptrapd.conf file, you can use the keyword "perl" to call any Perl expression, and with this ability, you can use NetSNMP::TrapReceiver to register functions. These functions are called every time a given notification (a trap or an inform) is received. Registered functions are called with two arguments.

The first argument is a reference to a hash containing information about how the trap was received (what version of the SNMP protocol was used, where it came from, what SNMP user name or community name it was sent under, etc.). The second argument is a reference to an array containing the variable bindings (OID and value information) that define the notification itself. Each variable is itself a reference to an array containing three values: a NetSNMP::OID object, the value that came associated with it, and the value's numeric type (see NetSNMP::ASN for details on SNMP typing information).

Subroutines are registered using the NetSNMP::TrapReceiver::register function, which takes two arguments. The first is a string that describes the notification you want to register for (e.g., "linkUp" or "MyMIB::MyTrap" or ".1.3.6.1.4.1.2021...."). Two special keywords can be used in place of an OID: "default" and "all." The "default" keyword indicates that you want your handler to be called in the case where no other handlers are called. The "all" keyword indicates that the handler should ALWAYS be called for every notification.

Overall, I found NetSNMP::TrapReceiver to be extremely useful for registering Perl subroutines within the Net-SNMP snmptrapd process. While it has some limitations, it’s easy to use and very efficient once you have it set up. I’d highly recommend it to anyone who needs this kind of functionality.
What's New

Version 5.0401: N/A

Free Download 16.8K
368
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    155
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    92
  4. SlideMap 1.2.2
    82
  5. CherryTV 0.1
    81
  6. porm r2
    79
  7. Swiftfox 3.0b5pre-2
    77
  8. Java Games 1.0
    76
  9. Clewarecontrol 0.8
    75
  10. fuseftp 0.8
    74

Related Downloads

comisat Games Collection
The Comisat Games Collection is a collection of free games developed in ...
EasyTAG
This software is a tag editor designed for MP3 and Ogg Vorbis ...
Advchk
Advisory Check software reads security advisories on behalf of users, saving them ...
logmover
Logmover software archives logfiles created by logrotate for better management of data.
Temperature.app
Temperature.app is a Window Maker applet that retrieves local temperature data at ...
NS2Html
NS2Html converts Netscreen device config files into HTML rulebases for ease of ...
vpnd
VPND is a software that offers a Virtual Private Network Daemon with ...
Qps-h
Qps is a graphical user interface (GUI) version of the UNIX command-line ...
CGI::ContactForm
This software module in Perl enables users to create a web contact ...
Kdegirls Control
Kdegirls Control is a python/PyQt3 application for tracking menstrual cycles. It requires ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.