Administrator Guide
172 | REST API
www.dell.com | support.dell.com
curl -u demo:demo -X POST -T Input.xml http://<IP>:8008/api/running/ftos/
_operations/cli
<output xmlns='http://www.dell.com/ns/ftos:0.1/root'>
<command>conf
Dell(conf)#interface vlan 100
Dell(conf-if-vl-100)#ip address 1.2.3.4/24
Dell(conf-if-vl-100)#end
To configure mtu:
Input.xml
<input>
<config-commands>
interface vlan 100\r\n
mtu 10000
</config-commands>
</input>
curl -u demo:demo -X POST -T Input.xml http://<IP>:8008/api/running/ftos/
_operations/cli
<output xmlns='http://www.dell.com/ns/ftos:0.1/root'>
<command>conf
Dell(conf)#interface vlan 100
Dell(conf-if-vl-100)#mtu 10000
Dell(conf-if-vl-100)#end
Following is the sample output of show-command:
Input.xml:
<input>
<show-command>version</show-command>
</input>
curl -u demo:demo -X POST -T Input.xml http://<IP>:8008/api/running/ftos/
_operations/cli
<output xmlns='http://www.dell.com/ns/ftos:0.1/root'>
<command>show version
Dell Real Time Operating System Software
Dell Operating System Version: 2.0
Dell Application Software Version: 9-5(0-90)
Copyright (c) 1999-2014 by Dell Inc. All Rights Reserved.
Build Time: Sun Jun 29 11:15:04 2014
Build Path: /sites/eqx/work/swbuild01_1/build07/MERCED-MR-9-5-0/SW/SRC
Dell Networking OS uptime is 10 minute(s)
System image file is "DT-MAA-S4810-16"
System Type: S4810