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"