cli-enonic icon indicating copy to clipboard operation
cli-enonic copied to clipboard

Get access to cluster-info from the cmd

Open tomanders opened this issue 3 years ago • 2 comments

Hi, I find myself using the cluster.elasticsearch (https://developer.enonic.com/docs/xp/stable/runtime/statistics#elasticsearch_cluster_health) interface to get basic info like which server is the current master.

It would be great if I could get this information from the CLI, instead of having to drop into the browser for this kind of information.

tomanders avatar Apr 14 '21 09:04 tomanders

@tomanders Can't you simply use "curl" in your command line to get this kind of info?

alansemenov avatar May 19 '21 08:05 alansemenov

We're adding a new command "stats" which will return a pretty-formattet result similar to what you get when visiting port 2609.

You can then pass parameters such as 'enonic stats relative/path'. Leaving param emty returns result from root

sigdestad avatar Aug 25 '21 08:08 sigdestad