blob: 94cc7e8e1bf3e009ea57b8d5f5555e84f5598a7f [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
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030039 level global
40 no prefix
Vadim Yanitskiyd6b00592021-11-09 13:46:55 +030041 disable
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
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030049 level subscriber
50 prefix statsd-prefix
51...
52
53stats_vty_test(config-stats)# remote-ip 192.168.1.200
54stats_vty_test(config-stats)# remote-port 6969
55stats_vty_test(config-stats)# show running-config
56...
57stats reporter statsd
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030058 remote-ip 192.168.1.200
59 remote-port 6969
60... !local-ip
61
62stats_vty_test(config-stats)# local-ip 192.168.1.100
63stats_vty_test(config-stats)# show running-config
64...
65stats reporter statsd
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030066 remote-ip 192.168.1.200
67 remote-port 6969
68 local-ip 192.168.1.100
69...
70
71stats_vty_test(config-stats)# no local-ip
72stats_vty_test(config-stats)# show running-config
73...
74stats reporter statsd
75... !local-ip
76
77stats_vty_test(config-stats)# mtu 1337
78stats_vty_test(config-stats)# show running-config
79...
80stats reporter statsd
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030081 remote-ip 192.168.1.200
82 remote-port 6969
83 mtu 1337
84...
85
86stats_vty_test(config-stats)# no mtu
87stats_vty_test(config-stats)# show running-config
88...
89stats reporter statsd
90... !mtu
91
92stats_vty_test(config-stats)# flush-period 43556
93stats_vty_test(config-stats)# show running-config
94...
95stats reporter statsd
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +030096 remote-ip 192.168.1.200
97 remote-port 6969
98 level subscriber
99 prefix statsd-prefix
100 flush-period 43556
101...
102
103stats_vty_test(config-stats)# flush-period 0
104stats_vty_test(config-stats)# show running-config
105...
106stats reporter statsd
107... !flush-period
108
109stats_vty_test(config-stats)# enable
110stats_vty_test(config-stats)# exit
111stats_vty_test(config)# show running-config
112...
113stats reporter statsd
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +0300114 remote-ip 192.168.1.200
115 remote-port 6969
116 level subscriber
117 prefix statsd-prefix
118 enable
119...
120
121
122stats_vty_test(config)# ### Create a statsd reporter
123stats_vty_test(config)# stats reporter log
124stats_vty_test(config-stats)# level peer
125stats_vty_test(config-stats)# prefix log-prefix
126stats_vty_test(config-stats)# enable
127stats_vty_test(config-stats)# exit
128stats_vty_test(config)# show running-config
129...
130stats reporter statsd
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +0300131 remote-ip 192.168.1.200
132 remote-port 6969
133 level subscriber
134 prefix statsd-prefix
135 enable
136stats reporter log
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +0300137 level peer
138 prefix log-prefix
139 enable
140...
141
142
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300143stats_vty_test(config)# ### Create an additional statsd reporter
144stats_vty_test(config)# stats reporter statsd statsd-foo
145stats_vty_test(config-stats)# level global
146stats_vty_test(config-stats)# prefix statsd-one-prefix
147stats_vty_test(config-stats)# remote-ip 192.168.2.200
148stats_vty_test(config-stats)# remote-port 9696
149stats_vty_test(config-stats)# flush-period 1
150stats_vty_test(config-stats)# exit
151
152stats_vty_test(config)# ### Create an additional log reporter
153stats_vty_test(config)# stats reporter log log-bar
154stats_vty_test(config-stats)# level global
155stats_vty_test(config-stats)# prefix log-bar-prefix
156stats_vty_test(config-stats)# flush-period 2
157stats_vty_test(config-stats)# exit
158
159stats_vty_test(config)# ### Create an additional log reporter
160stats_vty_test(config)# stats reporter log log-zoo
161stats_vty_test(config-stats)# level global
162stats_vty_test(config-stats)# prefix log-zoo-prefix
163stats_vty_test(config-stats)# flush-period 3
164stats_vty_test(config-stats)# exit
165
166stats_vty_test(config)# ### We should have 5 reporters now
167stats_vty_test(config)# show running-config
168...
169stats reporter statsd
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300170 remote-ip 192.168.1.200
171 remote-port 6969
172 level subscriber
173 prefix statsd-prefix
174 enable
175stats reporter log
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300176 level peer
177 prefix log-prefix
178 enable
179stats reporter statsd statsd-foo
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300180 remote-ip 192.168.2.200
181 remote-port 9696
182 level global
183 prefix statsd-one-prefix
184 flush-period 1
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300185 disable
Vadim Yanitskiyd6b00592021-11-09 13:46:55 +0300186stats reporter log log-bar
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300187 level global
188 prefix log-bar-prefix
189 flush-period 2
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300190 disable
Vadim Yanitskiyd6b00592021-11-09 13:46:55 +0300191stats reporter log log-zoo
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300192 level global
193 prefix log-zoo-prefix
194 flush-period 3
Vadim Yanitskiyd6b00592021-11-09 13:46:55 +0300195 disable
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300196...
197
198
199stats_vty_test(config)# ### Test removing reporters
200stats_vty_test(config)# no stats reporter statsd statsd-foo
201stats_vty_test(config)# no stats reporter log log-bar
202stats_vty_test(config)# no stats reporter log log-zoo
203stats_vty_test(config)# show running-config
204... !(foo|bar|zoo)
205
Vadim Yanitskiy52a5c112021-11-09 13:59:20 +0300206stats_vty_test(config)# no stats reporter statsd statsd-foo
207% There is no such statsd reporter with name 'statsd-foo'
208stats_vty_test(config)# no stats reporter log log-zoo
209% There is no such log reporter with name 'log-zoo'
210
Vadim Yanitskiybfc83772021-11-08 23:14:29 +0300211
Vadim Yanitskiyac3a3fc2021-11-09 03:35:44 +0300212stats_vty_test(config)# stats interval 1337
213stats_vty_test(config)# show running-config
214...
215stats interval 1337
216...