NAME

App::Netdisco::SSHCollector::Platform::ASAContext

DESCRIPTION

Collect IPv4 ARP and IPv6 neighbor entries from Cisco ASA devices.

You will need the following configuration for the user to automatically enter enable status after login:

aaa authorization exec LOCAL auto-enable

To use an enable password seaparate from the login password, add an enable_password under device_auth in your configuration file:

device_auth: - tag: sshasa driver: cli platform: ASAContext only: '192.0.2.1' username: oliver password: letmein enable_password: myenablepass

PUBLIC METHODS

arpnip($host, $ssh)

Retrieve ARP and neighbor 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 }.

This was kindly created by @haught and mentioned in https://github.com/netdisco/netdisco/issues/754 as being a context-aware version of ASA.pm.

The code is imported from https://github.com/haught/netdisco/blob/ASAContext/lib/App/Netdisco/SSHCollector/Platform/ASAContext.pm. However this version did not have some ASA.pm improvements added in dc9feb747f..b58a62f300, so we tried to merge all of this in here. However we lack the ability to try it, so we also left in place the original ASA.pm which is confirmed to work.