Upload Software License File Command - Cisco D9800 Reference Manual

Network transport receiver
Hide thumbs Also See for D9800:
Table of Contents

Advertisement

API Definitions
Connection: keep-alive
Transfer-Encoding: chunked
Content-type: application/xml
<?xml version="1.0" encoding="ISO-8859-1"
?><devicectl><download><settings><dlmode>Always</dlmode><dlhttpchunk>Enabled</dlhttpchunk></settings></download></devicectl>
Input (JSON case):
curl -i -k -H "X-SESSION-ID: $token" "http://192.168.0.1/ws/v2/device_ctl/download&js"
Expected output (Full HTTP response must be checked for 200 OK):
HTTP/1.1 200 OK
Date: Mon, 25 Sep 2017 13:39:30 GMT
Server: Hiawatha v10.3
Connection: keep-alive
Transfer-Encoding: chunked
Content-type: application/json
{
}
Logic for interpreting the command response:
If the HTTP response is 200 (OK):
{
the client software must check the dlhttpchunk value.
}
else
{
}

Upload Software License File Command

Table 10: Command Details
Command Detail
Command URL
Command Information
HTTP Method
Access Type
"devicectl": {
"download": {
"settings": {
"dlmode": "Always",
"dlhttpchunk": "Enabled"
}
}
}
if the dlhttpchunk value is Enabled
{
the client code may use the Chunky CDT Upload command.
}
else
{
the client software must use the Legacy CDT Upload command.
}
the client software must use the Legacy CDT Upload command.
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
Upload Software License File Command
Description
-F cdtfile=@"lic_file_path/lic_file_name"
"https://192.168.0.1/cdt_upload.html"
Software license files can be uploaded to the unit, the same as a
CDT file.
POST
Write
21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents