Get desktop application:
View/edit binary Protocol Buffers messages
The gNOI service is a collection of operational RPC's that allow for the management of a target outside of the configuration and telemetry pipeline.
Ping executes the ping command on the target and streams back the results. Some targets may not stream any results until all results are in. The stream should provide single ping packet responses and must provide summary statistics.
A PingRequest describes the ping operation to perform. Only the destination fields is required. Any field not specified is set to a reasonable server specified value. Not all fields are supported by all vendors. A count of 0 defaults to a vendor specified value, typically 5. A count of -1 means continue until the RPC times out or is canceled. If the interval is -1 then a flood ping is issued. If the size is 0, the vendor default size will be used (typically 56 bytes).
Destination address to ping. required.
Source address to ping from.
Number of packets.
Nanoseconds between requests.
Nanoseconds to wait for a response.
Size of request packet. (excluding ICMP header)
Set the do not fragment bit. (IPv4 destinations)
Do not try resolve the address returned.
Layer3 protocol requested for the ping.
Network instance to ping the destination in
A PingResponse represents either the reponse to a single ping packet (the bytes field is non-zero) or the summary statistics (sent is non-zero). For a single ping packet, time is the round trip time, in nanoseconds. For summary statistics, it is the time spent by the ping operation. The time is not always present in summary statistics. The std_dev is not always present in summary statistics.
Source of received bytes.
Total packets sent.
Total packets received.
Minimum round trip time in nanoseconds.
Average round trip time in nanoseconds.
Maximum round trip time in nanoseconds.
Standard deviation in round trip time.
Bytes received.
Sequence number of received packet.
Remaining time to live value.
Traceroute executes the traceroute command on the target and streams back the results. Some targets may not stream any results until all results are in. If a hop count is not explicitly provided, 30 is used.
A TracerouteRequest describes the traceroute operation to perform. Only the destination field is required. Any field not specified is set to a reasonable server specified value. Not all fields are supported by all vendors. If the hop_count is -1 the traceroute will continue forever.
Source address to ping from.
Destination address to ping.
Initial TTL. (default=1)
Maximum number of hops. (default=30)
Nanoseconds to wait for a response.
Set the do not fragment bit. (IPv4 destinations)
Do not try resolve the address returned.
Layer-3 protocol requested for the ping.
Do not try to lookup ASN
Network instance to trace the destination in
A TraceRouteResponse contains the result of a single traceoute packet. There may be an optional initial response that provides information about the traceroute request itself and contains at least one of the fields in the the initial block of fields and none of the fields following that block. All subsequent responses should not contain any of these fields. Typically multiple responses are received for each hop, as the packets are received. The mpls field maps names to values. Example names include "Label", "CoS", "TTL", "S", and "MRU". [Perhaps we should list the canonical names that must be used when applicable].
The following fields are only filled in for the first message. If any of these fields are specified, all fields following this block are left unspecified.
The following fields provide the disposition of a single traceroute packet.
Hop number. required.
Address of responding hop. required.
Name of responding hop.
Round trip time in nanoseconds.
State of this hop.
Code terminating hop.
MPLS key/value pairs.
AS path.
ICMP extension data
Time returns the current time on the target. Time is typically used to test if a target is actually responding.
A TimeRequest requests the current time accodring to the target.
(message has no fields)
Current time in nanoseconds since epoch.
SetPackage places a software package (possibly including bootable images) on the target. The file is sent in sequential messages, each message up to 64KB of data. A final message must be sent that includes the hash of the data sent. An error is returned if the location does not exist or there is an error writing the data. If no checksum is received, the target must assume the operation is incomplete and remove the partially transmitted file. The target should initially write the file to a temporary location so a failure does not destroy the original file.
SetPackageRequest will place the package onto the target and optionally mark it as the next bootable image. The initial message must be a package message containing the filename and information about the file. Following the initial message the contents are then streamed in maximum 64k chunks. The final message must be a hash message contains the hash of the file contents.
Verification hash of data.
(message has no fields)
SwitchControlProcessor will switch from the current route processor to the provided route processor. If the current route processor is the same as the one provided it is a NOOP. If the target does not exist an error is returned.
Path to the target Control Processor.
Path to the Control Processor that the system switched to.
Current software version of the target Control Processor.
Uptime of the target Control Processor in nanoseconds.
Reboot causes the target to reboot, possibly at some point in the future. If the method of reboot is not supported then the Reboot RPC will fail. If the reboot is immediate the command will block until the subcomponents have restarted. If a reboot on the active control processor is pending the service must reject all other reboot requests. If a reboot request for active control processor is initiated with other pending reboot requests it must be rejected.
A RebootRequest requests the specified target be rebooted using the specified method after the specified delay. Only the COLD method with a delay of 0 is guaranteed to be accepted for all target types.
Delay in nanoseconds before issuing reboot.
Informational reason for the reboot.
Optional sub-components to reboot.
Force reboot if sanity checks fail. (ex. uncommited configuration)
(message has no fields)
RebootStatus returns the status of reboot for the target.
optional sub-component.
If reboot is active.
Time left until reboot.
Time to reboot in nanoseconds since the epoch.
Reason for reboot.
Number of reboots since active.
Type of reboot.
Applicable only when active = false.
CancelReboot cancels any pending reboot request.
A CancelRebootRequest requests the cancelation of any outstanding reboot request.
informational reason for the cancel
optional sub-components.
(message has no fields)
KillProcess kills an OS process and optionally restarts it.
KillProcessRequest describes the process kill operation. Either a pid or process name must be specified, and a termination signal must be specified.
Process ID of the process to be killed.
Name of the process to be killed.
Whether the process should be restarted after termination. This value is ignored when the termination signal is SIGHUP.
KillProcessResponse describes the result of the process kill operation.
(message has no fields)
Termination signal sent to the process.
Used in:
Invalid default.
Terminate the process gracefully.
Terminate the process immediately.
Reload the process configuration.
Terminate the process immediately and dump a core file.
Package defines a single package file to be placed on the target.
Used in:
Destination path and filename of the package.
Version of the package. (vendor internal name)
Indicates that the package should be made active after receipt on the device. For system image packages, the new image is expected to be active after a reboot.
Details for the device to download the package from a remote location.
A RebootMethod determines what should be done with a target when a Reboot is requested. Only the COLD method is required to be supported by all targets. A target should return 'INVALID_ARGUMENT` if UNKNOWN or any other unsupported method is called. It is vendor defined if a WARM reboot is the same as an NSF reboot.
Used in:
,Invalid default method.
Shutdown and restart OS and all hardware.
Halt and power down, if possible.
Halt, if possible.
Reload configuration but not underlying hardware.
Non-stop-forwarding reboot, if possible.
Apply power, no-op if power is already on.
Used in:
Used in:
Used in:
Use ICMP ECHO for probes.
Use TCP SYN for probes.
Use UDP for probes.
Used in:
class number
class type
raw words associated with this data
State is the resulting state of a single traceoroute packet.
Used in:
Normal hop response.
No response.
Unknown response state.
See icmp_code field.
Host unreachable.
Network unreachable.
Protocol unreachable.
Source route failed.
Fragmentation needed.
Communication administratively prohibited.
Host precedence violation.
Precedence cutoff in effect.