load var key

load 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

Imports the specified set of variables associated with a key into the current session.

Syntax Description

key Specifies the key associated with the variables to be imported.
var1 var2 Specifies the variables to be imported. The first variable is mandatory, up to four more optional variables can be specified.

Default

N/A.

Usage Guidelines

The specified key should have created by the user. Also, the variables specified should have been saved using that key.

Attempting to use this command with a non-existent key results in an error message being displayed.

Example

The following example imports the variables “username,” “ipaddr,” and “vlan” from the key “blue:”

load var key blue username ipaddr vlan

History

This command was first available in ExtremeXOS 11.6.

Platform Availability