Set Duplex - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Chapter 4
Configuring HTTP API
Reply
{"duplex":"full","success":"true","getAt":"2013-04-08 13:08:20"}

Set Duplex

Example: set duplex to half
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d '{"duplex"
: "half"}' https://localhost/api/2.0/eth/duplex
Reply
{"success":"true","updatedAt":"2013-04-08 13:14:51"}
Parameter Restrictions
Only full and half are valid parameters.
Get Link-Detected
Example: get link-detected
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/eth/linkDetected
Reply
{"linkDetected":"yes","success":"true","getAt":"2013-04-08 13:08:20"}
Get MAC
Example: get MAC
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/eth/mac
Reply
{"mac":"","success":"true","getAt":"2013-06-25 18:00:51"}
Get Address4
Example: get address4
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/eth/address4
Reply
{"address4":"10.140.28.90/255.255.255.0","success":"true","getAt":"2013-06-25 18:04:42"}
OL-29491-01
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
Ethernet API
4-11

Advertisement

Table of Contents
loading

Table of Contents