Set Log Size - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Ethernet API

Set Log Size

Example: set log size to 10M
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d '{"sizeî :
"10M"}' https://localhost/api/2.0/log/size
Reply
{"success":"true","updatedAt":"2013-04-09 10:27:52"}
Ethernet API
Use the commands in this section to configure the Ethernet API.
Get Speed
Example: get speed
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/eth/speed
Reply
{"speed":"100","success":"true","getAt":"2013-04-08 10:58:49"}
Set Speed
Example: set speed to 1000
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d '{"speed" :
"1000"}' https://localhost/api/2.0/eth/speed
Reply
{"success":"true","updatedAt":"2012-11-08 09:37:31"}
Parameter Restrictions
Only 1000, 100, and 10 are valid parameters.
Get Duplex
Example: get duplex
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/eth/duplex
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
4-10
Chapter 4
Configuring HTTP API
OL-29491-01

Advertisement

Table of Contents
loading

Table of Contents