-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_info.yml
46 lines (32 loc) · 966 Bytes
/
test_info.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
- hosts: spine
gather_facts: False
user: root
tasks:
- name: Gather BGP sum information
command: vtysh -c "show ip bgp sum"
register: bgpsum
- debug: var=bgpsum.stdout_lines
- name: Gather BGP route information
command: vtysh -c "show ip bgp"
register: bgproute
- debug: var=bgproute.stdout_lines
- name: Gather traffic information
command: "bwm-ng -A 10 -T avg -c 11 -o plain"
register: traff
- debug: var=traff.stdout_lines
- hosts: leaf
user: root
tasks:
- name: Gather BGP sum information
command: vtysh -c "show ip bgp sum"
register: bgpsum
- debug: var=bgpsum.stdout_lines
- name: Gather BGP route information
command: vtysh -c "show ip bgp"
register: bgproute
- debug: var=bgproute
- name: Gather traffic information
command: "bwm-ng -A 10 -T avg -c 11 -o plain"
register: traff
- debug: var=traff.stdout_lines