Viewing a particular cluster configuration option
Understand how to view a particular cluster option and its value.
Viewing a particular cluster configuration option using the curl command
On the command line, run the following
command.
curl --silent --user USER 'https://CEPH_MANAGER:8080/api/cluster_conf/ARGUMENT' Replace:- USER with the username.
- CEPH_MANAGER with the IP address or short hostname of the node with the
active
ceph-mgrinstance. - ARGUMENT with the configuration option you want to view.
Note: If you used a self-signed certificate, use the
--insecure
option.
curl --silent --insecure --user USER 'https://CEPH_MANAGER:8080/api/cluster_conf/ARGUMENT'Viewing a particular cluster configuration option using Python
In the Python interpreter, enter the following:
$ python
>> import requests
>> result = requests.get('https://CEPH_MANAGER:8080/api/cluster_conf/ARGUMENT', auth=("USER", "PASSWORD"))
>> print result.json()Replace:- CEPH_MANAGER with the IP address or short hostname of the node with the
active
ceph-mgrinstance. - ARGUMENT with the configuration option you want to view.
- USER with the username.
- PASSWORD with the user’s password.
Note: If using a self-signed certificate, use
verify=False.$ python
>> import requests
>> result = requests.get('https://CEPH_MANAGER:8080/api/cluster_conf/ARGUMENT', auth=("USER", "PASSWORD"), verify=False)
>> print result.json()Viewing a particular cluster configuration option using a web browser
In the web browser, go to https://CEPH_MANAGER:8080/api/cluster_conf/ARGUMENT.
Replace:
- CEPH_MANAGER with the IP address or short hostname of the node with the
active
ceph-mgrinstance. - ARGUMENT with the configuration option you want to view.