Net::SNMP::HostInfo::IpAddrEntry - An entry in the ipAddrTable of a MIB-II host
|
Net::SNMP::HostInfo::IpAddrEntry - An entry in the ipAddrTable of a MIB-II host
use Net::SNMP::HostInfo;
$host = shift || 'localhost';
$hostinfo = Net::SNMP::HostInfo->new(Hostname => $host);
print "\nAddress Table:\n";
printf "%-15s %-3s %-15s %-5s %5s\n",
qw/Addr If NetMask Bcast ReasmMaxSize/;
for $addr ($hostinfo->ipAddrTable) {
printf "%-15s %-3s %-15s %-5s %5s\n",
$addr->ipAdEntAddr,
$addr->ipAdEntIfIndex,
$addr->ipAdEntNetMask,
$addr->ipAdEntBcastAddr,
$addr->ipAdEntReasmMaxSize;
}
``The addressing information for one of this
entity's IP addresses.''
- ipAdEntAddr
-
``The IP address to which this entry's addressing
information pertains.''
- ipAdEntIfIndex
-
``The index value which uniquely identifies the
interface to which this entry is applicable. The
interface identified by a particular value of this
index is the same interface as identified by the
same value of ifIndex.''
- ipAdEntNetMask
-
``The subnet mask associated with the IP address of
this entry. The value of the mask is an IP
address with all the network bits set to 1 and all
the hosts bits set to 0.''
- ipAdEntBcastAddr
-
``The value of the least-significant bit in the IP
broadcast address used for sending datagrams on
the (logical) interface associated with the IP
address of this entry. For example, when the
Internet standard all-ones broadcast address is
used, the value will be 1. This value applies to
both the subnet and network broadcasts addresses
used by the entity on this (logical) interface.''
- ipAdEntReasmMaxSize
-
``The size of the largest IP datagram which this
entity can re-assemble from incoming IP fragmented
datagrams received on this interface.''
James Macfarlane, <jmacfarla@cpan.org>
Net::SNMP::HostInfo
Net::SNMP::HostInfo::IpAddrEntry - An entry in the ipAddrTable of a MIB-II host
|