Net::SNMP::HostInfo::UdpEntry - An entry in the udpTable of a MIB-II host |
Net::SNMP::HostInfo::UdpEntry - An entry in the udpTable of a MIB-II host
use Net::SNMP::HostInfo;
$host = shift || 'localhost'; $hostinfo = Net::SNMP::HostInfo->new(Hostname => $host);
print "\nUdp Listeners Table:\n"; printf "%-15s %-5s\n", qw/LocalAddress Port/; for $entry ($hostinfo->udpTable) { printf "%-15s %-5s\n", $entry->udpLocalAddress, $entry->udpLocalPort; }
``Information about a particular current UDP listener.''
James Macfarlane, <jmacfarla@cpan.org>
Net::SNMP::HostInfo
Net::SNMP::HostInfo::UdpEntry - An entry in the udpTable of a MIB-II host |