You can run a configuration script that you have downloaded to the S- K- or 7100-Series device. See Running a Configuration Script.
Step | Task | Command(s) |
---|---|---|
1 | Download the configuration script. source is the URL of an FTP, TFTP, or SCP server. destination is the local file path and must include slotN/. | copy source destination |
2 | Run the configuration script. | script filename [arg1] [arg2] [arg3] [arg4] [arg5] [arg6] [arg7] |
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 ge.1.1 as the first argument and 100 as the second argument.
System(rw)->copy tftp://10.1.221.3/setport.scr slot4/setport.scr System(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 System(rw)->script slot4/setport.scr ge.1.1 100