github.com/Psiphon-Inc/goarista@v0.0.0-20160825065156-d002785f4c67/cmd/ocredis/README.md (about)

     1  # ocredis
     2  
     3  This is a client for the OpenConfig gRPC interface that publishes data to
     4  Redis.  Values are stored in JSON.  Every update is pushed to Redis twice:
     5  
     6  1. as a [hash map](http://redis.io/topics/data-types-intro#hashes) update,
     7     where the path in Redis is the path to the entity or collection (aka
     8     container or list, in YANG speak) and the keys of the hash are the
     9     attributes (leaf names, in YANG speak).
    10  2. as a [`PUBLISH`](http://redis.io/commands/publish) command sent onto
    11     the path to the entity or collection, so that consumers can receive
    12     updates in a streaming fashion from Redis.
    13  
    14  ## Usage
    15  
    16  See the `-help` output, but here's an example to push all the temperature
    17  sensors into Redis.  You can also not pass any `-subscribe` flag to push
    18  _everything_ into Redis.
    19  ```
    20  ocredis -subscribe /Sysdb/environment/temperature -addrs <switch-hostname>:6042 -redis <redis-hostname>:6379
    21  ```