App::Netdisco::SSHCollector::Platform::Linux
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'
- 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
}".