App::Netdisco::SSHCollector::Platform::ASAContext
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:
enable
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:
enable_password
device_auth
device_auth: - tag: sshasa driver: cli platform: ASAContext only: '192.0.2.1' username: oliver password: letmein enable_password: myenablepass
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.
$host
$ssh
Returns a list of hashrefs in the format { mac => MACADDR, ip => IPADDR }.
{ 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.
To install App::Netdisco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Netdisco
CPAN shell
perl -MCPAN -e shell install App::Netdisco
For more information on module installation, please visit the detailed CPAN module installation guide.