port
Use this command to configure a non-TLS port for streaming-telemetry.
Use the no parameter of this command to reset the non-TLS port to its default value.
Command Syntax
port <1024-65535>
no port
Parameters
port <1024-65535>
Specifies the port number range for the insecure TLS gRPC connection.
Default
The non-TLS port is set to 9339.
Command Mode
Feature telemetry configure mode
Applicability
Introduced in OcNOS version 6.6.0. Updated the port range from <32768-60999> to <1024–65535> to allow flexibility with the default port configuration in OcNOS version 7.0.0.
Examples
OcNOS(config)#feature streaming-telemetry vrf management
OcNOS(feature-telemetry-config)#port 54321
OcNOS(feature-telemetry-config)#commit
OcNOS(config)#show running-config streaming-telemetry
!
feature streaming-telemetry vrf management
port 54321
!
The same port number can be configured across multiple VRF instances of streaming-telemetry.
OcNOS#show runn streaming-telemetry
!
feature streaming-telemetry vrf management
port 40000
!
feature streaming-telemetry vrf user1
port 40000
!
feature streaming-telemetry vrf user2
port 40000
!
feature streaming-telemetry vrf user3
port 40000
!
!
!
User can configure the default port number like other port values, and the show command displays the default port number.
OcNOS(config)#feature streaming-telemetry vrf management
OcNOS(feature-telemetry-config)#port 9339
OcNOS(feature-telemetry-config)#commit
2025 Aug 29 04:49:09.158 : OcNOS : CML : CRITI : Default port configured 9339
OcNOS(feature-telemetry-config)#
OcNOS(feature-telemetry-config)#
OcNOS(feature-telemetry-config)#exit
OcNOS(config)#
OcNOS(config)#
OcNOS(config)#
OcNOS(config)#
OcNOS(config)#show running-config streaming-telemetry
!
feature streaming-telemetry vrf management
port 9339
!
debug telemetry gnmi enable severity debug
!
!
!