script Managing Configuration and Image Files
Enterasys Matrix DFE-Gold Series Configuration Guide 2-89
scriptî ±fileî ±requiresî ±twoî ±arguments,î ±aî ±portî ±stringî ±(%1)î ±andî ±aî ±VLANî ±idî ±(%2).î ±F inally,î ±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.