DX NetOps

 View Only
  • 1.  Using Spectrum REST API to retrieve ARP table

    Posted Sep 17, 2019 10:55 AM
    Hi,

    From the Spectrum client, we can retrieve the ARP table on a device under Component Detail > Interface Address Translation Table.

    Does anyone know if this operation is possible using the Spectrum REST API and whether it can return the same information?

    Thanks,
    John


  • 2.  RE: Using Spectrum REST API to retrieve ARP table

    Broadcom Employee
    Posted Sep 18, 2019 05:21 PM
    Hi John,

    The GET model call will allow you to specify a group of attributes to retrieve

    ipNetToMediaIfIndex 0x1103f 1.3.6.1.2.1.4.22.1.1
    ipNetToMediaNetAddress 0x11041 1.3.6.1.2.1.4.22.1.3
    ipNetToMediaPhysAddress 0x11040 1.3.6.1.2.1.4.22.1.2
    ipNetToMediaType 0x11042 1.3.6.1.2.1.4.22.1.4

    http://<oneClickServer>:<port>/spectrum/restful/model/<model_handle>?attr=0x1006e&attr=0x10000&attr=0x1103f&attr=0x11040&attr=0x11041&attr=0x11042

    RESTful - GET model
    One thing to keep in mind is that these are external attributes and need to be polled to retrieve their values.

    Greg





  • 3.  RE: Using Spectrum REST API to retrieve ARP table

    Posted Sep 19, 2019 03:50 AM
    Thanks, Greg. That works perfectly.