Issue A Management Command - Cisco 340 Series Configuration Manual

Table of Contents

Advertisement

Image Version Information

Issue a Management Command

Example: set a management command to mv /tmp/test /tmp/test1
Request
curl -k -X PUT -H 'password: cisco123!' -H 'Content-Type: application/json' -d '{"mngCmd"
: "mv /tmp/test /tmp/test1"}' httpss://10.140.44.134/api/1.0/cmd/mngCmd
Reply
{"success":"true","updatedAt":"2012-11-12 05:23:49"}
Image Version Information
Get OS Version
Example: get OS version information
Request
curl -k -X GET -H 'password: cisco123!' httpss://10.140.44.134/api/1.0/image/os
Reply
{"os":"1.3.9.1","success":"true","getAt":"2012-11-12 05:51:56"}
Get Third-Party App Version
Example: get third-party application version information
Request
curl -k -X GET -H 'password: cisco123!' httpss://10.140.44.134/api/1.0/image/3rdapp
Reply
{"3rdapp":"1.3.9.1","success":"true","getAt":"2012-11-12 05:56:39"}
Get OS and Third-Party App Version
Example: get OS version and third-party application version information
Request
curl -k -X GET -H 'password: cisco123!' httpss://10.140.44.134/api/1.0/image
Reply
{"os":"1.3.9.1","3rdapp":"1.3.9.1","success":"true","getAt":"2012-11-12 08:18:58"}
Cisco Edge 340 Series Software Configuration Guide, Release 1.0
4-16
Chapter 4
Configuring HTTP API
OL-29491-01

Advertisement

Table of Contents
loading

Table of Contents