Reference Guide

Batch mode commands
You can create a batch le to simplify routine or repetitive tasks. A batch le is an unformatted text le that contains two or more
commands and has a .cmd le name extension.
You can use vi or any other editor to create the .cmd le, then use the batch command to execute the le. To execute a series of
commands in a le in batch mode (non-interactive processing), use the batch command. OS10 automatically commits all commands in a
batch le — you do not have to enter the commit command.
Create a batch le (b.cmd) on a remote device by entering a series of commands.
interface ethernet 1/1/4
no switchport
ip address 172.17.4.1/24
no shutdown
Copy the command le on the remote device to your switch, such as to your home directory.
OS10# copy scp://os10user:os10passwd@10.11.222.1:/home/os10/b.cmd home://b.cmd
OS10# dir home
Directory contents for folder: home
Date (modified) Size (bytes) Name
--------------------- ------------ ------------------------------------------
2017-02-15T19:25:35Z 77
b.cmd
...
Execute the batch le using the batch command in EXEC mode.
OS10# batch b.cmd
OS10# Feb 15 19:26:1: %Dell EMC (OS10) %Node.1-Unit.1:PRI:OS10 %log-notice:IP_ADDRESS_ADD: IP
Address add is successful.:IP 172.17.4.1/24 added successfully
(Optional) Verify the new commands in the running conguration.
OS10# show running-configuration interface ethernet 1/1/4
!
interface ethernet1/1/4
ip address 172.17.4.1/24
no switchport
no shutdown
Linux shell commands
You can execute a single command, or a series of commands using a batch le from the Linux shell.
Use the -c option to run a single command.
admin@OS10:/opt/dell/os10/bin$ clish -c "show version"
New user admin logged in at session 10
Dell Networking OS10-Enterprise
Copyright (c) 1999-2017 by Dell Inc. All Rights Reserved.
OS Version: 10.2.9999E
Build Version: 10.2.9999E(3764)
Build Time: 2017-02-09T06:02:58.087-08:00
System Type: S6000-ON
Architecture: x86_64
Up Time: 11:53:11
User admin logged out at session 10
admin@OS10:/opt/dell/os10/bin$
Getting Started
39