script
Managing Configuration and Image Files
script file requires two arguments, a port string (%1) and a VLAN id (%2). Finally, the script is
executed, by specifying fe.1.1 as the first argument and 100 as the second argument.
Matrix(rw)->copy tftp://10.1.221.3/setport.scr slot4/setport.scr
Matrix(rw)->show file slot4/setport.scr
set port alias %1 script_set_port
set port vlan %1 %2 modify-egress
set port jumbo enable %1
set port disable %1
set port lacp port %1 disable
Matrix(rw)->script slot4/setport.scr fe.1.1 100
When the script command parses the file and performs the command line argument substitution,
the commands are converted to the following:
set port alias fe.1.1 script_set_port
set port vlan fe.1.1 100 modify-egress
set port jumbo enable fe.1.1
set port disable fe.1.1
set port lacp port fe.1.1 disabled
The converted strings are then executed by the CLI engine and the script command returns.
Enterasys Matrix DFE-Gold Series Configuration Guide 2-89
Need help?
Do you have a question about the Enterasys Matrix DFE-Gold Series and is the answer not in the manual?
Questions and answers