Scripting from EMS to C-Series Timeout

  • 0
  • 2
  • Question
  • Updated 4 months ago
  • Answered
  • (Edited)
I'm trying to write a script to switch my dhcp helpers from one dhcp server to another in the case that we need to go to a disaster recover scenario.  I was able to get this to work on our S-Series switches but in one location we have a C-series with a router licence. AM i missing somehting?  Here is the script.

"#@MetaDataStart#############################################################################################
# Define your user parameters in this section. For reference, see bundled scripts.
#############################################################################################
#@MetaDataEnd
# Enter all CLI commands from here
cli router
cli enable
cli configure

cli interface vlan Z
cli no ip helper-address X.X.X.X
cli ip helper-address Y.Y.Y.Y
cli exit
"

I'm getting the following error.  I think it is timing out when I enter the "router" commend to switch to router mode.  

"Error: Timeout waiting for cli response
** Aborting execution of script because cli-mode is set to abort-on-error **

*** Error at line - 13 ***
Error: Timeout waiting for cli response"
Photo of Matthew Perry

Matthew Perry

  • 320 Points 250 badge 2x thumb

Posted 5 months ago

  • 0
  • 2
Photo of Martineau, John

Martineau, John, Employee

  • 812 Points 500 badge 2x thumb
Matthew,

To verify the switch is good, please Telnet/SSH to SAME switch and execute the commands (minus "cli") to verify all works.  IF it does then the application appears to be the issue.

John