Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 1.8
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
7 Command-line Interface for Administration
Chapter Sections
Chapters

7.7. Usingcbvbuckettool

Usage:

shell> cbvbuckettool mapfile key0 [key1 ... keyN]

The cbvbuckettool expects a vBucketServerMap JSON mapfile, and will print the vBucketId and servers each key should live on. You may use '-' instead for the filename to specify stdin.

Examples:

shell> cbvbuckettool file.json some_key another_key

Or

shell> curl http://host:8091/pools/default/buckets/default | cbvbuckettool - some_key another_key

An example of running it with output:

shell> curl http://127.0.0.1:8091/pools/default/buckets/default | cbvbuckettool - some_key another_key
key: some_key vBucketId: 260 master: http://127.0.0.1:11210/ replicas:
key: another_key vBucketId: 1022 master: http://127.0.0.1:11210/ replicas: