Send netdisco-users mailing list submissions to
        netdisco-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        netdisco-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        netdisco-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Re: Reading ARP from Cisco FTD (Christian Ramseyer)
   2. Re: Reading ARP from Cisco FTD (Sebastian R?sch)
--- Begin Message --- Thanks Sebastian, I've added it (with some additional s/ASA/FTD/ in the comments)

Cheers
Christian

On 30.09.22 13:22, Sebastian Rösch wrote:

Hi there,

I´m wondering, if somebody already tried to arpnip ARP entries from Cisco FTD? I´m talking about real Cisco FTD with FTD, not the ASA image. In my case, ND basically finds 0 Arp entries. Hardware is FTD 2130 with SW version v7.0.1.

I solved the issue by adapting the ASA.pm file. Could somebody implent this as an additional file FTD.pm in a future ND version?

Workarround in ASA.pm:

/home/netdisco/perl5/lib/perl5/App/Netdisco/SSHCollector/Platform/ASA.pm

It works with following lines adapted:

new:

Define Platform

Line 1    package App::Netdisco::SSHCollector::Platform::FTD;

Line 5 App::Netdisco::SSHCollector::Platform::FTD

FTD shows > (bigger than) after login:

Line79                   $prompt = qr/>\s*$/;

Not needed Firepower sends all entries at once:

Line 82 # $expect->send("terminal pager 2147483647\n");

Line 83 #             ($pos, $error, $match, $before, $after) = $expect->expect(5, -re, $prompt);

Name Command not available:

Line 85 # $expect->send("show names\n");

Line 86 #             ($pos, $error, $match, $before, $after) = $expect->expect(60, -re, $prompt);

Line 87 #             my @names = split(m/\n/, $before);

Line 103 #           foreach my $name (@names) {

Line 104 #                    if ($name =~ qr/name\s([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\s([\w-]*)/x) {

Line 105 #                       if ($ip eq $2) {

Line 106 #                          $ip = $1;

Line 107 #                 }

Line 108 #                          }

Line 109 #           }

You can also use the attached FTD.pm File.

Best Regards,

Sebastian



_______________________________________________
Netdisco mailing list
netdisco-users@lists.sourceforge.net
https://sourceforge.net/p/netdisco/mailman/netdisco-users/

--
Christian Ramseyer, netnea ag
Network Management. Security. OpenSource.
https://www.netnea.com
Phone: +41 79 644 77 64

--- End Message ---
--- Begin Message ---
Not a problem,

thanks for updating the code.


Have a good day.
Sebastian


Von: Christian Ramseyer <ramse...@netnea.com>
Gesendet: Freitag, 30. September 2022 15:03
An: Sebastian Rösch <roe...@alcera.de>; netdisco-users@lists.sourceforge.net
Betreff: Re: [Netdisco] Reading ARP from Cisco FTD

Thanks Sebastian, I've added it (with some additional s/ASA/FTD/ in the 
comments)

Cheers
Christian
On 30.09.22 13:22, Sebastian Rösch wrote:
Hi there,

I´m wondering, if somebody already tried to arpnip ARP entries from Cisco FTD? 
I´m talking about real Cisco FTD with FTD, not the ASA image. In my case, ND 
basically finds 0 Arp entries. Hardware is FTD 2130 with SW version v7.0.1.


I solved the issue by adapting the ASA.pm file. Could somebody implent this as 
an additional file FTD.pm in a future ND version?




Workarround in ASA.pm:

/home/netdisco/perl5/lib/perl5/App/Netdisco/SSHCollector/Platform/ASA.pm



It works with following lines adapted:

new:

Define Platform
Line 1    package App::Netdisco::SSHCollector::Platform::FTD;
Line 5    App::Netdisco::SSHCollector::Platform::FTD

FTD shows > (bigger than) after login:
Line79                   $prompt = qr/>\s*$/;

Not needed Firepower sends all entries at once:
Line 82 #             $expect->send("terminal pager 2147483647\n");
Line 83 #             ($pos, $error, $match, $before, $after) = 
$expect->expect(5, -re, $prompt);

Name Command not available:
Line 85 #             $expect->send("show names\n");
Line 86 #             ($pos, $error, $match, $before, $after) = 
$expect->expect(60, -re, $prompt);
Line 87 #             my @names = split(m/\n/, $before);
Line 103 #           foreach my $name (@names) {
Line 104 #                    if ($name =~ 
qr/name\s([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\s([\w-]*)/x) {
Line 105 #                       if ($ip eq $2) {
Line 106 #                          $ip = $1;
Line 107 #                                          }
Line 108 #                          }
Line 109 #           }


You can also use the attached FTD.pm File.



Best Regards,
Sebastian














_______________________________________________

Netdisco mailing list

netdisco-users@lists.sourceforge.net<mailto:netdisco-users@lists.sourceforge.net>

https://sourceforge.net/p/netdisco/mailman/netdisco-users/



--

Christian Ramseyer, netnea ag

Network Management. Security. OpenSource.

https://www.netnea.com

Phone: +41 79 644 77 64

--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to