Cisco::SNMP::ARP - ARP Interface for Cisco Management
use Cisco::SNMP::ARP;
The following methods are for ARP cache. These methods implement the ipNetToMediaTable object of RFC1213-MIB.
ipNetToMediaTable
RFC1213-MIB
my $cm = Cisco::SNMP::ARP->new([OPTIONS]);
Create a new Cisco::SNMP::ARP object with OPTIONS as optional parameters. See Cisco::SNMP for options.
my @arpOIDs = $cm->arpOIDs();
Return list of ARP MIB object ID names.
$cm->arp_clear(ifIndex,IP);
Clear the DYNAMIC ARP entry at interface index ifIndex for IP address IP. Returns undefined on error.
DYNAMIC
ifIndex
IP
my $arpinfo = $cm->arp_info();
Populate a data structure with ARP information. If successful, returns a pointer to an array containing ARP information.
$arpinfo->[0]->{'IfIndex', 'PhysAddress', ...} $arpinfo->[1]->{'IfIndex', 'PhysAddress', ...} ... $arpinfo->[n]->{'IfIndex', 'PhysAddress', ...}
Allows the following accessors to be called.
$arpinfo->arpIfIndex([#]);
Return the interface index of the ARP at index '#'. Defaults to 0.
$arpinfo->arpPhysAddress([#]);
Return the physical address of the ARP at index '#'. Defaults to 0.
$arpinfo->arpNetAddress([#]);
Return the network address of the ARP at index '#'. Defaults to 0.
$arpinfo->arpType([#]);
Return the type of the ARP at index '#'. Defaults to 0.
The following methods can be called on the Cisco::SNMP::ARP object directly to access the values directly.
Get ARP OIDs where (i) is the interface index and (a) is the IP address. If (l,s) not provided, uses 0.
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.