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
|
vty_transcript_test> list
...
multi0 (one|two|three)
multi1 ([one]|[two]|[three])
multi2 [(one|two|three)]
vty_transcript_test> multi0 ?
one 1
two 2
three 3
vty_transcript_test> multi0 one
ok argc=1 one
vty_transcript_test> multi0 two
ok argc=1 two
vty_transcript_test> multi0 o
ok argc=1 one
vty_transcript_test> multi0 t
% Ambiguous command.
vty_transcript_test> multi0 th
ok argc=1 three
vty_transcript_test> multi0
% Command incomplete.
vty_transcript_test> multi1 ?
[one] 1
[two] 2
[three] 3
vty_transcript_test> multi1 one
ok argc=1 one
vty_transcript_test> multi1 two
ok argc=1 two
vty_transcript_test> multi1 o
ok argc=1 one
vty_transcript_test> multi1 t
% Ambiguous command.
vty_transcript_test> multi1 th
ok argc=1 three
vty_transcript_test> multi1
ok argc=0
vty_transcript_test> multi1 [one]
% Unknown command.
vty_transcript_test> multi2 ?
[one] 1
[two] 2
[three] 3
vty_transcript_test> multi2 one
ok argc=1 one
vty_transcript_test> multi2 two
ok argc=1 two
vty_transcript_test> multi2
ok argc=0
vty_transcript_test> multi0 thr
ok argc=1 three
vty_transcript_test> multi1 on
ok argc=1 one
vty_transcript_test> multi2 t
% Ambiguous command.
vty_transcript_test> single0 one
ok argc=1 one
vty_transcript_test> single0 on
ok argc=1 one
vty_transcript_test> single0
ok argc=0
vty_transcript_test> show vty-attributes
Global attributes:
^ This command is hidden (check expert mode)
! This command applies immediately
@ This command applies on VTY node exit
Library specific attributes:
A This command applies on ASP restart
I This command applies on IPA link establishment
L This command applies on E1 line update
Application specific attributes:
u Unbelievable: not able to be believed; unlikely to be true
m Magnificent: impressively beautiful, elaborate, or extravagant
w Wonderful: inspiring delight, pleasure, or admiration
n Intentionally unused attribute, ignore me
vty_transcript_test> en
vty_transcript_test# configure terminal
vty_transcript_test(config)# attribute-test
vty_transcript_test(config-attr-test)# list
... !foo-(hidden|deprecated)
foo-immediate
foo-node-exit
app-unbelievable
app-magnificent
app-wonderful
app-unbelievable-magnificent
app-unbelievable-wonderful
... !app-hidden-*
vty_transcript_test(config-attr-test)# list with-flags
... !foo-(hidden|deprecated)
! ... foo-immediate
@ ... foo-node-exit
. u.. app-unbelievable
. .m. app-magnificent
. ..w app-wonderful
. um. app-unbelievable-magnificent
. u.w app-unbelievable-wonderful
... !app-hidden-*
vty_transcript_test(config-attr-test)# foo-deprecated?
% There is no matched command.
vty_transcript_test(config-attr-test)# foo-hidden?
% There is no matched command.
vty_transcript_test(config-attr-test)# app-hidden-unbelievable?
% There is no matched command.
vty_transcript_test(config-attr-test)# end
vty_transcript_test# disable
vty_transcript_test> enable?
enable Turn on privileged mode command
vty_transcript_test> enable ?
[expert-mode] Enable the expert mode (show hidden commands)
vty_transcript_test> enable expert-mode
vty_transcript_test# configure terminal
vty_transcript_test(config)# attribute-test
vty_transcript_test(config-attr-test)# list
... !foo-deprected
foo-hidden [expert-mode]
foo-immediate
foo-node-exit
app-unbelievable
app-magnificent
app-wonderful
app-unbelievable-magnificent
app-unbelievable-wonderful
app-hidden-unbelievable
vty_transcript_test(config-attr-test)# list with-flags
... !foo-deprected
^ ... foo-hidden [expert-mode]
! ... foo-immediate
@ ... foo-node-exit
. u.. app-unbelievable
. .m. app-magnificent
. ..w app-wonderful
. um. app-unbelievable-magnificent
. u.w app-unbelievable-wonderful
^ u.. app-hidden-unbelievable
vty_transcript_test(config-attr-test)# foo-deprecated?
% There is no matched command.
vty_transcript_test(config-attr-test)# foo-hidden?
foo-hidden This command is hidden
vty_transcript_test(config-attr-test)# foo-hidden ?
[expert-mode] But can be seen in the expert mode
vty_transcript_test(config-attr-test)# app-hidden-unbelievable?
app-hidden-unbelievable Hidden, but still unbelievable help message
vty_transcript_test(config-attr-test)# exit
vty_transcript_test(config)# nest A
vty_transcript_test(config-a)# state
A
vty_transcript_test(config-a)# nest B
vty_transcript_test(config-b)# state
B
vty_transcript_test(config-b)# nest C
vty_transcript_test(config-c)# state
C
vty_transcript_test(config-c)# exit
vty_transcript_test(config-b)# state
B
vty_transcript_test(config-b)# exit
vty_transcript_test(config-a)# state
A
vty_transcript_test(config-a)# nest B2
vty_transcript_test(config-b)# state
B2
vty_transcript_test(config-b)# nest C2
vty_transcript_test(config-c)# state
C2
vty_transcript_test(config-c)# exit
vty_transcript_test(config-b)# state
B2
vty_transcript_test(config-b)# exit
vty_transcript_test(config-a)# state
A
|