Cisco-SNMP
view release on metacpan or search on metacpan
lib/Cisco/SNMP/IP.pm view on Meta::CPAN
=head3 InUnknownProtos() - return IP unknown protocols
$ips->InUnknownProtos();
Return the IP unknown protocols of the device.
=head3 ipInDiscards() - return IP in discards
$ips->ipInDiscards();
Return the IP in discards of the device.
=head3 ipInDelivers() - return IP in delivers state
$ips->ipInDelivers();
Return the IP in delivers of the device.
=head3 ipOutRequests() - return IP out requests
$ips->ipOutRequests();
Return the IP out requests of the device.
=head3 ipOutDiscards() - return IP out discards
$ips->ipOutDiscards();
Return the IP out discards of the device.
=head3 ipOutNoRoutes() - return IP out no routes
$ips->ipOutNoRoutes();
Return the IP out no routes of the device.
=head3 ipReasmTimeout() - return IP reassembly timeout
$ips->ipReasmTimeout();
Return the IP reassembly timeout of the device.
=head3 ipReasmReqds() - return IP reassembly required
$ips->ipReasmReqds();
Return the IP reassembly required of the device.
=head3 ipReasmOKs() - return IP reassembly OK
$ips->ipReasmOKs();
Return the IP reassembly OK of the device.
=head3 ipReasmFails() - return IP reassembly fails
$ips->ipReasmFails();
Return the IP reassembly fails of the device.
=head3 ipFragOKs() - return IP fragments OK
$ips->ipFragOKs();
Return the IP fragments OK of the device.
=head3 ipFragFails() - return IP fragment fails
$ips->ipFragFails();
Return the IP fragment fails of the device.
=head3 ipFragCreates() - return IP fragment creates
$ips->ipFragCreates();
Return the IP fragment creates of the device.
=head2 ip_forwardingOn - enable IP forwarding
$cm->ip_forwardingOn;
Enable IP forwarding (C<ip routing> command).
=head2 ip_forwardingOff - disable IP forwarding
$cm->ip_forwardingOff;
Disable IP forwarding (C<no ip routing> command).
=head2 addr_info() - return IP address info for interfaces
my $addrs = $cm->addr_info();
Populate a data structure with the IP information per interface.
If successful, returns a pointer to a hash containing interface IP
information.
$addrs->{1}->[0]->{'Addr', 'IfIndex, 'NetMask', ...}
[1]->{'Addr', 'IfIndex, 'NetMask', ...}
...
...
$addrs->{n}->[0]->{'Addr', 'IfIndex, 'NetMask', ...}
First hash value is the interface ifIndex, next array is the list of
current IP information per the interface ifIndex.
Allows the following accessors to be called.
=head3 addrAddr() - return IP address
$addrs->addrAddr([$if[,$ip]]);
Return the address of the IP on interface $if, IP address index $ip.
Defaults to 0.
=head3 addrIfIndex() - return IP address interface index
$addrs->addrIfIndex([$if[,$ip]]);
Return the interface index of the IP on interface $if, IP address index $ip.
Defaults to 0.
=head3 addrNetMask() - return IP address mask
$addrs->addrNetMask([$if[,$ip]]);
Return the mask of the IP on interface $if, IP address index $ip.
Defaults to 0.
=head3 addrBcastAddr() - return brodcast address
$addrs->addrBcastAddr([$if[,$ip]]);
Return the broadcast address of the IP on interface $if, IP address index $ip.
Defaults to 0.
( run in 1.309 second using v1.01-cache-2.11-cpan-364913b4093 )