[
https://issues.apache.org/jira/browse/HDDS-6668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17701094#comment-17701094
]
Soumitra Sulav commented on HDDS-6668:
--------------------------------------
Sample output
{code:java}
[root@ozonecert-1 ~]# ozone admin scm roles
ozonecert-2.ozonecert.root.hwx.site:9894:LEADER:1d962e0f-be2e-48ca-8b91-092cb89b72f4:172.27.18.141
ozonecert-8.ozonecert.root.hwx.site:9894:FOLLOWER:3cf9722d-c5fa-405c-953d-df92bf1d746e:172.27.67.74
ozonecert-1.ozonecert.root.hwx.site:9894:FOLLOWER:2db4480d-d47c-4c77-a879-dd10e74be49d:172.27.82.66
{code}
> scm roles CLI should provide JSON output option
> -----------------------------------------------
>
> Key: HDDS-6668
> URL: https://issues.apache.org/jira/browse/HDDS-6668
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Nilotpal Nandi
> Priority: Major
>
> Recently , there was a change in human readable output for the cli.
> This is an improvement Jira to add json argument to the cli.
>
> {noformat}
> ozone admin scm roles --json
> Unknown option: '--json'
> Usage: ozone admin scm roles [-hV] [-id=<scmServiceId>] [--scm=<scm>]
> List all SCMs and their respective Ratis server roles
> -h, --help Show this help message and exit.
> -id, --service-id=<scmServiceId>
> ServiceId of SCM HA Cluster
> --scm=<scm> The destination scm (host:port)
> -V, --version Print version information and exit.{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]