release 3.90
This commit is contained in:
61
README
61
README
@@ -2,7 +2,7 @@ NAME
|
||||
SNMP::Info - OO Interface to Network devices and MIBs through SNMP
|
||||
|
||||
VERSION
|
||||
SNMP::Info - Version 3.89
|
||||
SNMP::Info - Version 3.90
|
||||
|
||||
AUTHOR
|
||||
SNMP::Info is maintained by team of Open Source authors headed by Eric
|
||||
@@ -23,14 +23,16 @@ DEVICES SUPPORTED
|
||||
SYNOPSIS
|
||||
use SNMP::Info;
|
||||
|
||||
my $info = new SNMP::Info(
|
||||
# Auto Discover more specific Device Class
|
||||
my $info = SNMP::Info->new({
|
||||
# Auto Discover your Device Class (Cisco, Juniper, etc ...)
|
||||
AutoSpecify => 1,
|
||||
Debug => 1,
|
||||
|
||||
# The rest is passed to SNMP::Session
|
||||
DestHost => 'router',
|
||||
Community => 'public',
|
||||
Version => 2
|
||||
|
||||
# Parameter reference for SNMPv3
|
||||
# Version => 3
|
||||
# SecLevel => 'authPriv', # authPriv|authNoPriv|noAuthNoPriv
|
||||
@@ -39,10 +41,11 @@ SYNOPSIS
|
||||
# AuthPass => 'authp4ss',
|
||||
# PrivProto => 'DES', # DES|AES
|
||||
# PrivPass => 'pr1vp4ss',
|
||||
) or die "Can't connect to device.\n";
|
||||
});
|
||||
|
||||
my $err = $info->error();
|
||||
die "SNMP Community or Version probably wrong connecting to device. $err\n" if defined $err;
|
||||
die $err if defined $err;
|
||||
# usually a wrong DestHost or Community or Version if you have trouble here
|
||||
|
||||
my $name = $info->name();
|
||||
my $class = $info->class();
|
||||
@@ -533,11 +536,6 @@ SUBCLASSES
|
||||
|
||||
See documentation in SNMP::Info::Layer2::HP for details.
|
||||
|
||||
SNMP::Info::Layer2::Hirschmann
|
||||
Subclass for L2 Hirschmann Switches.
|
||||
|
||||
See documentation in SNMP::Info::Layer2::Hirschmann for details.
|
||||
|
||||
SNMP::Info::Layer2::HP4000
|
||||
Subclass for older HP Procurve Switches
|
||||
|
||||
@@ -824,6 +822,11 @@ SUBCLASSES
|
||||
|
||||
See documentation in SNMP::Info::Layer3::N1600 for details.
|
||||
|
||||
SNMP::Info::Layer3::Netonix
|
||||
Subclass for Netonix switches.
|
||||
|
||||
See documentation in SNMP::Info::Layer3::Netonix for details.
|
||||
|
||||
SNMP::Info::Layer3::NetSNMP
|
||||
Subclass for host systems running Net-SNMP.
|
||||
|
||||
@@ -999,18 +1002,24 @@ USAGE
|
||||
new()
|
||||
Creates a new object and connects via SNMP::Session.
|
||||
|
||||
my $info = new SNMP::Info( 'Debug' => 1,
|
||||
'AutoSpecify' => 1,
|
||||
'BigInt' => 1,
|
||||
'BulkWalk' => 1,
|
||||
'BulkRepeaters' => 20,
|
||||
'IgnoreNetSNMPConf' => 1,
|
||||
'LoopDetect' => 1,
|
||||
'DestHost' => 'myrouter',
|
||||
'Community' => 'public',
|
||||
'Version' => 2,
|
||||
'MibDirs' => ['dir1','dir2','dir3'],
|
||||
) or die;
|
||||
Always returns an SNMP::Info instance, and you should always check
|
||||
for error() as in SYNOPSIS above to be sure of success.
|
||||
|
||||
Will take a bare list of key/value options but we recommend a HASH
|
||||
ref as in the example below and SYNOPSIS, to catch syntax errors.
|
||||
|
||||
my $info = SNMP::Info->({ 'Debug' => 1,
|
||||
'AutoSpecify' => 1,
|
||||
'BigInt' => 1,
|
||||
'BulkWalk' => 1,
|
||||
'BulkRepeaters' => 20,
|
||||
'LoopDetect' => 1,
|
||||
'IgnoreNetSNMPConf' => 1,
|
||||
'DestHost' => 'myrouter',
|
||||
'Community' => 'public',
|
||||
'Version' => 2,
|
||||
'MibDirs' => ['dir1','dir2','dir3'],
|
||||
});
|
||||
|
||||
SNMP::Info Specific Arguments :
|
||||
|
||||
@@ -2329,3 +2338,11 @@ COPYRIGHT AND LICENSE
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
POD ERRORS
|
||||
Hey! The above document had some coding errors, which are explained
|
||||
below:
|
||||
|
||||
Around line 82:
|
||||
Non-ASCII character seen before =encoding in '# usually'. Assuming
|
||||
UTF-8
|
||||
|
||||
|
||||
Reference in New Issue
Block a user