NAME
SNMP::Insight::Manual::Usage - SNMP::Insight basic usage
VERSION
version 0.002
First steps
Connecting to a device
my $device = SNMP::Insight::open(
snmp_params => {
hostname => $hostname,
community => $community,
version => "2c"
}
);
If you prefer you can use the session parameter to specify a custom session object (must implement the SNMP::Insight::Session role). So the previous call is the same as:
my $session = SNMP::Insight::Session::NetSNMP->new(
hostname => $hostname,
community => $community,
version => "2c",
);
my $device = SNMP::Insight::open( session => $session );
$device
is a SNMP::Insight::Device object, to which have also been applied the roles
Reading a scalar
$device->sysDescr
Reading a table
TBD
Customizing device object
Adding MIB
TBD
Classifier
TBD
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.