Administrator Guide
Samples of the config-command
Following is the sample output of CONFIG command:
To configure an IP address:
Input.xml:
<input>
<config-commands>
interface vlan 100\r\n
ip address 1.2.3.4/24
</config-commands>
</input>
curl -u demo:demo -X POST -T Input.xml http://<IP>:8008/api/running/dell/
_operations/cli
<output xmlns='http://www.dell.com/ns/dell: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/dell/
_operations/cli
<output xmlns='http://www.dell.com/ns/dell:0.1/root'>
<command>conf
Dell(conf)#interface vlan 100
Dell(conf-if-vl-100)#mtu 10000
Dell(conf-if-vl-100)#end
Samples of the EXEC command
Following is the sample output of EXEC command:
Input.xml:
<input>
<exec-command>ping 10.16.127.35</exec-command>
</input>
curl -u demo:demo http://10.16.129.43:8008/api/running/dell/_operations/cli -X
POST -T ./input.xml
<output xmlns='http://www.dell.com/ns/dell:0.1/root'>
<command>ping 10.16.127.35
Type Ctrl-C to abort.
Sending 5, 100-byte ICMP Echos to 10.16.127.35, timeout is 2 seconds:
!!!!!
Success rate is 100.0 percent (5/5), round-trip min/avg/max = 0/4/20 (ms)
REST API
193