Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-4043

membase cli should have a flag for printing out all the server nodes without health info

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.7.1
    • 1.7.0
    • tools
    • Security Level: Public
    • None

    Description

      Instead of a new script, perhaps we should improve the membase command-line utility for you. Right now...

      1. ./bin/membase server-list -c 127.0.0.1 -u Administrator -p password
        ns_1@10.1.4.12 10.1.4.12:8091 healthy active
        ns_1@10.1.4.99 10.1.4.99:8091 unhealthy active

      So, this would be the same as your allnodes.sh...

      1. ./bin/membase server-list -c 127.0.0.1 -u Administrator -p password | cut -d " " -f 2 | cut -d ":" -f 1
        10.1.4.12
        10.1.4.99

      Maybe...

      1. ./bin/membase host-list -c 127.0.0.1 -u Administrator -p password

      That would have the benefit of also running on Windows.

      Steve

      ________________________________________
      From: Perry Krug
      Sent: Friday, July 08, 2011 12:43 PM
      To: dev_support
      Subject: simple bash script

      I know it may sound super simple, but could I ask that someone create a quick bash script and include this line:
      curl http://localhost:8091/pools/default 2> /dev/null | grep -Po "hostname.*?," | cut -d"\"" -f 3 | cut -d":" -f 1

      Then name it something like "allnodes.sh" so that I can very easily run:
      for i in `./allnodes.sh`;do /opt/membase/bin/mbstats $i:11210 all | grep uptime;done

      Please commit it to the build so that it's included in the /opt/membase/bin directory.

      I'm open to other ideas, but really need a way to get the full list of IP's from a cluster...especially a >10 noder...

      Thanks!

      Attachments

        For Gerrit Dashboard: MB-4043
        # Subject Branch Project Status CR V

        Activity

          People

            bcui Bin Cui (Inactive)
            steve Steve Yen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty