blob: 8732d50b81e9837760bafa9f1c029a7478ffb191 [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>
Philipp Maierb1ef8f52021-12-06 16:31:02 +010010 stats-tcp interval <0-65535>
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030011...
12
13stats_vty_test(config)# ### No reporters shall be configured by default
14stats_vty_test(config)# show running-config
15... !stats reporter
16
17
18stats_vty_test(config)# ### Create a statsd reporter
19stats_vty_test(config)# stats reporter statsd
20stats_vty_test(config-stats)# list
21...
22 local-ip ADDR
23 no local-ip
24 remote-ip ADDR
25 remote-port <1-65535>
26 mtu <100-65535>
27 no mtu
28 prefix PREFIX
29 no prefix
30 level (global|peer|subscriber)
31 enable
32 disable
33 flush-period <0-65535>
34...
35
36stats_vty_test(config-stats)# show running-config
37...
Vadim Yanitskiy4f1c4e32021-11-09 13:38:40 +030038stats interval 5
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030039stats reporter statsd
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030040 level global
41 no prefix
Vadim Yanitskiyd6b00592021-11-09 13:46:55 +030042 disable
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030043...
44
45stats_vty_test(config-stats)# level subscriber
46stats_vty_test(config-stats)# prefix statsd-prefix
47stats_vty_test(config-stats)# show running-config
48...
49stats reporter statsd
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030050 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
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030059 remote-ip 192.168.1.200
60 remote-port 6969
61... !local-ip
62
63stats_vty_test(config-stats)# local-ip 192.168.1.100
64stats_vty_test(config-stats)# show running-config
65...
66stats reporter statsd
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030067 remote-ip 192.168.1.200
68 remote-port 6969
69 local-ip 192.168.1.100
70...
71
72stats_vty_test(config-stats)# no local-ip
73stats_vty_test(config-stats)# show running-config
74...
75stats reporter statsd
76... !local-ip
77
78stats_vty_test(config-stats)# mtu 1337
79stats_vty_test(config-stats)# show running-config
80...
81stats reporter statsd
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030082 remote-ip 192.168.1.200
83 remote-port 6969
84 mtu 1337
85...
86
87stats_vty_test(config-stats)# no mtu
88stats_vty_test(config-stats)# show running-config
89...
90stats reporter statsd
91... !mtu
92
93stats_vty_test(config-stats)# flush-period 43556
94stats_vty_test(config-stats)# show running-config
95...
96stats reporter statsd
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030097 remote-ip 192.168.1.200
98 remote-port 6969
99 level subscriber
100 prefix statsd-prefix
101 flush-period 43556
102...
103
104stats_vty_test(config-stats)# flush-period 0
105stats_vty_test(config-stats)# show running-config
106...
107stats reporter statsd
108... !flush-period
109
110stats_vty_test(config-stats)# enable
111stats_vty_test(config-stats)# exit
112stats_vty_test(config)# show running-config
113...
114stats reporter statsd
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +0300115 remote-ip 192.168.1.200
116 remote-port 6969
117 level subscriber
118 prefix statsd-prefix
119 enable
120...
121
122
123stats_vty_test(config)# ### Create a statsd reporter
124stats_vty_test(config)# stats reporter log
125stats_vty_test(config-stats)# level peer
126stats_vty_test(config-stats)# prefix log-prefix
127stats_vty_test(config-stats)# enable
128stats_vty_test(config-stats)# exit
129stats_vty_test(config)# show running-config
130...
131stats reporter statsd
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +0300132 remote-ip 192.168.1.200
133 remote-port 6969
134 level subscriber
135 prefix statsd-prefix
136 enable
137stats reporter log
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +0300138 level peer
139 prefix log-prefix
140 enable
141...
142
143
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300144stats_vty_test(config)# ### Create an additional statsd reporter
145stats_vty_test(config)# stats reporter statsd statsd-foo
146stats_vty_test(config-stats)# level global
147stats_vty_test(config-stats)# prefix statsd-one-prefix
148stats_vty_test(config-stats)# remote-ip 192.168.2.200
149stats_vty_test(config-stats)# remote-port 9696
150stats_vty_test(config-stats)# flush-period 1
151stats_vty_test(config-stats)# exit
152
153stats_vty_test(config)# ### Create an additional log reporter
154stats_vty_test(config)# stats reporter log log-bar
155stats_vty_test(config-stats)# level global
156stats_vty_test(config-stats)# prefix log-bar-prefix
157stats_vty_test(config-stats)# flush-period 2
158stats_vty_test(config-stats)# exit
159
160stats_vty_test(config)# ### Create an additional log reporter
161stats_vty_test(config)# stats reporter log log-zoo
162stats_vty_test(config-stats)# level global
163stats_vty_test(config-stats)# prefix log-zoo-prefix
164stats_vty_test(config-stats)# flush-period 3
165stats_vty_test(config-stats)# exit
166
167stats_vty_test(config)# ### We should have 5 reporters now
168stats_vty_test(config)# show running-config
169...
170stats reporter statsd
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300171 remote-ip 192.168.1.200
172 remote-port 6969
173 level subscriber
174 prefix statsd-prefix
175 enable
176stats reporter log
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300177 level peer
178 prefix log-prefix
179 enable
180stats reporter statsd statsd-foo
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300181 remote-ip 192.168.2.200
182 remote-port 9696
183 level global
184 prefix statsd-one-prefix
185 flush-period 1
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300186 disable
Vadim Yanitskiyd6b00592021-11-09 13:46:55 +0300187stats reporter log log-bar
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300188 level global
189 prefix log-bar-prefix
190 flush-period 2
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300191 disable
Vadim Yanitskiyd6b00592021-11-09 13:46:55 +0300192stats reporter log log-zoo
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300193 level global
194 prefix log-zoo-prefix
195 flush-period 3
Vadim Yanitskiyd6b00592021-11-09 13:46:55 +0300196 disable
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300197...
198
199
200stats_vty_test(config)# ### Test removing reporters
201stats_vty_test(config)# no stats reporter statsd statsd-foo
202stats_vty_test(config)# no stats reporter log log-bar
203stats_vty_test(config)# no stats reporter log log-zoo
204stats_vty_test(config)# show running-config
205... !(foo|bar|zoo)
206
Vadim Yanitskiy52a5c112021-11-09 13:59:20 +0300207stats_vty_test(config)# no stats reporter statsd statsd-foo
208% There is no such statsd reporter with name 'statsd-foo'
209stats_vty_test(config)# no stats reporter log log-zoo
210% There is no such log reporter with name 'log-zoo'
211
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300212
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +0300213stats_vty_test(config)# stats interval 1337
214stats_vty_test(config)# show running-config
215...
216stats interval 1337
217...