cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting from EMS to C-Series Timeout

Scripting from EMS to C-Series Timeout

Matthew_Perry
New Contributor III
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"
1 REPLY 1

Martineau__John
Extreme Employee
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
GTM-P2G8KFN