AQL Examples

Note

Some telemetry states are not streamed by default and they would need to be added to the TerminAttr include list using the tastreaming.TerminattrStreaming service API, which can be done either through the UI or through the CLI e.g.:

Using the Service Explorer UI:

  1. Access Service Explorer by going to https://x.x.x.x/cv/settings/service-explorer , where x.x.x.x is the CVP IP/FQDN or the CVaaS regional URL

  2. Fill out the request:

Service Name: tastreaming.TerminattrStreaming

Method Name: SubscribeTAPaths

  1. Copy and paste like the screen below:

Parameters:

{
   "filter": {
      "app_name": "allowbgpstates",
      "include_paths": ["/Smash/routing/bgp/bgpPeerInfoStatus/default/bgpPeerStatisticsEntry"],
      "exclude_paths": []
   }
}
  1. Click on Send Request and check on the right hand side that the result is root: {} 0 keys.

Service Explorer Example

Alternatively, you can use the CLI to add the path to the TerminAttr include list using a cURL request.

On-prem cURL example:

curl -sS -kX POST --header 'Accept: application/json' -b access_token=`cat token` \
   'https://192.0.2.1/api/v3/services/tastreaming.TerminattrStreaming/SubscribeTAPaths' \

   -d '{ "filter": { "app_name": "app1", "include_paths": [ "/Sysdb/bridging/igmpsnooping" ]}}'

CVaaS cURL example:

curl -sS -kX POST --header 'Accept: application/json' -b access_token=`cat token` \
   'https://www.arista.io/api/v3/services/tastreaming.TerminattrStreaming/SubscribeTAPaths' \

   -d '{ "filter": { "app_name": "app1", "include_paths": [ "/Sysdb/bridging/igmpsnooping" ]}}'

Result:

[{}]

For CVaaS please make sure to use the correct regional URL:

  • United States 1a: www.cv-prod-us-central1-a.arista.io

  • United States 1c: www.cv-prod-us-central1-c.arista.io

  • Japan: www.cv-prod-apnortheast-1.arista.io

  • Germany: www.cv-prod-euwest-2.arista.io

  • Australia: www.cv-prod-ausoutheast-1.arista.io

  • Canada: www.cv-prod-na-northeast1-b.arista.io

  • United Kingdom: www.cv-prod-uk-1.arista.io