aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tdef/tdef_vty_test_config_root.vty
blob: e7c96ca36d4c882408ef614c917b1b564b509ef3 (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
tdef_vty_test> list
...
  show timer [(tea|test|software)] [TNNNN]
...

tdef_vty_test> show timer ?
  [tea]       Tea time
  [test]      Test timers
  [software]  Typical software development cycle

tdef_vty_test> show timer test ?
  [TNNNN]  T- or X-timer-number -- 3GPP compliant timer number of the format '1234' or 'T1234' or 't1234'; Osmocom-specific timer number of the format: 'X1234' or 'x1234'.

tdef_vty_test> show timer
tea: T1 = 50 s	Water Boiling Timeout (default: 50 s)
tea: T2 = 300 s	Tea brewing (default: 300 s)
tea: T3 = 5 m	Let tea cool down before drinking (default: 5 m)
tea: T4 = 20 m	Forgot to drink tea while it's warm (default: 20 m)
test: T1 = 100 s	Testing a hundred seconds (default: 100 s)
test: T2 = 100 ms	Testing a hundred milliseconds (default: 100 ms)
test: T3 = 100 m	Testing a hundred minutes (default: 100 m)
test: T4 = 100	Testing a hundred potatoes (default: 100)
test: T2147483647 = 4294967295 m	Very large (default: 4294967295 m)
test: X23 = 239471 s	Negative T number (default: 239471 s)
software: T1 = 30 m	Write code (default: 30 m)
software: T2 = 20 ms	Hit segfault (default: 20 ms)
software: T3 = 480 m	Fix bugs (default: 480 m)

tdef_vty_test> enable
tdef_vty_test# show timer
tea: T1 = 50 s	Water Boiling Timeout (default: 50 s)
tea: T2 = 300 s	Tea brewing (default: 300 s)
tea: T3 = 5 m	Let tea cool down before drinking (default: 5 m)
tea: T4 = 20 m	Forgot to drink tea while it's warm (default: 20 m)
test: T1 = 100 s	Testing a hundred seconds (default: 100 s)
test: T2 = 100 ms	Testing a hundred milliseconds (default: 100 ms)
test: T3 = 100 m	Testing a hundred minutes (default: 100 m)
test: T4 = 100	Testing a hundred potatoes (default: 100)
test: T2147483647 = 4294967295 m	Very large (default: 4294967295 m)
test: X23 = 239471 s	Negative T number (default: 239471 s)
software: T1 = 30 m	Write code (default: 30 m)
software: T2 = 20 ms	Hit segfault (default: 20 ms)
software: T3 = 480 m	Fix bugs (default: 480 m)

tdef_vty_test# configure terminal

tdef_vty_test(config)# show running-config
... !timer

tdef_vty_test(config)# list
...
  timer [(tea|test|software)] [TNNNN] [(<0-2147483647>|default)]
...

tdef_vty_test(config)# timer ?
  [tea]       Tea time
  [test]      Test timers
  [software]  Typical software development cycle

tdef_vty_test(config)# timer sof T123 ?
  [<0-2147483647>]  New timer value
  [default]         Set to default timer value

tdef_vty_test(config)# timer sof T123 ?
  [<0-2147483647>]  New timer value
  [default]         Set to default timer value

tdef_vty_test(config)# timer test ?
  [TNNNN]  T- or X-timer-number -- 3GPP compliant timer number of the format '1234' or 'T1234' or 't1234'; Osmocom-specific timer number of the format: 'X1234' or 'x1234'.

tdef_vty_test(config)# timer test t2 ?
  [<0-2147483647>]  New timer value
  [default]         Set to default timer value

tdef_vty_test(config)# do show timer
tea: T1 = 50 s	Water Boiling Timeout (default: 50 s)
tea: T2 = 300 s	Tea brewing (default: 300 s)
tea: T3 = 5 m	Let tea cool down before drinking (default: 5 m)
tea: T4 = 20 m	Forgot to drink tea while it's warm (default: 20 m)
test: T1 = 100 s	Testing a hundred seconds (default: 100 s)
test: T2 = 100 ms	Testing a hundred milliseconds (default: 100 ms)
test: T3 = 100 m	Testing a hundred minutes (default: 100 m)
test: T4 = 100	Testing a hundred potatoes (default: 100)
test: T2147483647 = 4294967295 m	Very large (default: 4294967295 m)
test: X23 = 239471 s	Negative T number (default: 239471 s)
software: T1 = 30 m	Write code (default: 30 m)
software: T2 = 20 ms	Hit segfault (default: 20 ms)
software: T3 = 480 m	Fix bugs (default: 480 m)

tdef_vty_test(config)# do show timer tea
tea: T1 = 50 s	Water Boiling Timeout (default: 50 s)
tea: T2 = 300 s	Tea brewing (default: 300 s)
tea: T3 = 5 m	Let tea cool down before drinking (default: 5 m)
tea: T4 = 20 m	Forgot to drink tea while it's warm (default: 20 m)

tdef_vty_test(config)# do show timer tea 2
tea: T2 = 300 s	Tea brewing (default: 300 s)

tdef_vty_test(config)# do show timer tea t2
tea: T2 = 300 s	Tea brewing (default: 300 s)

tdef_vty_test(config)# do show timer tea T2
tea: T2 = 300 s	Tea brewing (default: 300 s)

tdef_vty_test(config)# do show timer tea T5
% No such timer: T5

tdef_vty_test(config)# do show timer tea T0
% No such timer: T0

tdef_vty_test(config)# do show timer tea X123
% No such timer: X123

tdef_vty_test(config)# do show timer tea T-123
% Invalid T timer argument (should be 'T1234' or 'X1234'): 'T-123'

tdef_vty_test(config)# do show timer t
tea: T1 = 50 s	Water Boiling Timeout (default: 50 s)
tea: T2 = 300 s	Tea brewing (default: 300 s)
tea: T3 = 5 m	Let tea cool down before drinking (default: 5 m)
tea: T4 = 20 m	Forgot to drink tea while it's warm (default: 20 m)
test: T1 = 100 s	Testing a hundred seconds (default: 100 s)
test: T2 = 100 ms	Testing a hundred milliseconds (default: 100 ms)
test: T3 = 100 m	Testing a hundred minutes (default: 100 m)
test: T4 = 100	Testing a hundred potatoes (default: 100)
test: T2147483647 = 4294967295 m	Very large (default: 4294967295 m)
test: X23 = 239471 s	Negative T number (default: 239471 s)

tdef_vty_test(config)# do show timer te
tea: T1 = 50 s	Water Boiling Timeout (default: 50 s)
tea: T2 = 300 s	Tea brewing (default: 300 s)
tea: T3 = 5 m	Let tea cool down before drinking (default: 5 m)
tea: T4 = 20 m	Forgot to drink tea while it's warm (default: 20 m)
test: T1 = 100 s	Testing a hundred seconds (default: 100 s)
test: T2 = 100 ms	Testing a hundred milliseconds (default: 100 ms)
test: T3 = 100 m	Testing a hundred minutes (default: 100 m)
test: T4 = 100	Testing a hundred potatoes (default: 100)
test: T2147483647 = 4294967295 m	Very large (default: 4294967295 m)
test: X23 = 239471 s	Negative T number (default: 239471 s)

tdef_vty_test(config)# do show timer te T2
tea: T2 = 300 s	Tea brewing (default: 300 s)
test: T2 = 100 ms	Testing a hundred milliseconds (default: 100 ms)


tdef_vty_test(config)# timer tea 3 30
tdef_vty_test(config)# timer tea T3
tea: T3 = 30 m	Let tea cool down before drinking (default: 5 m)

tdef_vty_test(config)# timer tea t3 31
tdef_vty_test(config)# timer tea T3
tea: T3 = 31 m	Let tea cool down before drinking (default: 5 m)

tdef_vty_test(config)# timer tea T3 32
tdef_vty_test(config)# timer tea T3
tea: T3 = 32 m	Let tea cool down before drinking (default: 5 m)

tdef_vty_test(config)# timer tea X123 99
% No such timer: X123

tdef_vty_test(config)# timer tea T-123 99
% Invalid T timer argument (should be 'T1234' or 'X1234'): 'T-123'

tdef_vty_test(config)# timer tea T0 0
% No such timer: T0

tdef_vty_test(config)# timer tea T123 default
% No such timer: T123

tdef_vty_test(config)# timer tea
tea: T1 = 50 s	Water Boiling Timeout (default: 50 s)
tea: T2 = 300 s	Tea brewing (default: 300 s)
tea: T3 = 32 m	Let tea cool down before drinking (default: 5 m)
tea: T4 = 20 m	Forgot to drink tea while it's warm (default: 20 m)

tdef_vty_test(config)# timer t
tea: T1 = 50 s	Water Boiling Timeout (default: 50 s)
tea: T2 = 300 s	Tea brewing (default: 300 s)
tea: T3 = 32 m	Let tea cool down before drinking (default: 5 m)
tea: T4 = 20 m	Forgot to drink tea while it's warm (default: 20 m)
test: T1 = 100 s	Testing a hundred seconds (default: 100 s)
test: T2 = 100 ms	Testing a hundred milliseconds (default: 100 ms)
test: T3 = 100 m	Testing a hundred minutes (default: 100 m)
test: T4 = 100	Testing a hundred potatoes (default: 100)
test: T2147483647 = 4294967295 m	Very large (default: 4294967295 m)
test: X23 = 239471 s	Negative T number (default: 239471 s)

tdef_vty_test(config)# timer te T2
tea: T2 = 300 s	Tea brewing (default: 300 s)
test: T2 = 100 ms	Testing a hundred milliseconds (default: 100 ms)

tdef_vty_test(config)# timer test T2 100

tdef_vty_test(config)# timer tes T2 100
% Error: no timers found

tdef_vty_test(config)# timer te T2 100
% Error: no timers found


tdef_vty_test(config)# do show timer software
software: T1 = 30 m	Write code (default: 30 m)
software: T2 = 20 ms	Hit segfault (default: 20 ms)
software: T3 = 480 m	Fix bugs (default: 480 m)

tdef_vty_test(config)# do show timer software 1
software: T1 = 30 m	Write code (default: 30 m)

tdef_vty_test(config)# do show timer software t1
software: T1 = 30 m	Write code (default: 30 m)

tdef_vty_test(config)# do show timer software T1
software: T1 = 30 m	Write code (default: 30 m)

tdef_vty_test(config)# do show timer software T99
% No such timer: T99

tdef_vty_test(config)# do show timer software X123123
% No such timer: X123123

tdef_vty_test(config)# do show timer software T-123123
% Invalid T timer argument (should be 'T1234' or 'X1234'): 'T-123123'

tdef_vty_test(config)# do show timer software T0
% No such timer: T0

tdef_vty_test(config)# timer software 1 11
tdef_vty_test(config)# timer software T1
software: T1 = 11 m	Write code (default: 30 m)

tdef_vty_test(config)# timer software t1 12
tdef_vty_test(config)# timer software T1
software: T1 = 12 m	Write code (default: 30 m)

tdef_vty_test(config)# timer software T1 13
tdef_vty_test(config)# timer software T2 0
tdef_vty_test(config)# timer software
software: T1 = 13 m	Write code (default: 30 m)
software: T2 = 0 ms	Hit segfault (default: 20 ms)
software: T3 = 480 m	Fix bugs (default: 480 m)

tdef_vty_test(config)# timer softw
software: T1 = 13 m	Write code (default: 30 m)
software: T2 = 0 ms	Hit segfault (default: 20 ms)
software: T3 = 480 m	Fix bugs (default: 480 m)

tdef_vty_test(config)# timer softw T3
software: T3 = 480 m	Fix bugs (default: 480 m)

tdef_vty_test(config)# timer softw T3 23
% Error: no timers found

tdef_vty_test(config)# timer
tea: T1 = 50 s	Water Boiling Timeout (default: 50 s)
tea: T2 = 300 s	Tea brewing (default: 300 s)
tea: T3 = 32 m	Let tea cool down before drinking (default: 5 m)
tea: T4 = 20 m	Forgot to drink tea while it's warm (default: 20 m)
test: T1 = 100 s	Testing a hundred seconds (default: 100 s)
test: T2 = 100 ms	Testing a hundred milliseconds (default: 100 ms)
test: T3 = 100 m	Testing a hundred minutes (default: 100 m)
test: T4 = 100	Testing a hundred potatoes (default: 100)
test: T2147483647 = 4294967295 m	Very large (default: 4294967295 m)
test: X23 = 239471 s	Negative T number (default: 239471 s)
software: T1 = 13 m	Write code (default: 30 m)
software: T2 = 0 ms	Hit segfault (default: 20 ms)
software: T3 = 480 m	Fix bugs (default: 480 m)

tdef_vty_test(config)# do show timer
tea: T1 = 50 s	Water Boiling Timeout (default: 50 s)
tea: T2 = 300 s	Tea brewing (default: 300 s)
tea: T3 = 32 m	Let tea cool down before drinking (default: 5 m)
tea: T4 = 20 m	Forgot to drink tea while it's warm (default: 20 m)
test: T1 = 100 s	Testing a hundred seconds (default: 100 s)
test: T2 = 100 ms	Testing a hundred milliseconds (default: 100 ms)
test: T3 = 100 m	Testing a hundred minutes (default: 100 m)
test: T4 = 100	Testing a hundred potatoes (default: 100)
test: T2147483647 = 4294967295 m	Very large (default: 4294967295 m)
test: X23 = 239471 s	Negative T number (default: 239471 s)
software: T1 = 13 m	Write code (default: 30 m)
software: T2 = 0 ms	Hit segfault (default: 20 ms)
software: T3 = 480 m	Fix bugs (default: 480 m)

tdef_vty_test(config)# show running-config
... !timer
timer tea T3 32
timer software T1 13
timer software T2 0
... !timer

tdef_vty_test(config)# timer tea T3 default
tdef_vty_test(config)# timer software T1 default
tdef_vty_test(config)# show running-config
... !timer
timer software T2 0
... !timer

tdef_vty_test(config)# timer softw 2 default
% Error: no timers found
tdef_vty_test(config)# timer software 2 default
tdef_vty_test(config)# show running-config
... !timer