Viewing all configuration options for OSDs
Understand how to view all configuration options and their values for OSDs.
Viewing all configuration options for OSDs using the curl command
On the command line, run the following command.
curl --silent --user USER 'https://CEPH_MANAGER:8080/api/osd/flags'Replace:- USER with the username.
- CEPH_MANAGER with the IP address or short hostname of the node with the
active
ceph-mgrinstance.
Note: If you used a self-signed certificate, use the
--insecure
option.
curl --silent --insecure --user USER 'https://CEPH_MANAGER:8080/api/osd/flags'Viewing all configuration options for OSDs using Python
In the Python interpreter, enter the following:
$ python
>> import requests
>> result = requests.get('https://CEPH_MANAGER:8080/api/osd/flags', auth=("USER", "PASSWORD"))
>> print result.json()Replace:- CEPH_MANAGER with the IP address or short hostname of the node with the
active
ceph-mgrinstance. - USER with the username.
- PASSWORD with the user’s password.
If you used a self-signed certificate, use the
verify=False option.Note: If
using a self-signed certificate, use
verify=False.$ python
>> import requests
>> result = requests.get('https://CEPH_MANAGER:8080/api/osd/flags', auth=("USER", "PASSWORD"), verify=False))
>> print result.json()Viewing all configuration options for OSDs using a web browser
In the web browser, go to userhttps://CEPH_MANAGER:8080/api/osd/flags.
Replace CEPH_MANAGER with the IP address or short hostname of the node with
the active ceph-mgr instance.
Enter the username and password when prompted.