ipld-eth-server/vendor/github.com/aristanetworks/goarista/cmd/ocredis
Matt K 293dd2e848 Add vendor dir (#16) (#4)
* Add vendor dir so builds dont require dep

* Pin specific version go-eth version
2018-01-29 13:44:18 -06:00
..
main.go Add vendor dir (#16) (#4) 2018-01-29 13:44:18 -06:00
README.md Add vendor dir (#16) (#4) 2018-01-29 13:44:18 -06:00

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 -addrs <switch-hostname>:6042 -redis <redis-hostname>:6379