-
-
30 Jun 2019 08:19:09 UTC
- Distribution: IO-Lambda
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (0)
- Testers (562 / 103 / 0)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (90.24KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- LWP
- Net::DNS
- Scalar::Util
- Storable
- Sub::Name
- Time::HiRes
- URI
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
IO::Lambda::SNMP - snmp requests lambda style
DESCRIPTION
The module exports a set of conditions: snmpget, snmpfget, snmpgetnext, snmpfgetnext, snmpset, and snmpbulkwalk, that behave like the corresponding SNMP:: non-blocking counterpart functions. See SNMP for descriptions of their parameters and results.
SYNOPSIS
use strict; use SNMP; use IO::Lambda::SNMP qw(:all); use IO::Lambda qw(:all); my $sess = SNMP::Session-> new( DestHost => 'localhost', Community => 'public', Version => '2c', ); this lambda { context $sess, new SNMP::Varbind; snmpgetnext { my $vb = shift; print @{$vb->[0]}, "\n" ; context $sess, $vb; again unless $sess-> {ErrorNum}; } }; this-> wait;
SEE ALSO
AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>.
Module Install Instructions
To install IO::Lambda, copy and paste the appropriate command in to your terminal.
cpanm IO::Lambda
perl -MCPAN -e shell install IO::Lambda
For more information on module installation, please visit the detailed CPAN module installation guide.