subscription-name

Use this command to create named subscriptions for persistent telemetry configurations in an OcNOS device. The VRFClosed Virtual Routing and Forwarding parameter must match the VRF specified in the feature streaming-telemetry command. Multiple subscriptions can be created. These subscriptions are essential for activating streaming telemetry, as they define specific settings such as associated destination groups and sensor groups.

Use no parameter of this command to delete a subscription.

Command Syntax

Copy
subscription-name NAME (vrf (management|NAME)|)
no subscription-name NAME (vrf (management|NAME)|)

Parameters

subscription-name NAME

Specifies the unique name to the persistent subscription.

vrf NAME

(Optional) Creates named subscriptions in a user-defined VRF.

vrf management

(Optional) Creates named subscriptions in the management VRF.

Default

None

Command Mode

Configure mode

Applicability

Introduced in OcNOS version 6.5.2.

Example

The following command demonstrates configuring a subscription (sub-1) on an OcNOS device. The subscription remains in-active because the sensor groups and destination groups have not been added to it.

Copy
OcNOS#configure terminal
OcNOS(config)#subscription-name sub-1
OcNOS(telemetry-subscription)#commit
Subscription sub-1 is "in-active": sensor-group(s) and destination-group(s) are not configured.
OcNOS(telemetry-subscription)#exit
Copy
OcNOS(config)#show running-config streaming-telemetry
!
feature streaming-telemetry
!
subscription-name sub-1
!