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. When you specify the URI of a resource to monitor, you omit the IP address or host name.

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