Enterasys Matrix 2G4072-52 Configuration Manual page 167

Firmware version 5.41.xx
Hide thumbs Also See for Matrix 2G4072-52:
Table of Contents

Advertisement

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
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
filename
arg1 through arg7 Specifies up to seven arguments to the script.
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.
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
(Section
Specifies the local path name to the file. Valid directories
are /images and /slotN.
Matrix DFE-Platinum and Diamond Series Configuration Guide
General Configuration Command Set
Managing Configuration and Image Files
2.2.9.5) before the script can be executed.
2-141

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Matrix dfe-platinum seriesMatrix dfe-diamond series

Table of Contents