Switch Configuration Guide

script Managing Configuration and Image Files
Enterasys Matrix DFE-Gold Series Configuration Guide 2-89
scriptfilerequirestwoarguments,aportstring(%1)andaVLANid(%2).F inally,thescriptis
executed,byspecifyingfe.1.1asthefirstargumentand100asthesecondargument.
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
Whenthescriptcommandparsesthefileandperformsthecommandlineargumentsubstitution,
thecommandsareconvertedtothefollowing:
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
TheconvertedstringsarethenexecutedbytheCLIengineandthescriptcommandreturns.