The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Netdisco::SSHCollector::Platform::Linux

DESCRIPTION

Collect ARP entries from Linux routers

This collector uses "arp" as the command for the arp utility on your system. If you wish to specify an absolute path, then add an arp_command item to your configuration:

 device_auth:
   - tag: sshlinux
     driver: cli
     platform: Linux
     only: '192.0.2.1'
     username: oliver
     password: letmein
     arp_command: '/usr/sbin/arp'

PUBLIC METHODS

arpnip($host, $ssh)

Retrieve ARP entries from device. $host is the hostname or IP address of the device. $ssh is a Net::OpenSSH connection to the device.

Returns a list of hashrefs in the format { mac => MACADDR, ip => IPADDR }.