0 Replies Latest reply on Apr 28, 2017 7:43 AM by powerblade

    Remove Prompt - prompt not found via RegEx

    powerblade

      I'm trying to execute the following script on our multi context Cisco ASA firewall:

      changeto context system

      show ntp status

      show ntp associations

      However when I execute it it never completes and ends with an error and error details saying Connection Refused

       

      When I look in the stack trace I see the following:

       

      [28-04-2017 13:20:16] Start detecting command echo in echo buffer...

      [28-04-2017 13:20:16] Echo is detected, EchoBuffer = <<<changeto context system

       

       

      >>>

      [28-04-2017 13:20:16] Remove Prompt - prompt not found via RegEx

      [28-04-2017 13:20:16] Echo and prompt are removed if they exist, out buffer = <<<>>>

      [28-04-2017 13:20:16] Start check prompt for menu-based device

      [28-04-2017 13:20:16] -->

      [28-04-2017 13:20:16] --> fcntipsnet001-sys/pri/act#

      [28-04-2017 13:20:16] Start check prompt for menu-based device

      [28-04-2017 13:20:16] Process Line = <>

      [28-04-2017 13:20:16] Process Line = <fcntipsnet001-sys/pri/act# >

      [28-04-2017 13:20:16] Fuzzy match detector start detecting prompt. String1=fcntipsnet001-sys/pri/act# String2=fcntipsnet001-sys/admin/pri/act#

      [28-04-2017 13:20:16] Pushing back: <fcntipsnet001-sys/pri/act# >

      [28-04-2017 13:20:16] mPrompt is : <fcntipsnet001-sys/admin/pri/act# >

      [28-04-2017 13:20:18] TimerTick: mstrData=<fcntipsnet001-sys/pri/act# > State=3 - Connected to server - idle

      [28-04-2017 13:20:18] Pending Disconnect = False

      [28-04-2017 13:20:18] Fuzzy match detector start detecting prompt. String1=fcntipsnet001-sys/pri/act# String2=fcntipsnet001-sys/admin/pri/act#

      [28-04-2017 13:20:18] TimerTick: Just tick-tockin away. ..

      [28-04-2017 13:20:20] TimerTick: mstrData=<fcntipsnet001-sys/pri/act# > State=3 - Connected to server - idle

      [28-04-2017 13:20:20] Pending Disconnect = False

      [28-04-2017 13:20:20] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

      [28-04-2017 13:20:20] Fuzzy match detector start detecting prompt. String1=fcntipsnet001-sys/pri/act# String2=fcntipsnet001-sys/admin/pri/act#

      [28-04-2017 13:20:20] TimerTick: Just tick-tockin away. ..

      [28-04-2017 13:20:22] TimerTick: mstrData=<fcntipsnet001-sys/pri/act# > State=3 - Connected to server - idle

      [28-04-2017 13:20:22] Pending Disconnect = False

      [28-04-2017 13:20:22] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

      [28-04-2017 13:20:22] Fuzzy match detector start detecting prompt. String1=fcntipsnet001-sys/pri/act# String2=fcntipsnet001-sys/admin/pri/act#

      [28-04-2017 13:20:22] TimerTick: Just tick-tockin away. ..

      [28-04-2017 13:20:24] TimerTick: mstrData=<fcntipsnet001-sys/pri/act# > State=3 - Connected to server - idle

      [28-04-2017 13:20:24] Pending Disconnect = False

       

      ...

       

      [28-04-2017 13:22:16] Pending Disconnect = False

      [28-04-2017 13:22:16] Pre-Commands: Waiting more than 3 seconds for response start sending pre-command if any...

      [28-04-2017 13:22:16] Fuzzy match detector start detecting prompt. String1=fcntipsnet001-sys/pri/act# String2=fcntipsnet001-sys/admin/pri/act#

      [28-04-2017 13:22:16] TimerTick: Just tick-tockin away. ..

      [28-04-2017 13:22:17] Disconnected - From: 172.18.115.198

       

      It seems like the problem is when I issue the command changeto context system where the prompt change confuses Solarwinds. I'm using the built-in Cisco ASA connection template.

      Does anyone have any idea how I can execute the command in system execution space?