Search code examples
orientdb

list servers OrientDB 2.2. via http rest


i try to get servers status of distributed version of OrientDB via http rest :

curl --user admin:admin --header "Accept: text/csv" -d "list servers " "http://localhost:2480/command/GratefulDeadConcerts/sql" 

doesnt works :

{
  "errors": [
{
  "code": 500,
  "reason": 500,
  "content": "com.orientechnologies.orient.core.command.OCommandExecutorNotFoundException: Cannot find a command executor for the command request: sql.list servers\u000d\u000a\u0009DB name=\"GratefulDeadConcerts\""
}

Solution

  • you're sending a list servers command to the sql interpreter while that's not a sql command but a console one.


    UPDATE

    you can use this

    curl --user root:root --header "Accept: text/csv" -d "HA STATUS -servers -output=text" "http://localhost:2480/command/GratefulDeadConcerts/sql"