NAME

SNMP::Insight::Session - Role for SNMP client implementantions

VERSION

version 0.001

ATTRIBUTES

hostname

Required.

port

Default 161

localaddr

Optional. Can be used to set local address to bind to.

=

has localaddr => ( is => 'ro', isa => 'Str', );

localaddr

Optional. Can be used to set local port to bind to.

=

has localport => ( is => 'ro', isa => 'Int', );

version

Required, should be on of "1", "2c", "3".

timeout

Transport layer timeout in seconds.

retries

Number of times to retry sending a SNMP message to the remote host.

community

The SNMP community name to be used for SNMPv1 and SNMPv2c security model.

username

securityName for SNMPv3

METHODS

get_scalar($oid)

Required method. Should return the value at $oid.0.

get_subtree($oid)

Required method. Should return all the values at $oid in a list of [ oid, value ] pairs.

AUTHOR

Gabriele Mambrini <g.mambrini@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Gabriele Mambrini.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.