Set Ntp Server - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

System API

Set NTP Server

Example: set NTP server to time-a.nist.gov
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d
'{"server":"time-a.nist.gov"}' https://localhost/api/2.0/sys/ntp/server
Reply
{"success":"true","updatedAt":"2013-04-08 13:14:51"}
Parameter Restrictions
The valid parameter is full or half.
Get NTP Server
Example: get NTP Server
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/sys/ntp/server
Reply
{"ntp":"time-a.nist.gov","success":"true","getAt":"2013-05-09 12:22:26"}
Get Bluetooth Status
Example: get bluetooth status
Request
curl -k -X GET -H 'password: cisco123!' https://localhost/api/2.0/sys/bluetooth
Reply
{"bluetooth":"on","success":"true","getAt":"2013-05-10 15:04:35"}
Set Bluetooth Status
Example: set bluetooth status to off
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d
'{"bluetooth" : "off"}' https://localhost/api/2.0/sys/bluetooth
Reply
{"success":"true","updatedAt":"2013-05-10 15:04:57"}
Parameter Restrictions
The valid parameter is on or off.
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
4-4
Chapter 4
Configuring HTTP API
OL-29491-01

Advertisement

Table of Contents
loading

Table of Contents