Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

cbstats to get cluster stats using sasl auth

6 replies [Last post]
  • Login or register to post comments
Tue, 01/08/2013 - 11:21
phongnguyen06
Offline
Joined: 01/08/2013
Groups: None

hello, i'm using membase 1.8.0 with multiple memcached buckets using access control (SASL). I am able to view node stats using cbstats localhost:11210 all [bucketname] . however, when i try to view the cluster stats i am unable to do so. i am trying cbstats localhost:11211 all [bucketname] and it hangs. when i kill the process i get this message:

Stats '' are not available from the requested engine.

am i doing this incorrectly ?

Top
  • Login or register to post comments
Tue, 01/08/2013 - 12:39
alex
Offline
Joined: 08/29/2011
Groups: None

Hey Phong,

I have a test running on my lab cluster now thats 2.0 so I dont have a 2.0 specific example - but I just gave this a try and it works fine.

There are two options that you may need to specify:
-b 'bucket name'
-p 'bucket password'

[root@cb1 bin]# ./cbstats localhost:11211 all -b apptest1
Authentication error for apptest1
[root@cb1 bin]# ./cbstats localhost:11211 all apptest1
Too many args, given ['apptest1'], but expected a maximum of 0
[root@cb1 bin]# ./cbstats localhost:11211 all -b apptest1 -p 1234 | wc -l
274

let me know if that helps.

thanks

-Alex

Top
  • Login or register to post comments
Tue, 01/08/2013 - 12:54
phongnguyen06
Offline
Joined: 01/08/2013
Groups: None

i tried that unfortunately my version doesn't recognize those flags

-bash-3.2$ /opt/couchbase/bin/cbstats localhost:11211 all -b monitor -p test
usage: cbstats [options]

cbstats: error: no such option: -b

Top
  • Login or register to post comments
Tue, 01/08/2013 - 13:19
alex
Offline
Joined: 08/29/2011
Groups: None

just got a 1.8.0 node installed - no flags, simply put the bucket name and then the password after all.
bucket name: phong
bucket pass: 1234

[root@cb5 bin]# ./cbstats localhost:11211 all phong 1234

Top
  • Login or register to post comments
Tue, 01/08/2013 - 14:15
phongnguyen06
Offline
Joined: 01/08/2013
Groups: None

a little more info on what i just tried and discovered. i installed 1.8.0 on one node and created 5 buckets, cbstats worked for port 11210 and 11211. no issues found... however, when i installed 1.8.0 on another node and joined them, 11210 worked but 11211 stopped working. can you see if you have the same issue on your end ? i am using couchbase-server-enterprise_x86_64_1.8.0.rpm md5sum c83d21bf8585bf7a44cbc4872bb08b7b

Top
  • Login or register to post comments
Tue, 01/08/2013 - 14:25
alex
Offline
Joined: 08/29/2011
Groups: None

Hey Phong,

We're using the exact same package. I may not have enough nodes left to test this today. That sounds slightly weird, the moxi on the newest node should be able to connect and gather stats for you just as it should be able to direct traffic to any node.

-Alex.

Top
  • Login or register to post comments
Tue, 01/22/2013 - 23:11
juliarobert
Offline
Joined: 01/22/2013
Groups: None

Interesting information. I like your topic. Thanks for sharing it.
testking free latest dumps and braindumps
ccie lab dumps practice test
ccie workbook practice test
ccie voice bootcamp practice test

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker