destination-group GRPC

Use this command to add a destination-group under subscriptions. Can create multiple destination-groups within a subscription mode.

Use no parameter of this command to remove the destination-groups.

Ensure that the GRPC-GROUP-NAME is configured in the device's configuration mode before adding it to a subscription mode.

Command Syntax

Copy
destination-group GRPC-GROUP-NAME
no destination-group GRPC-GROUP-NAME

Parameters

GRPC-GROUP-NAME

Specify the name assigned to the tunnel server or collector endpoint used for telemetry data transmission.

Default

None

Command Mode

Telemetry-subscription Mode

Applicability

Introduced in OcNOS version 6.5.2.

Example

Ensure that the GRPC-GROUP-NAME (tunnel-1) is already configured in the current configuration mode.

Copy
OcNOS#configure terminal
OcNOS(config)#show running-config streaming-telemetry
!
feature streaming-telemetry
 grpc-tunnel-server retry-interval 60
!
sensor-group stream-1
 sensor-path ipi:/interfaces/interface[name="eth0"]/state/counters
!
destination-group tunnel-1
 tunnel-server ip 10.12.66.160 port 11163
!
subscription-name sub-1
 sensor-group stream-1 sample-interval 1000
!
!

The following commands illustrates how to add a destination group (tunnel-1) under subscription mode (sub-1) and verify the configuration using the show command output.

Copy
OcNOS(config)#subscription-name sub-1
OcNOS(telemetry-subscription)#destination-group tunnel-1
OcNOS(telemetry-subscription)#commit
OcNOS(telemetry-subscription)#exit
OcNOS(config)#show running-config streaming-telemetry
!
feature streaming-telemetry
 grpc-tunnel-server retry-interval 60
!
sensor-group stream-1
 sensor-path ipi:/interfaces/interface[name="eth0"]/state/counters
!
destination-group tunnel-1
 tunnel-server ip 10.12.66.160 port 11163
!
subscription-name sub-1
 destination-group tunnel-1
 sensor-group stream-1 sample-interval 1000
!
!