cancel
Showing results for 
Search instead for 
Did you mean: 

Answering prompts in command scripts

Answering prompts in command scripts

Jeff_Creek
New Contributor
Attempting to cancel reset through a command script. Although this issue could potentially happen when answering any yes/no prompt. Script: set length 0 reset cancel @receive 2 @key y @endofline crlf show reset exit Result: K6(su)->set length 0 K6(su)->reset cancel This command will cancel 1 scheduled reset. Do you want to continue (y/n) ?yshow K6(su)-> K6(su)->
5 REPLIES 5

Jeff_Creek
New Contributor
That works. I don't know why I did not try that. Thanks!

TylerMarcotte
Extreme Employee
Hi Jeff, Try this: set length 0 reset cancel y show reset exit Result: SSA->reset cancel This command will cancel 1 scheduled reset. Do you want to continue (y/n) ?y Reset cancelled. SSA(su)->show reset No Reset scheduled SSA(su)->exit By putting the different commands on different lines I believe it implied a newline at the end.

Jeff_Creek
New Contributor
I am attempting to cancel a scheduled reset on several switches. I am assuming that in attempting to do anything else that asks for a y/n answer would have the same issue.

Tamera_Rousseau
New Contributor
Hi Jeff, Maybe you can give us a little bit of commentary here. What exactly is the problem you are trying to resolve?
GTM-P2G8KFN