EasyManua.ls Logo

Cisco D9800 - Page 288

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
Loading...
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

Related product manuals