ExtremeSwitching (Other)

  • 1.  Answering prompts in command scripts

    Posted 10-25-2013 10:48
    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) [n]?yshow K6(su)-> K6(su)->


  • 2.  RE: Answering prompts in command scripts

    Posted 10-25-2013 10:51
    Update: If I change the script to: set length 0 reset cancel @receive 2 @key y @endofline crlf 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) [n]?yexit K6(su)-> K6(su)->


  • 3.  RE: Answering prompts in command scripts

    Posted 10-25-2013 13:06
    Hi Jeff, Maybe you can give us a little bit of commentary here. What exactly is the problem you are trying to resolve?


  • 4.  RE: Answering prompts in command scripts

    Posted 10-25-2013 15:17
    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.


  • 5.  RE: Answering prompts in command scripts

    Posted 10-25-2013 16:44
    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) [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.


  • 6.  RE: Answering prompts in command scripts

    Posted 10-25-2013 16:53
    That works. I don't know why I did not try that. Thanks!