save var key

save var key key [var1 var2 ]
Note

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}.

Description

Saves the specified variables to the specified key.

Syntax Description

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.

Default

N/A.

Usage Guidelines

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.

Example

The following example saves the variables “username,” “ipaddr,” and “vlan” to the key “blue:”

save var key blue username ipaddr vlan

History

This command was first available in ExtremeXOS 11.6.

Platform Availability

This command is available on ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, X690, and X695 series switches.