Developer

 View Only
  • 1.  AOS-CX NAE read data from VSX-Peer

    Posted Jan 08, 2025 09:30 AM

    Hi everyone,

    I'm currently in the process to get a better understanding for the different types of traffic on my networks. I thought that this could be a good opportunity to use NAE for visualization. So I wrote a small and simple python script to read the rx ucast/mcast/bcast pps for my VSX-Pair. Every downlink to the access is a mclag with one interface per vsx-member. In order to see everything at a glance, my idea was to run the script only on the primary switch, but also show the data for the interface of the secondary switch.

    For the local interface of the primary switch the graph seems to be fine, but the values of the secondary switch are always the same and are not correct. Even if I disable the interface on the primary switch, the values are always the same.

    My understanding is, that I should be able to receive the data of the secondary switch by adding "/vsx-peer" in front of the uri. Am I wrong here?

    The uri's I'm using are:

    uri1 = '/rest/v10.04/system/interfaces/{}?attributes=rate_statistics.rx_ucast_packets_per_second'
    self.m1 = Monitor(uri1, 'Local Rx Ucast Rate', [self.params['int_local']])
            
    uri2 = '/vsx-peer/rest/v10.04/system/interfaces/{}?attributes=rate_statistics.rx_ucast_packets_per_second'
    self.m2 = Monitor(uri2, 'Peer Rx Ucast Rate', [self.params['int_peer']])

    Best regards and a happy new year.



  • 2.  RE: AOS-CX NAE read data from VSX-Peer

    Posted Jan 08, 2025 10:00 AM

    Hi Martin,


    Very starnge, what the firmware release of the switch ? (and model ?)

    do you have try other API release ? (10.08 or higher ?)



    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCL: Powershell Module to use Aruba Central

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------



  • 3.  RE: AOS-CX NAE read data from VSX-Peer

    Posted Jan 08, 2025 10:27 AM
    Edited by AirMart Jan 10, 2025 03:19 AM

    Switch model is 8360v2 with firmware version 10.13.1060.

    I'll test a higher API version.

    Edit: The result with API v10.10 looks very similar. The peer rates are just straight lines. They are not zero, but definitely not right.

    Edit2: My best guess is that the value is only queried once from the peer at start of the agent. Perhaps this is not supported?




  • 4.  RE: AOS-CX NAE read data from VSX-Peer

    Posted Jan 17, 2025 06:03 AM

    sorry i don't see your edit...

    Good question may be need to ask TAC or your SE 



    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCL: Powershell Module to use Aruba Central

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------