ocredis

command
v0.0.0-...-e1401db Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

ocredis

This is a client for the OpenConfig gRPC interface that publishes data to Redis. Values are stored in JSON. Every update is pushed to Redis twice:

  1. as a hash map update, where the path in Redis is the path to the entity or collection (aka container or list, in YANG speak) and the keys of the hash are the attributes (leaf names, in YANG speak).
  2. as a PUBLISH command sent onto the path to the entity or collection, so that consumers can receive updates in a streaming fashion from Redis.

Usage

See the -help output, but here's an example to push all the temperature sensors into Redis. You can also not pass any -subscribe flag to push everything into Redis.

ocredis -subscribe /Sysdb/environment/temperature -addr <switch-hostname>:6042 -redis <redis-hostname>:6379

Documentation

Overview

The ocredis tool is a client for the OpenConfig gRPC interface that subscribes to state and pushes it to Redis, using Redis' support for hash maps and for publishing events that can be subscribed to.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL