Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
IO::Lambda::SNMP(3)   User Contributed Perl Documentation  IO::Lambda::SNMP(3)

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
       IO::Lambda, SNMP.

AUTHOR
       Dmitry Karasik, <dmitry@karasik.eu.org>.

perl v5.32.0			  2012-03-14		   IO::Lambda::SNMP(3)

NAME | DESCRIPTION | SYNOPSIS | SEE ALSO | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=IO::Lambda::SNMP&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help