testcli.refout 5.8 KB

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