12.07.2015 Views

Version 3.1 SP2 Reference Guide - Extreme Networks

Version 3.1 SP2 Reference Guide - Extreme Networks

Version 3.1 SP2 Reference Guide - Extreme Networks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating and Executing Ridgeline ScriptsNOTEDo not place the backslash character at the end of a line in a Ridgeline script.Line Continuation CharacterThe line continuation character is not supported in Ridgeline scripts. Each command statement shouldbe placed on a single line.Case Sensitivity in Ridgeline ScriptsThe commands and constructs in a Ridgeline script are not case-sensitive. However, if a command isreferenced inside another command, the inner command is case-sensitive. In this instance, the innercommand case should match how it appears in the Ridgeline documentation.Example (Usage of the Ridgeline command ECHO)echo hi (valid)echo [echo hi] (error)echo [ECHO hi] (valid)Reserved Words in Ridgeline ScriptsThe following words cannot be used as variable names in a Ridgeline script. They are reserved byRidgeline.● Names of system variables (see “Ridgeline-Specific System Variables” on page 427)●●●●Names of Ridgeline command extensions (see “Ridgeline-Specific Scripting Constructs”)Names of <strong>Extreme</strong>XOS CLI commandsepic_responseFileIdNames of Tcl functionsIn addition, you should not use a period (.) within a variable name. Use an underscore instead.<strong>Extreme</strong>XOS CLI Scripting Commands Supported in RidgelineScriptsThe CLI commands in this section are supported in Ridgeline scripts.$VAREXISTSChecks if a given variable has been initialized.Switch CompatibilityThis command is supported on devices running <strong>Extreme</strong>XOS 12.1 and higher.424Ridgeline <strong>Reference</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!