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
      (Oliver Gorwits)
--- Begin Message ---
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>
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>
> *Sent:* 22 August 2025 12:54 AM
> *To:* Jethro Binks <jethro.bi...@strath.ac.uk>; Cuttler, Brian R (HEALTH)
> via netdisco-users <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
> https://sourceforge.net/p/netdisco/mailman/netdisco-users/
>

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

Reply via email to