i
Contents
Configuring gRPC ·························································································· 1
About gRPC ······················································································································································· 1
gRPC protocol stack layers ························································································································ 1
Network architecture ·································································································································· 1
Telemetry technology based on gRPC ······································································································ 1
Telemetry modes ······································································································································· 2
gNMI ··························································································································································· 2
Protocols ···················································································································································· 2
FIPS compliance ················································································································································ 2
Restrictions and guidelines: gRPC configuration ······························································································· 3
gRPC configuration tasks at a glance ················································································································ 3
Configuring the gRPC dial-in mode···················································································································· 3
Configuring the gRPC service ···················································································································· 3
Configuring a gRPC user ··························································································································· 4
Enabling gRPC logging in dial-in mode······································································································ 4
Configuring the gRPC dial-out mode ················································································································· 5
Enabling the gRPC service ························································································································ 5
Configuring sensors ··································································································································· 5
Configuring collectors ································································································································· 6
Configuring a subscription ·························································································································· 7
Enabling gRPC logging in dial-out mode ··································································································· 9
Specifying the PKI domain for secure communication with collectors ······························································· 9
Setting the maximum CPU usage for gRPC ···································································································· 10
Display and maintenance commands for gRPC ······························································································ 10
gRPC configuration examples ························································································································· 10
Example: Configuring the gRPC dial-in mode ·························································································· 10
Example: Configuring event-triggered telemetry in gRPC dial-out mode················································· 11
Example: Configuring the gRPC dial-out mode ······················································································· 12
Protocol buffer code ····················································································· 14
Protocol buffer code format ······························································································································ 14
Proto definition files ·································································································································· 15
Proto definition files for dial-in mode ········································································································ 15
Proto definition files for dial-out mode ······································································································ 17
Obtaining proto definition files ·················································································································· 18
Example: Developing a gRPC collector-side application ················································································· 18
Prerequisites ············································································································································ 18
Generating the C++ code for the proto definition files·············································································· 18
Developing the collector-side application (dial-in mode) ·········································································· 19
Developing the collector-side application (dial-out mode)········································································ 31
Appendix: Methods and attributes for gNMI operations ··········································································· 32
Document conventions and icons ································································ 40
Conventions ····················································································································································· 40
Network topology icons ···································································································································· 41
Support and other resources ······································································· 42
Accessing Hewlett Packard Enterprise Support······························································································· 42
Accessing updates ··········································································································································· 42
Websites ·················································································································································· 43
Customer self repair ································································································································· 43
Remote support ········································································································································ 43
Documentation feedback ························································································································· 43
Index ············································································································ 45