Cisco::SNMP::System - System Interface for Cisco Management
use Cisco::SNMP::System;
The following methods implement the System MIB defined in SNMPv2-MIB.
SNMPv2-MIB
my $cm = Cisco::SNMP::System->new([OPTIONS]);
Create a new Cisco::SNMP::System object with OPTIONS as optional parameters. See Cisco::SNMP for options.
my @sysOIDs = $cm->sysOIDs();
Return list of System MIB object ID names.
my $sysinfo = $cm->system_info();
Retrieve the system MIB information from the object defined in $cm.
$cm
Allows the following accessors to be called.
$sysinfo->sysDescr();
Return the system description from the system info data structure.
$sysinfo->sysObjectID();
Return the system object ID from the system info data structure.
$sysinfo->sysUpTime();
Return the system uptime from the system info data structure.
$sysinfo->sysContact();
Return the system contact from the system info data structure.
$sysinfo->sysName();
Return the system name from the system info data structure.
$sysinfo->sysLocation();
Return the system location from the system info data structure.
$sysinfo->sysServices([1]);
Return a pointer to an array containing the names of the system services from the system info data structure. For the raw number, use the optional boolean argument.
$sysinfo->sysORLastChange();
Return the system orlastchange from the system info data structure.
$sysinfo->sysOSVersion();
Return the system OS version as parsed from the sysDescr OID. This is a derived value, not an actual MIB OID.
The following methods can be called on the Cisco::SNMP::System object directly to access the values directly.
Get System OIDs.
Set System OIDs.
The following are inherited methods. See Cisco::SNMP for more information.
None by default.
This distribution comes with several scripts (installed to the default bin install directory) that not only demonstrate example uses but also provide functional execution.
bin
This software is released under the same terms as Perl itself. If you don't know what that means visit http://perl.com/.
Copyright (C) Michael Vincent 2015
http://www.VinsWorld.com
All rights reserved
To install Cisco::SNMP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cisco::SNMP
CPAN shell
perl -MCPAN -e shell install Cisco::SNMP
For more information on module installation, please visit the detailed CPAN module installation guide.