9.6. gRPC Command Reference

The commands listed in this section apply to the 7950 XRS, 7750 SR-12e, and 7750 SR-7/12 platforms.

9.6.1. Command Hierarchies

9.6.1.1. System Commands

config
— system
grpc
max-msg-size number
— no shutdown
config
— system
[no] profile user-profile-name
grpc
gnoi-system-cancelreboot {permit | deny}
gnoi-system-reboot {permit | deny}
gnoi-system-rebootstatus {permit | deny}
gnoi-system-setpackage {permit | deny}

For more information about system security commands, refer to the

9.6.1.2. QoS Commands

config
— router
— sgt-qos
— application
grpc
dscp {dscp-value | dscp-name}

9.6.2. Command Descriptions

9.6.2.1. System Commands

grpc

Syntax 
grpc
Context 
config>system
config>router>sgt-qos>application
Description 

This command enables the context to configure gRPC parameters.

max-msg-size

Syntax 
max-msg-size number
no max-msg-size
Context 
config>system>grpc
Description 

This command configures the maximum gRPC rx message size.

The no form of the command reverts to the default value.

Default 

max-msg-size 512

Parameters 
number—
Specifies the maximum message size in megabytes.
Values—
1 to 1024

 

shutdown

Syntax 
no shutdown
Context 
config>system>grpc
Description 

This command disables the gRPC server. The shutdown command is not blocked if there are active gRPC sessions. Shutting down gRPC will terminate all active gRPC sessions.

tls-server-profile

Syntax 
tls-server-profile name
no tls-server-profile
Context 
config>system>grpc
Description 

This command provides the TLS profile name to use for the gRPC server.

Parameters 
name—
Specifies the TLS server profile name, up to 32 characters.

security

Syntax 
security
Context 
config>system
Description 

This command enables the context to configure security settings.

Security commands manage user profiles and user membership. Security commands also manage user login registrations.

profile

Syntax 
[no] profile user-profile-name
Context 
config>system>security
Description 

This command creates a context to create user profiles for CLI command tree permissions. Profiles are used to either deny or permit user console access to a hierarchical branch or to specific commands. Once the profiles are created, the user command assigns users to one or more profiles.

The no form of this command deletes a user profile.

Default 

profile default

Parameters 
user-profile-name—
Specifies up to 16 user profile names, up to 32 characters. Up to 8 profiles can be assigned to a user.

grpc

Syntax 
grpc
Context 
config>system>security>profile
Description 

This command enables the context to configure a specific gRPC security profile.

rpc-authorization

Syntax 
rpc-authorization
Context 
config>system>security>profile>grpc
Description 

This command opens a configuration context for configuring user privileges related to RPCs.

gnoi-system-cancelreboot

Syntax 
gnoi-system-cancelreboot {permit | deny}
Context 
config>system>security>profile>grpc>rpc-authorization
Description 

This command permits the use of gNOI System RebootStatus RPC for a user-given profile.

The no form of this command reverts to the default value.

Default 

gnoi-system-cancelreboot deny

Parameters 
permit—
Specifies that the use of gNOI System RebootStatus RPC is permitted.
deny—
Specifies that the use of gNOI System RebootStatus RPC is denied.

gnoi-system-reboot

Syntax 
gnoi-system-reboot {permit | deny}
Context 
config>system>security>profile>grpc>rpc-authorization
Description 

This command permits the use of gNOI System Reboot RPC for a user-given profile.

The no form of this command reverts to the default value.

Default 

gnoi-system-reboot deny

Parameters 
permit—
Specifies that the use of gNOI System Reboot RPC is permitted.
deny—
Specifies that the use of gNOI System Reboot RPC is denied.

gnoi-system-rebootstatus

Syntax 
gnoi-system-rebootstatus {permit | deny}
Context 
config>system>security>profile>grpc>rpc-authorization
Description 

This command permits the use of gNOI System RebootStatus RPC for a user-given profile.

The no form of this command reverts to the default value.

Default 

gnoi-system-rebootstatus deny

Parameters 
permit—
Specifies that the use of gNOI System RebootStatus RPC is permitted for a user-given profile.
deny—
Specifies that the use of gNOI System RebootStatus RPC is denied.

gnoi-system-setpackage

Syntax 
gnoi-system-setpackage {permit | deny}
Context 
config>system>security>profile>grpc>rpc-authorization
Description 

This command permits the use of gNOI System SetPackage RPC for a user-given profile.

The no form of this command reverts to the default value.

Default 

gnoi-system-setpackage deny

Parameters 
deny—
Specifies that the use of gNOI System SetPackage RPC is denied.
permit—
Specifies that the use of gNOI System SetPackage RPC is permitted.

gnoi-system-switchcontrolprocessor

Syntax 
gnoi-system-switchcontrolprocessor {permit | deny}
Context 
config>system>security>profile>grpc>rpc-authorization
Description 

This command permits the use of gNOI System SwitchControlProcessor RPC for a user-given profile.

The no form of this command reverts to the default value.

Default 

gNOI System SwitchControlProcessor RPC deny

Parameters 
deny—
Specifies that the use of gNOI System SwitchControlProcessor RPC is denied.
permit—
Specifies that the use of gNOI System SwitchControlProcessor RPC is permitted.

9.6.2.2. QoS Commands

dscp

Syntax 
dscp {dscp-value | dscp-name}
Context 
config>router>sgt-qos>application>grpc
Description 

This command configures a DiffServ Code Point (DSCP) name to be used for gRPC.

Parameters 
dscp-value—
Represents the gRPC traffic class.
Values—
0 to 63

 

dscp-name—
Represents the gRPC traffic class.
Values—
none, be, ef, cp1, cp2, cp3, cp4, cp5, cp6, cp7, cp9, cs1, cs2, cs3, cs4, cs5, nc1, nc2, af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, cp11, cp13, cp15, cp17, cp19, cp21, cp23, cp25, cp27, cp29, cp31, cp33, cp35, cp37, cp39, cp41, cp42, cp43, cp44, cp45, cp47, cp49, cp50, cp51, cp52, cp53, cp54, cp55, cp57, cp58, cp59, cp60, cp61, cp62, cp63