POE::Component::NetSNMP::agent - AgentX clients with NetSNMP::agent and POE
This module is a thin wrapper around NetSNMP::agent to use it within a POE-based program, its basic use being the same as you would do without POE: register one or more OIDs with their associated callbacks.
NetSNMP::agent
register
POE::Component::NetSNMP::agent also provides a simpler mechanism, similar to SNMP::Extension::PassPersist, if you just want to handle get and getnext requests over an OID tree: set the Autohandle option to the a OID, then add OID entries with add_oid_entry or add_oid_tree.
POE::Component::NetSNMP::agent
SNMP::Extension::PassPersist
get
getnext
Autohandle
add_oid_entry
add_oid_tree
Note that most of the API is available both as POE events and as object methods.
This module can use Sort::Key::OID when it is available, for sorting OIDs faster than with the internal pure Perl function.
Sort::Key::OID
To install this module, run the following commands:
perl Makefile.PL make make test make install
Alternatively, to install with Module::Build, you can use the following commands:
perl Build.PL ./Build ./Build test ./Build install
You can find documentation for this module with the perldoc command.
perldoc POE::Component::NetSNMP::agent
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/Public/Dist/Display.html?Name=POE-Component-NetSNMP-agent
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/POE-Component-NetSNMP-agent
CPAN Ratings
http://cpanratings.perl.org/d/POE-Component-NetSNMP-agent
Search CPAN
http://search.cpan.org/dist/POE-Component-NetSNMP-agent/
Copyright 2011 Sebastien Aperghis-Tramoni.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install NetSNMP::OID, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NetSNMP::OID
CPAN shell
perl -MCPAN -e shell install NetSNMP::OID
For more information on module installation, please visit the detailed CPAN module installation guide.