Note
This is a script command and operates only in scripts or on the command line when scripting is enabled with the following command: enable cli scripting {permanent}.
Saves the specified variables to the specified key.
key | Specifies the key to which the specified variables are saved. |
var1 var2 | Specifies the variables to save, The first variable is mandatory, up to four more optional variables can be specified. |
N/A.
The variables saved by the SAVE VAR command are represented by the specified key and can be retrieved and restored in the context in which this profile was applied. They are available to rollback events like user-unauthenticate and device-undetect. The key option allows the user to save data for a unique key and retrieve the saved data based on this key. The user is responsible for generating unique keys for each variable. The system has a limited amount of memory to store these variables.
The following example saves the variables “username,” “ipaddr,” and “vlan” to the key “blue:”
save var key blue username ipaddr vlan
This command was first available in ExtremeXOS 11.6.
This command is available on ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, X670-G2, X690, X695, X870, 5320, 5420, and 5520 series switches.