source: | realtime.py |
---|---|
orphan: |
realtime -- Realtime commands. Slower, but up-to-date data. vManage collect data from devices in realtime.
- This realtime lookup returns list of SD-WAN devices from vManage, contains multiple arguments with connection and filter details to retrieve realtime device data. Following parameters must be configured in ansible inventor file - ansible_host - ansible_user - ansible_password - vmanage_port - tenant - timeout
Parameter | Choices/Defaults | Comments |
---|---|---|
cmd
list
/ required
|
Group of, or specific command to execute. Group options are all, app-route, bfd, control, dpi, interface, omp, software, system, tunnel. Command options are app-route sla-class, app-route stats, bfd sessions, control connections, control local-properties, dpi summary, interface info, omp adv-routes, omp peers, omp summary, software info, system status, tunnel stats.
|
|
detail
boolean
|
|
Detailed output.
|
not_regex
string
|
Regular expression matching device name, type or model NOT to display.
|
|
reachable
boolean
|
|
Display only reachable devices
|
regex
string
|
Regular expression matching device name, type or model to display
|
|
site
string
|
Select devices with site ID.
|
|
system_ip
string
|
Select device with system IP.
|
- name: Fetch all devices realtime data
debug:
msg: "{{ query('cisco.sastre.realtime', cmd=['app-route','sla-class'])}}"
- name: Fetch devices realtime data with filter arguments
debug:
msg: "{{ query('cisco.sastre.realtime', cmd=['app-route','sla-class'], site='100', detail=True, regex='.*', reachable=true, system_ip='10.1.0.2')}}"