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: Trying to fetch arp entries from ArubaOSCX, again
      (Jethro Binks)
--- Begin Message ---
Mmm yes indeed, the "arpnip::nodes" comes from the Configuration documentation 
("The action key allows you to restrict credentials to certain actions or even 
stages of actions on the remote device, such as ARP table gathering 
(arpnip::nodes)", but I've tried with action: arpnip and no action at all and 
the effect is the same.

In fact if I introduce a deliberate syntax error into ArubaCX.pm, or 
alternatively set a nonsense platform: ArubaCXXX, it makes no difference 
either, so it's like this is never properly trying.  It does use SNMP to gather 
Arpnip::Subnets (correctly).

I have to run an older version (2.076005) because of other issues just now, so 
it's entirely possibly I'm hitting an issue already resolved, although I've 
been through the notes and a code diff and can't spot anything too relevant.

Aha!

I moved my cli driver section from the bottom of the device_auth credentials to 
the top, and it now hits the syntax error I introduced.

So now I have:

[54908] 2025-08-24 15:03:43 debug 130.159.1.52 54908 arpnip()
[54908] 2025-08-24 15:03:47 debug ⬅ (done) Gathered arp caches from 130.159.1.52
[54908] 2025-08-24 15:03:47 debug ⮕ worker Arpnip::Nodes p100
[54908] 2025-08-24 15:03:47 debug ⬅ (info) skip: namespace passed at higher 
priority
[54908] 2025-08-24 15:03:47 debug ⮕ worker Arpnip::Subnets p100

Although it didn't actually get any:

[54908] 2025-08-24 15:03:48 debug  resolving 0 ARP entries with max 50 
outstanding requests

But that allowed me to finally check and fix the script which literally took 2 
mins to fix the regexp, and now it all works.

I have added to the discussion: 
https://github.com/netdisco/netdisco/discussions/869

And also made some references between the various other Aruba-related issues 
that touch on naming problems in various respects.

Jethro.


.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .

Jethro R Binks, Network Manager,

Information Services Directorate, University Of Strathclyde, Glasgow, UK


The University of Strathclyde is a charitable body, registered in Scotland, 
number SC015263.

________________________________
From: Nick Nauwelaerts <nick.nauwelae...@aquafin.be>
Sent: 24 August 2025 1:34 PM
To: Jethro Binks <jethro.bi...@strath.ac.uk>; Oliver Gorwits <oli...@cpan.org>
Cc: Cuttler, Brian R (HEALTH) via netdisco-users 
<netdisco-users@lists.sourceforge.net>
Subject: Re: [Netdisco] Trying to fetch arp entries from ArubaOSCX, again

all the examples i see just use arpnip instead of arpnip::nodes

perhaps change your config action to plain "arpnip" & make sure there's an 
arpnip function in your ssh module

________________________________
From: Jethro Binks <jethro.bi...@strath.ac.uk>
Sent: Sunday, August 24, 2025 12:39
To: Oliver Gorwits <oli...@cpan.org>
Cc: Cuttler, Brian R (HEALTH) via netdisco-users 
<netdisco-users@lists.sourceforge.net>
Subject: Re: [Netdisco] Trying to fetch arp entries from ArubaOSCX, again

Thanks Oliver.

Any thoughts on why I can't get the SSHCollector script to trigger though 
("(info) skip: driver or action not applicable"),  ND2_LOG_PLUGINS=1 providing 
no further clues.

While I potentially have a workaround now using that -p option, that's still 
going to need work and is still < SSHCollector ( < SNMP::Info 
ipNetToPhysicalTable).  It must be something simple but I can't see it.

Jethro.


.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .

Jethro R Binks, Network Manager,

Information Services Directorate, University Of Strathclyde, Glasgow, UK


The University of Strathclyde is a charitable body, registered in Scotland, 
number SC015263.

________________________________
From: Oliver Gorwits <oli...@cpan.org>
Sent: 22 August 2025 10:02 PM
To: Jethro Binks <jethro.bi...@strath.ac.uk>
Cc: Cuttler, Brian R (HEALTH) via netdisco-users 
<netdisco-users@lists.sourceforge.net>
Subject: Re: [Netdisco] Trying to fetch arp entries from ArubaOSCX, again

Hi Jethro,

Ah you're right the API wiki page has Perl syntax (not JSON) because the 
mojolicious library will convert it. The netdisco-do man page is misleading.

It actually means to refer to the API spec itself which is here: 
https://netdisco2-demo.herokuapp.com/swagger-ui/?url=/swagger.json#/Objects/put_api_v1_object_device__ip__arps

I'll see if we can make netdisco-do doc clearer.

By the way, glad to see -p option being used. In the next major version this is 
changed to be "-e '@/path/to/file'" or you can pipe it in with "-e '@-'". Just 
to make it a bit cleaner across different commands.

regards
oliver.

On Fri, 22 Aug 2025 at 13:32, Jethro Binks 
<jethro.bi...@strath.ac.uk<mailto:jethro.bi...@strath.ac.uk>> wrote:
Hey,

I've tried it with and without the action:.

Adding env ND2_LOG_PLUGINS=1 provided no additional output here:

[35351] 2025-08-22 10:42:36 debug ⬅ (done) arpnip is able to run
[35351] 2025-08-22 10:42:36 debug //// EARLY \\\\ phase
[35351] 2025-08-22 10:42:36 debug ⮕ worker Arpnip::Nodes p0 "prepare common 
data"
[35351] 2025-08-22 10:42:36 debug //// MAIN \\\\ phase
[35351] 2025-08-22 10:42:36 debug ⮕ worker Arpnip::Nodes p1000000
[35351] 2025-08-22 10:42:36 debug ⬅ (info) skip: arp table data supplied by 
other source
[35351] 2025-08-22 10:42:36 debug ⮕ worker Arpnip::Nodes p200
[35351] 2025-08-22 10:42:36 debug ⬅ (info) skip: driver or action not applicable
[35351] 2025-08-22 10:42:36 debug ⮕ worker Arpnip::Nodes p100
[35351] 2025-08-22 10:42:36 debug snmp reader cache warm: [ipaddress]

But I didn't know about that, so I will remember it in future thanks.

Failing progress here, I took a look at doing it out-of-band, and then using:

    Submit arpnip results directly to Netdisco by putting the JSON data in a
    file and using the "-p" option (see API web docs for data format
    example):

     ~/bin/netdisco-do arpnip -d 192.0.2.1 -p /tmp/arp-table.json

Which also seems a more recent addition I'd not noticed before.  But while the 
API docs suggest the format for the JSON should be:

[
  { mac => "aa:bb:cc:dd:ee:ff", ip => "A.B.C.D" }
]

I had to write it such:

[
  { mac: "aa:bb:cc:dd:ee:ff", ip: "A.B.C.D" }
]

But it did work!  So that's another interim workaround perhaps.  Still icky.

J.


.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .

Jethro R Binks, Network Manager,

Information Services Directorate, University Of Strathclyde, Glasgow, UK


The University of Strathclyde is a charitable body, registered in Scotland, 
number SC015263.

________________________________
From: Christian Ramseyer <ramse...@netnea.com<mailto:ramse...@netnea.com>>
Sent: 22 August 2025 12:54 AM
To: Jethro Binks <jethro.bi...@strath.ac.uk<mailto:jethro.bi...@strath.ac.uk>>; 
Cuttler, Brian R (HEALTH) via netdisco-users 
<netdisco-users@lists.sourceforge.net<mailto:netdisco-users@lists.sourceforge.net>>
Subject: Re: [Netdisco] Trying to fetch arp entries from ArubaOSCX, again

Hi!

On 21.08.2025 21:31, Jethro Binks wrote:
>      action: arpnip::nodes

Your config looks fine at a first glance except for I have never seen
action: used in device_auth... just as a wild guess maybe try without it?

You can also try ND2_LOG_PLUGINS=1 as env var to get some more output
from plugin and worker selection, maybe that helps.

Cheers
Christian


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

________________________________

Volg Aquafin op LinkedIn<http://www.linkedin.com/company/aquafin/products> | 
Facebook<https://www.facebook.com/AquafinNV> | 
Instagram<https://www.instagram.com/aquafin_nv/> | 
YouTube<http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee>
In het kader van de uitoefening van onze taken verzamelen we bij Aquafin 
persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de 
betrokkenen zijn, kan je nalezen in onze privacy 
policy<https://www.aquafin.be/nl-be/privacy-policy>.
  P Denk aan het milieu. Druk deze mail niet onnodig af.
[www.openbedrijvendag.be]<https://www.openbedrijvendag.be/bedrijven/aquafin/>

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

Reply via email to