Oliver Gorwits > App-Netdisco > App::Netdisco::Util::PortMAC

Download:
App-Netdisco-2.028000.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

App::Netdisco::Util::PortMAC

DESCRIPTION ^

Helper subroutine to support parts of the Netdisco application.

There are no default exports, however the :all tag will export all subroutines.

EXPORT_OK ^

get_port_macs

Returns a Hash reference of { MAC => IP } for all interface MAC addresses on all devices.

If you need to filter for a given device, simply compare the IP (hash value) to your device's IP.

syntax highlighting: