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
|
# phrasebook for hp devices with cli, e.g. hp procurve
# hp cli: outputs ansi escapes, before and after the prompt...apparently not possible to disable?
# privileged and configure prompt cannot be inherited from cisco pb for that reason
prompt generic
match /[\/a-zA-Z0-9._:-]+ ?(?:\(config[^)]*\))? ?[#>] ?(?:\x1b\[[0-9;\?]*[A-KSTfhilmnrs])*$/
prompt privileged
match /# ?(?:\x1b\[[0-9;\?]*[A-KSTfhilmnrs])*$/
prompt configure
match /\(config[^)]*\)# ?(?:\x1b\[[0-9;\?]*[A-KSTfhilmnrs])*$/
prompt user
match /login as: ?$/
macro enable_paging
send page
macro disable_paging
send no page
macro begin_privileged
send enable
match user or pass or privileged
macro end_privileged
send exit
match generic
macro begin_configure
send configure terminal
match configure
macro end_configure
send end
match privileged
macro disconnect
send logout
match generic
|