Reference Guide
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$
• Use the -B option along with a batch le to execute a series of commands.
configure terminal
router bgp 100
neighbor 100.1.1.1
remote-as 104
no shutdown
do commit
Execute the batch le.
admin@OS10:/opt/dell/os10/bin$ clish -B ~/batch_cfg.txt
New user admin logged in at session 15
Verify the BGP conguration executed by the batch le.
admin@OS10:/opt/dell/os10/bin$ clish -c "show running-configuration bgp"
New user admin logged in at session 16
!
router bgp 100
!
neighbor 100.1.1.1
remote-as 104
no shutdown
admin@OS10:/opt/dell/os10/bin$
User admin logged out at session 16
SSH commands
You can execute commands remotely using an SSH session. This is supported only for show commands.
• Enter the show command along with SSH.
$ ssh admin@ip-address show-command
$ ssh admin@10.11.98.39 "show version"
admin@10.11.98.39's password:
38
Getting Started