blob: 7c01d3fa5a8cde693fd73f4d8e92ff6c51b45ee2 [file] [log] [blame]
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +03001stats_vty_test> en
2stats_vty_test# configure terminal
3stats_vty_test(config)# list
4...
Vadim Yanitskiybfc83772021-11-08 23:14:29 +03005 stats reporter statsd [NAME]
6 no stats reporter statsd [NAME]
7 stats reporter log [NAME]
8 no stats reporter log [NAME]
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +03009 stats interval <0-65535>
10...
11
12stats_vty_test(config)# ### No reporters shall be configured by default
13stats_vty_test(config)# show running-config
14... !stats reporter
15
16
17stats_vty_test(config)# ### Create a statsd reporter
18stats_vty_test(config)# stats reporter statsd
19stats_vty_test(config-stats)# list
20...
21 local-ip ADDR
22 no local-ip
23 remote-ip ADDR
24 remote-port <1-65535>
25 mtu <100-65535>
26 no mtu
27 prefix PREFIX
28 no prefix
29 level (global|peer|subscriber)
30 enable
31 disable
32 flush-period <0-65535>
33...
34
35stats_vty_test(config-stats)# show running-config
36...
Vadim Yanitskiy4f1c4e32021-11-09 13:38:40 +030037stats interval 5
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030038stats reporter statsd
39 disable
40 level global
41 no prefix
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030042...
43
44stats_vty_test(config-stats)# level subscriber
45stats_vty_test(config-stats)# prefix statsd-prefix
46stats_vty_test(config-stats)# show running-config
47...
48stats reporter statsd
49 disable
50 level subscriber
51 prefix statsd-prefix
52...
53
54stats_vty_test(config-stats)# remote-ip 192.168.1.200
55stats_vty_test(config-stats)# remote-port 6969
56stats_vty_test(config-stats)# show running-config
57...
58stats reporter statsd
59 disable
60 remote-ip 192.168.1.200
61 remote-port 6969
62... !local-ip
63
64stats_vty_test(config-stats)# local-ip 192.168.1.100
65stats_vty_test(config-stats)# show running-config
66...
67stats reporter statsd
68 disable
69 remote-ip 192.168.1.200
70 remote-port 6969
71 local-ip 192.168.1.100
72...
73
74stats_vty_test(config-stats)# no local-ip
75stats_vty_test(config-stats)# show running-config
76...
77stats reporter statsd
78... !local-ip
79
80stats_vty_test(config-stats)# mtu 1337
81stats_vty_test(config-stats)# show running-config
82...
83stats reporter statsd
84 disable
85 remote-ip 192.168.1.200
86 remote-port 6969
87 mtu 1337
88...
89
90stats_vty_test(config-stats)# no mtu
91stats_vty_test(config-stats)# show running-config
92...
93stats reporter statsd
94... !mtu
95
96stats_vty_test(config-stats)# flush-period 43556
97stats_vty_test(config-stats)# show running-config
98...
99stats reporter statsd
100 disable
101 remote-ip 192.168.1.200
102 remote-port 6969
103 level subscriber
104 prefix statsd-prefix
105 flush-period 43556
106...
107
108stats_vty_test(config-stats)# flush-period 0
109stats_vty_test(config-stats)# show running-config
110...
111stats reporter statsd
112... !flush-period
113
114stats_vty_test(config-stats)# enable
115stats_vty_test(config-stats)# exit
116stats_vty_test(config)# show running-config
117...
118stats reporter statsd
119 disable
120 remote-ip 192.168.1.200
121 remote-port 6969
122 level subscriber
123 prefix statsd-prefix
124 enable
125...
126
127
128stats_vty_test(config)# ### Create a statsd reporter
129stats_vty_test(config)# stats reporter log
130stats_vty_test(config-stats)# level peer
131stats_vty_test(config-stats)# prefix log-prefix
132stats_vty_test(config-stats)# enable
133stats_vty_test(config-stats)# exit
134stats_vty_test(config)# show running-config
135...
136stats reporter statsd
137 disable
138 remote-ip 192.168.1.200
139 remote-port 6969
140 level subscriber
141 prefix statsd-prefix
142 enable
143stats reporter log
144 disable
145 level peer
146 prefix log-prefix
147 enable
148...
149
150
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300151stats_vty_test(config)# ### Create an additional statsd reporter
152stats_vty_test(config)# stats reporter statsd statsd-foo
153stats_vty_test(config-stats)# level global
154stats_vty_test(config-stats)# prefix statsd-one-prefix
155stats_vty_test(config-stats)# remote-ip 192.168.2.200
156stats_vty_test(config-stats)# remote-port 9696
157stats_vty_test(config-stats)# flush-period 1
158stats_vty_test(config-stats)# exit
159
160stats_vty_test(config)# ### Create an additional log reporter
161stats_vty_test(config)# stats reporter log log-bar
162stats_vty_test(config-stats)# level global
163stats_vty_test(config-stats)# prefix log-bar-prefix
164stats_vty_test(config-stats)# flush-period 2
165stats_vty_test(config-stats)# exit
166
167stats_vty_test(config)# ### Create an additional log reporter
168stats_vty_test(config)# stats reporter log log-zoo
169stats_vty_test(config-stats)# level global
170stats_vty_test(config-stats)# prefix log-zoo-prefix
171stats_vty_test(config-stats)# flush-period 3
172stats_vty_test(config-stats)# exit
173
174stats_vty_test(config)# ### We should have 5 reporters now
175stats_vty_test(config)# show running-config
176...
177stats reporter statsd
178 disable
179 remote-ip 192.168.1.200
180 remote-port 6969
181 level subscriber
182 prefix statsd-prefix
183 enable
184stats reporter log
185 disable
186 level peer
187 prefix log-prefix
188 enable
189stats reporter statsd statsd-foo
190 disable
191 remote-ip 192.168.2.200
192 remote-port 9696
193 level global
194 prefix statsd-one-prefix
195 flush-period 1
196stats reporter log log-bar
197 disable
198 level global
199 prefix log-bar-prefix
200 flush-period 2
201stats reporter log log-zoo
202 disable
203 level global
204 prefix log-zoo-prefix
205 flush-period 3
206...
207
208
209stats_vty_test(config)# ### Test removing reporters
210stats_vty_test(config)# no stats reporter statsd statsd-foo
211stats_vty_test(config)# no stats reporter log log-bar
212stats_vty_test(config)# no stats reporter log log-zoo
213stats_vty_test(config)# show running-config
214... !(foo|bar|zoo)
215
216
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +0300217stats_vty_test(config)# stats interval 1337
218stats_vty_test(config)# show running-config
219...
220stats interval 1337
221...