跳转到内容
Ask AI

Telemetry

此内容尚不支持你的语言。

URLGETPOSTPATCHPUTDELETE
/rest/v1/running/telemetry-clientYNNNN
/rest/v1/running/telemetry-client/destination-group/{name}YYYNY
/rest/v1/running/telemetry-client/destination-group/{name}/destination/{ip}/{port}NYYNY
/rest/v1/running/telemetry-client/globalYNYNN
/rest/v1/running/telemetry-client/subscription/{name}YYYNY
/rest/v1/running/telemetry-client/ subscription/{name}/paths/{sub-path}NNNNY
/rest/v1/rpc/delete-clientNYNNN
POST HTTPS://{switch IP}/rest/v1/rpc/delete-client
GET HTTPS://{switch IP}/rest/v1/running/telemetry-client
POST HTTPS://{switch IP}/rest/v1/running/telemetry-client/destination-group
{
"name": "CreateNew",
"destination": [
{"ip":"11.11.11.11","port": 11},
{"ip":"22::22","port": 11}
]
}

Create a destination for a destination group.

Section titled “Create a destination for a destination group.”
POST HTTPS://{switch IP}/rest/v1/running/telemetry-client/destination-group/test/destination
{
"ip": "1.1.1.1",
"port": 1
}

Modify global telemetry client configuration.

Section titled “Modify global telemetry client configuration.”
PATCH rest/v1/running/telemetry-client/global
{
"encoding": "JSON",
"retry-interval": 30,
"unidirectional": "true"
}
POST HTTPS://{switch IP}/rest/v1/running/telemetry-client/subscription
{
"name": "test",
"dst-group": "test1",
"sensor-target": "STATE_DB",
"report-interval": 10000,
"report-type": "stream",
"paths": [
{"sub-path": "COUNTERS/Ethernet*"},
{"sub-path": "proc/parts_stat"}
]
}
DELETE HTTPS://{switch IP}/rest/v1/running/telemetry-client/subscription/test/path/proc%2Fparts_stat

Tree Diagrams

+--rw telemetry-client
+--rw global
| +--ro encoding?
| +--ro retry-interval?
| +--ro src-ip?
| +--ro unidirectional?

Table of Properties

NameRequiredType/RangeDescription
telemetry-clientMPath-only node, has no configurable value.
globalM(sub-property of telemetry-client)
Path-only node, has no configurable value.
encodingRO”JSON"
"GPB”(sub-property of global)
encoding method
Default value: “JSON”
retry-intervalRO0..65535(sub-property of global)
time interval to retry
Default value: 30
src-ipROA.B.C.D
XX:XX:XX:XX:XX:XX:XX:XX(sub-property of global)
source ip address
unidirectionalRO”true"
"false”(sub-property of global)
unidirectional link to remote
Default value: “true”

Tree Diagrams

+--rw telemetry-client
+--rw destination-group* [name]
| +--rw name
| +--rw destination* [ip port]
| +--rw ip
| +--rw port

Table of Properties

NameRequiredType/RangeDescription
telemetry-clientMPath-only node, has no configurable value.
destination-groupM(sub-property of telemetry-client)
Path-only node, has no configurable value.
nameMstring(sub-property of destination-group)
name of destination group
destinationM(sub-property of destination-group)
Path-only node, has no configurable value.
one destination-group contain multiple destination
ipMA.B.C.D
XX:XX:XX:XX:XX:XX:XX:XX(sub-property of destination)
destination ip address
portM1..65535(sub-property of destination)
destination port

Tree Diagrams

+--rw telemetry-client
+--rw subscription* [name]
+--rw name
+--rw dst-group?
+--rw sensor-target?
+--rw paths* [sub-path]
| +--rw sub-path
+--rw report-interval?
+--rw report-type?

Table of Properties

NameRequiredType/RangeDescription
telemetry-clientMPath-only node, has no configurable value.
subscriptionM(sub-property of telemetry-client)
Path-only node, has no configurable value.
nameMstring(sub-property of subscription)
name of subscription
dst-groupOstring(sub-property of subscription)
name of destination group to subscribe
sensor-targetO”COUNTERS_DB"
"STATE_DB"
"OTHERS”(sub-property of subscription)
sensor target to report
pathsM(sub-property of subscription)
Path-only node, has no configurable value.
sub-pathMstring(sub-property of paths)
sensor path to report
report-intervalO100..1800000(sub-property of subscription)
report interval
report-typeO”periodic"
"stream”(sub-property of subscription)
report type

Tree Diagrams

+---x delete-client

Table of Properties

NameRequiredType/RangeDescription
delete-clientMPath-only node, has no configurable value.
Delete all TELEMETRY_CLIENT configuration