ExtremeCloud IQ- Site Engine & Extreme Management Center

Expand all | Collapse all

Scripting from EMS to C-Series Timeout

  • 1.  Scripting from EMS to C-Series Timeout

    Posted 06-01-2018 12:46
    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"


  • 2.  RE: Scripting from EMS to C-Series Timeout

    Posted 06-06-2018 10:01
    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