device# configure terminal
device(config)# telemetry collector collector_1
device(config-collector-collector_1#) ip 10.168.112.10 port 1
device(config-collector-collector_1)# profile system-profile default_system_utilization_statistics device(config-collector-collector_1)# profile interface-profile default_interface_statistics
device(config-collector-collector_1)# encoding ? Possible completions: gpb Google protobuf encoding json JSON encoding device(config-collector-collector_1)# encoding json
device(config-collector-collector_1)# activate
device(config-collector-collector_1)# do show running-configuration telemetry collector telemetry collector <collector-profile-1> ip <ipv4address1> port <portNum> profile system-utilization default_system_utilization_statistics profile interface default_interface_statistics use-vrf mgmt-vrf encoding json activate
device(config-collector-collector_1)# do show telemetry collector collector_1 Telemetry data is streamed to collector_1 on 10.128.116.10 and port 1, with transport as tcp. Profiles Streamed Interval Uptime Last Streamed ------------------- --------- ---------- --------------- default_interface_statistics 120 sec 05/10:23 2017-01-15: :05:07:33 default_system_utilization_statistics 300 sec 05/10:23 2017-01-15: :05:07:33 !
device# show telemetry collector summary Activated Collectors: -------------------- Name IP Address:Port Streaming/Connection Status ------------- -------------------- --------------------------- coll1 10.24.65.182:9000 connection_failed
The following example configures and activates a telemetry collector.
device# configure terminal device(config)# telemetry collector collector_1 device(config-collector-collector_1)# profile system-profile default_system_utilization_statistics device(config-collector-collector_1)# profile interface-profile default_interface_statistics device(config-collector-collector_1)# ip 10.168.112.10 port 1 device(config-collector-collector_1)# encoding json device(config-collector-collector_1)# activate