EasyManuals Logo

Cisco D9800 User Manual

Cisco D9800
294 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #288 background imageLoading...
Page #288 background image
2
Show all protocol control info in JSON:
curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/device_ctl/protocols?js=1"
Expected output (values are for example purposes only):
{
"devicectl": {
"protocols": {
"settings": {
"http": "HTTPS",
"snmp": "Enable",
"igmp": "Enable",
"syslog": "Syslog UDP",
"slogsrvip": "0.0.0.0",
"slogsrvprt": "514",
"mpe": "Fwd None",
"idletimeout": "0",
"globaldns": "Enable"
}
}
}
}
3
Show a single protocol control item in JSON:
curl -k -H "X-SESSION-ID: $token"
"https://192.168.0.1/ws/v2/device_ctl/protocols?http&js=1"
Expected output (values are for example purposes only):
{
"devicectl": {
"protocols": {
"settings": {
"http": "HTTPS"
}
}
}
}
POST Method Examples:
Change protocol control configurations
1
Change SNMP protocol configuration:
curl -k -X POST -H "X-SESSION-ID: $token"
"https://192.168.0.1/ws/v2/device_ctl/protocols?snmp=Enable&js=1"
If successful, the return body will be:
{
"response": {
"code": "10",
"result": "success",
"message": "Success"
}
}
And SNMP protocol will be enabled.
2
Change IGMP protocol configuration:
curl -k -X POST -H "X-SESSION-ID: $token"
"https://192.168.0.1/ws/v2/device_ctl/protocols?igmp=Disable&js=1"
If successful, the return body will be:
{
"response": {
"code": "10",
"result": "success",
"message": "Success"
}
}
And IGMP protocol will be disabled.
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
276
API Definitions
Protocol Device Control

Table of Contents

Other manuals for Cisco D9800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco D9800 and is the answer not in the manual?

Cisco D9800 Specifications

General IconGeneral
BrandCisco
ModelD9800
CategoryReceiver
LanguageEnglish

Related product manuals