gnmi
To create a gRPC listener with the default or IANA ratified gNMI port of 9339, use the gnmi command in Global Configuration Mode.
gnmi port portnum
Syntax Description
portnum |
Specifies the server listening port for the gRPC service.
|
Command Default
None
Command Modes
XR Config mode
Command History
Release |
Modification |
---|---|
Release 24.1.1 |
This command was introduced. |
Usage Guidelines
Unconfiguring gNMI will disable requests on port 9339.
The allowed ports within this range are 9339 (IANA ratified port) and 57344-57999 (Linux application port range)
Task ID
Task ID |
Operations |
---|---|
config-services |
read, write |
Examples
The following example shows how to configure gNMI as a submode under gRPC and committing this configuration would create a gRPC listener with the default or IANA ratified gNMI port of 9339.
Router(config-grpc)gnmi
Router(config-grpc-gnmi)commit
Verify the submode configuration.
Router#show running-config grpc
grpc
gnmi
!
The port command under gNMI submode allows the port to be modified in the port range or IANA ratified port.
Router(config-grpc)#gnmi
Router(config-grpc-gnmi)#port 9339
Router(config-grpc-gnmi)#commit
Verify the port number.
Router#show running-config grpc
grpc
gnmi
port 9339
!