Forrest logo
back to context overview

gnmic-subscribe

List of commands for gnmic-subscribe:

  • gnmic-subscribe:tldr:843dd gnmic-subscribe: Subscribe to a target for only one update.
    $ gnmic -a ${ip:port} subscribe --path ${path} --mode once
    try on your machine
    explain this command
  • gnmic-subscribe:tldr:b9886 gnmic-subscribe: Subscribe to a target with sample interval and updates only on change.
    $ gnmic -a ${ip:port} subscribe --path ${path} --stream-mode on-change --heartbeat-interval 1m
    try on your machine
    explain this command
  • gnmic-subscribe:tldr:e7b8f gnmic-subscribe: Subscribe to a target and specify response encoding (json_ietf).
    $ gnmic -a ${ip:port} subscribe --path ${path} --encoding json_ietf
    try on your machine
    explain this command
  • gnmic-subscribe:tldr:e905f gnmic-subscribe: Subscribe to a target with a sample interval of 30s (default is 10s).
    $ gnmic -a ${ip:port} subscribe --path ${path} --sample-interval 30s
    try on your machine
    explain this command
  • gnmic-subscribe:tldr:f749f gnmic-subscribe: Subscribe to target state updates under the subtree of a specific path.
    $ gnmic --address ${ip:port} subscribe --path ${path}
    try on your machine
    explain this command
back to context overview