blob: 1515ea2c65b72646e76d882be1ce33dafa5e4bc8 [file] [log] [blame]
David Lamparterd79668f2015-05-14 14:47:05 +02001test# echo this is a test message
2this is a test message
3test# echo foo bla
4 MESSAGE The message to echo
5 <cr>
6test# echo foo bla baz
7foo bla baz
8test# echo
9% Command incomplete.
10test#
11test# arg ipv4 1.2.3.4
12cmd0 with 1 args.
13[00]: 1.2.3.4
14test# arg ipv4 1.2.
15 A.B.C.D 02
16test# arg ipv4 1.2.3.4
17cmd0 with 1 args.
18[00]: 1.2.3.4
19test# arg ipv4 1.2.3
20cmd0 with 1 args.
21[00]: 1.2.3
22test# arg ipv4 1.2.3.4.5
23% [NONE] Unknown command: arg ipv4 1.2.3.4.5
24test# arg ipv4 1.a.3.4
25% [NONE] Unknown command: arg ipv4 1.a.3.4
26test# arg ipv4 blah
27% [NONE] Unknown command: arg ipv4 blah
28test#
29test# arg ipv4m 1.2.3.0/24
30cmd1 with 1 args.
31[00]: 1.2.3.0/24
32test# arg ipv4m 1.2.
33 A.B.C.D/M 02
34test# arg ipv4m 1.2.3.0/24
35cmd1 with 1 args.
36[00]: 1.2.3.0/24
37test# arg ipv4m 1.2.3/9
38% [NONE] Unknown command: arg ipv4m 1.2.3/9
39test# arg ipv4m 1.2.3.4.5/6
40% [NONE] Unknown command: arg ipv4m 1.2.3.4.5/6
41test# arg ipv4m 1.a.3.4
42% [NONE] Unknown command: arg ipv4m 1.a.3.4
43test# arg ipv4m blah
44% [NONE] Unknown command: arg ipv4m blah
45test# arg ipv4m 1.2.3.0/999
46% [NONE] Unknown command: arg ipv4m 1.2.3.0/999
47test# arg ipv4m 1.2.3.0/a9
48% [NONE] Unknown command: arg ipv4m 1.2.3.0/a9
49test# arg ipv4m 1.2.3.0/9a
50% [NONE] Unknown command: arg ipv4m 1.2.3.0/9a
51test#
52test# arg ipv6 de4d:b33f::cafe
53cmd2 with 1 args.
54[00]: de4d:b33f::cafe
55test# arg ipv6 de4d:b3
56% There is no matched command.
57test# arg ipv6 de4d:b33f::caf
58 X:X::X:X 02
59test# arg ipv6 de4d:b33f::cafe
60cmd2 with 1 args.
61[00]: de4d:b33f::cafe
62test# arg ipv6 de4d:b3
63test# arg ipv6 de4d:b33f::caf
64 X:X::X:X 02
65test# arg ipv6 de4d:b33f::cafe
66cmd2 with 1 args.
67[00]: de4d:b33f::cafe
68test# arg ipv6 de4d:b33f:z::cafe
69% [NONE] Unknown command: arg ipv6 de4d:b33f:z::cafe
70test# arg ipv6 de4d:b33f:cafe:
71% [NONE] Unknown command: arg ipv6 de4d:b33f:cafe:
72test# arg ipv6 ::
73cmd2 with 1 args.
74[00]: ::
75test# arg ipv6 ::/
76% [NONE] Unknown command: arg ipv6 ::/
77test# arg ipv6 1:2:3:4:5:6:7:8:9:0:1:2:3:4:5:6:7:8:9:0:1:2:3:4:5:6:7:8:9:0
78% [NONE] Unknown command: arg ipv6 1:2:3:4:5:6:7:8:9:0:1:2:3:4:5:6:7:8:9:0:1:2:3:4:5:6:7:8:9:0
79test# arg ipv6 12::34::56
80% [NONE] Unknown command: arg ipv6 12::34::56
81test# arg ipv6m dead:beef:cafe::/64
82cmd3 with 1 args.
83[00]: dead:beef:cafe::/64
84test# arg ipv6m dead:be
85 X:X::X:X/M 02
86test# arg ipv6m dead:beef:cafe:
87 X:X::X:X/M 02
88test# arg ipv6m dead:beef:cafe::/64
89cmd3 with 1 args.
90[00]: dead:beef:cafe::/64
91test#
92test# arg range 4
93% [NONE] Unknown command: arg range 4
94test# arg range 5
95cmd4 with 1 args.
96[00]: 5
97test# arg range 9
98 <5-15> 02
99test# arg range 9
100cmd4 with 1 args.
101[00]: 9
102test# arg range 15
103cmd4 with 1 args.
104[00]: 15
105test# arg range 16
106% [NONE] Unknown command: arg range 16
107test# arg range -1
108% [NONE] Unknown command: arg range -1
109test# arg range 99999999999999999999999999999999999999999
110% [NONE] Unknown command: arg range 99999999999999999999999999999999999999999
111test#
112test# arg
113 ipv4 01
114 ipv4m 01
115 ipv6 01
116 ipv6m 01
117 range 01
118test# arg
119% Command incomplete.
120test#
121test# pa
122test# papat
123% Command incomplete.
124test# pat
125a b c d e f
126test# pat
127% Command incomplete.
128test#
129test# pat a
130% Command incomplete.
131test# pat a a
132cmd5 with 1 args.
133[00]: a
134test# pat a
135 a 02
136 b 03
137test# pat a b
138cmd5 with 1 args.
139[00]: b
140test# pat a c
141% There is no matched command.
142test# pat a c
143% [NONE] Unknown command: pat a c
144test# pat a a x
145% [NONE] Unknown command: pat a a x
146test#
147test# pat b
148% Command incomplete.
149test# pat b
150 a 02
151test# pat b a
152cmd6 with 1 args.
153[00]: a
154test# pat b x
155% [NONE] Unknown command: pat b x
156test# pat b x y
157% [NONE] Unknown command: pat b x y
158test#
159test# pat c a
160% Command incomplete.
161test# pat c a 1.2.3.4
162cmd7 with 2 args.
163[00]: a
164[01]: 1.2.3.4
165test# pat c b 2.3.4
166cmd7 with 2 args.
167[00]: b
168[01]: 2.3.4
169test# pat c c
170 A.B.C.D 05
171test# pat c c x
172% [NONE] Unknown command: pat c c x
173test#
174test# pat d
175cmd8 with 3 args.
176[00]: (null)
177[01]: (null)
178[02]: (null)
179test# pat d
180bar baz foo
181test# pat d
182cmd8 with 3 args.
183[00]: (null)
184[01]: (null)
185[02]: (null)
186test# pat d foo 1.2.3.4
187cmd8 with 3 args.
188[00]: 1.2.3.4
189[01]: (null)
190[02]: (null)
191test# pat d foo
192% Command incomplete.
193test# pat d noooo
194% [NONE] Unknown command: pat d noooo
195test# pat d bar 1::2
196cmd8 with 3 args.
197[00]: (null)
198[01]: 1::2
199[02]: (null)
200test# pat d bar 1::2 foo 3.4.5.6
201cmd8 with 3 args.
202[00]: 3.4.5.6
203[01]: 1::2
204[02]: (null)
205test# pat d ba
206 bar 04
207 baz 06
208test# pat d baz
209cmd8 with 3 args.
210[00]: (null)
211[01]: (null)
212[02]: baz
213test# pat d foo 3.4.5.6 baz
214cmd8 with 3 args.
215[00]: 3.4.5.6
216[01]: (null)
217[02]: baz
218test#
219test# pat e
220% Command incomplete.
221test# pat e f
222% Command incomplete.
223test# pat e f g
224% Command incomplete.
225test# pat e 1.2.3.4
226% Command incomplete.
227test#
228test# pat f
229cmd10 with 0 args.
230test# pat f foo
231cmd10 with 1 args.
232[00]: foo
233test# pat f key
234cmd10 with 1 args.
235[00]: key
236test#
237test# alt a
238test# alt a a
239 WORD 02
240test# alt a ab
241cmd11 with 1 args.
242[00]: ab
243test# alt a 1
244test# alt a 1.2
245 A.B.C.D 02
246 WORD 02
247test# alt a 1.2.3.4
248cmd12 with 1 args.
249[00]: 1.2.3.4
250test# alt a 1
251test# alt a 1:2
252 WORD 02
253test# alt a 1:2
254test# alt a 1:2::
255 WORD 02
256 X:X::X:X 02
257test# alt a 1:2::3
258cmd13 with 1 args.
259[00]: 1:2::3
260test#
261test# conf t
262test(config)# do pat d baz
263cmd8 with 3 args.
264[00]: (null)
265[01]: (null)
266[02]: baz
267test(config)# exit
268test#
269test# show run
270
271Current configuration:
272!
273hostname test
274!
275line vty
276!
277end
278test# conf t
279test(config)# hostname foohost
280foohost(config)# do show run
281
282Current configuration:
283!
284hostname foohost
285!
286line vty
287!
288end
289foohost(config)#
290end.