Configuration and state database

The ArubaOS-CX operating system is a modular, database-centric operating system. Every aspect of the switch configuration and state information is modeled in the ArubaOS-CX switch database and is accessible through the REST API.

Developers can access a specific configuration, statistic, or status result for any aspect of the switch through its REST URI. Switches that are members of a stack are treated as a single switch.

For example:

  • The following URI accesses the link state information about interface 1/1/5:

    /rest/v1/system/ports/1%2F1%2F5?attributes=link_state
  • The following URI accesses the link state of all interfaces on the switch:

    /rest/v1/system/interfaces/*?attributes=link_state
  • The following URI accesses the number of received packets on interface 1/1/5:

    /rest/v1/system/interfaces/1%2F1%2F5?attributes=statistics.rx_packets
  • The following URI accesses the link state information about interface 2/1/5 (stack member 2, slot 1, port 5):

    /rest/v1/system/ports/2%2F1%2F5?attributes=link_state