
General Configuration Command Set
Managing Configuration and Image Files
Matrix DFE-Platinum and Diamond Series Configuration Guide
2-141
2.2.9.7
script
Use this command to execute a script file. The script file must first be created on a PC and copied
to the Matrix device using the
copy
command (
Section 2.2.9.5
) before the script can be executed.
The file can contain any number of switch commands, up to a maximum file size of 128 kilobytes.
Router commands cannot be included in the file. Scripts cannot be nested within the file. Note that
the
history
command will not reflect the execution of commands within a script file.
script filename
[
arg1
] [
arg2
] [
arg3
] [
arg4
] [
arg5
] [
arg6
] [
arg7
]
Syntax Description
Command Type
Switch.
Command Mode
Read-Write.
Command Defaults
None.
Example
This example uses the
copy
command to copy the script file named “setport.scr” from IP address
10.1.221.3 to slot 4. Next, the contents of the file is displayed with the
show file
command. The
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.
filename
Specifies the local path name to the file. Valid directories
are /images and /slotN.
arg1
through
arg7
Specifies up to seven arguments to the script.
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
Содержание Matrix 2G4072-52
Страница 2: ......
Страница 14: ...Figures xii Matrix DFE Platinum and Diamond Series Configuration Guide...
Страница 18: ...Tables xvi Matrix DFE Platinum and Diamond Series Configuration Guide...
Страница 1210: ...Routing Protocol Configuration Command Set Configuring VRRP 13 108 Matrix DFE Platinum and Diamond Series Configuration Guide...