Developer

 View Only
last person joined: yesterday 

Expand all | Collapse all

Rest API Reference of TX Drops - Aruba Switch 2930F

This thread has been viewed 48 times
  • 1.  Rest API Reference of TX Drops - Aruba Switch 2930F

    Posted May 22, 2023 01:52 PM

    Hello,

    I am trying to get Tx Drops from Aruba switch (2930F) with primary software version WC.16.10. I have looked api guide manuals and succesfully got responses with command "ipadress/rest/v1/system/status" from terminal address using the sessionId created for login. 
    However, I could not find the  correct reference address for Tx Drops or Cpu usage etc. 
    Is not there any API reference for getting TX Drop status?

    These are the websites I have searched:
    https://asp.arubanetworks.com/downloads/documents/RmlsZTo5OTBmZmUwZS03YjE3LTExZWQtYTcwNS1jMzc4NjBkYWVhMDY%3Dhttps://developer.arubanetworks.com/aruba-aoscx/reference/put_system-aaa-accounting-attributes-aaa-accounting-attributes-session-type
    https://developer.arubanetworks.com/aruba-aos/reference/get_object-ntp-server-disable


    Thank you.



  • 2.  RE: Rest API Reference of TX Drops - Aruba Switch 2930F

    MVP GURU
    Posted May 22, 2023 02:54 PM

    Hi,

    You can use rest/vX/port-statistics (with X the API version from 1 to 8...)

    For example with PowerArubaCP

    Get-ArubaSWPortStatistics -Verbose                      
    VERBOSE: https://192.168.44.241:443/rest/v4/port-statistics
    VERBOSE: HTTP/1.1 GET with 0-byte payload
    VERBOSE: received -byte response of content type application/json
                                                                                                                            
    uri               : /port-statistics/1
    id                : 1
    name              : 
    packets_tx        : 432829785
    packets_rx        : 264824969
    bytes_tx          : 3719541021
    bytes_rx          : 1690748110
    throughput_tx_bps : 361344
    throughput_rx_bps : 73104
    error_tx          : 0
    error_rx          : 1
    drop_tx           : 0
    port_speed_mbps   : 1000


    for CPU status, you can try rest/vX/system/status/switch but not sure if there is CPU info... 



    ------------------------------
    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: Rest API Reference of TX Drops - Aruba Switch 2930F

    Posted May 23, 2023 05:17 AM

    Hi again,

    Thank you for your reply alaguatte.

    I can see details of the port statistics now. However, what I read is different from the information in the aruba panel.
    While there is no tx drop which I read from aruba panel, I read drops as "drop_tx : 275429" from terminal with using command above.
    Even bytes_tx and Total Bytes are different from the panel and the ones that I read from termial.

    Do I miss something? How can i find api references for tx drops or other statistics that switch shows me as status from the panel?

    Thank you again
    Regards






  • 4.  RE: Rest API Reference of TX Drops - Aruba Switch 2930F

    MVP GURU
    Posted May 23, 2023 08:10 AM

    Hi,

    Strange, What firmware release ?
    do you have compare with CLI ?



    ------------------------------
    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
    ------------------------------



  • 5.  RE: Rest API Reference of TX Drops - Aruba Switch 2930F

    Posted May 23, 2023 08:37 AM

    Current firmware version is WC.16.10.0009
    I tried getting information with different vX api versions, but could not find the ones equal with the panel values. 
    And I do not think changing api version shows me different values.
    I can check stasuses only from browser with using the pabel Aruba provides. I dont know how to compare with CLI.

    Thank you.  




  • 6.  RE: Rest API Reference of TX Drops - Aruba Switch 2930F

    MVP GURU
    Posted May 23, 2023 09:14 AM
    show interface stats 


    ------------------------------
    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
    ------------------------------



  • 7.  RE: Rest API Reference of TX Drops - Aruba Switch 2930F

    Posted May 24, 2023 03:58 AM

    Thank you again,

    I can see the port-statistics with command :
    "show interface"

    Unfortunetely there are drops tx on switch ports. 
    However, Aruba panel still shows 0% tx_drops on total, while there are 1,667,651 bytes maximum drop one of the ports. 
    Is there a threshold or is it possible that it floors values to "0" while calculating the percentage of drop_tx?

    One more question, is there a way to find which packages are dropped on the switch?

    Thank you again.
    Regards






  • 8.  RE: Rest API Reference of TX Drops - Aruba Switch 2930F

    MVP GURU
    Posted May 25, 2023 11:02 AM

    What packages ?

    I think, you need to open a case to TAC to get info about why don't get the same number with API and GUI... 



    ------------------------------
    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
    ------------------------------