Note
This is a script command and operates only in scripts when scripting is enabled with the following command: enable cli scripting {permanent}.
Causes the WHILE construct to be terminated.
This command has no arguments or variables.
N/A.
The ENDWHILE command must be used after a corresponding WHILE _expression DOstatement(s) command.
You can insert comments by using a number sign (#). CLI scripting must be enabled to use this command.
This example creates 10 VLANs, named x1 to x10:
set var x 1 WHILE ($x <= 10) DO create vlan v$x set var x ($x + 1) ENDWHILE
This command was first available in ExtremeXOS 11.6.
This command is available on the Summit X450-G2, X460-G2, X670-G2, X770, and ExtremeSwitching X440-G2, X620, X690, X870 series switches.