Calling module commands
-----------------------
-Where a module implements command line hooks, using the Ceph CLI's
-``tell`` command to call them like this::
+Where a module implements command line hooks, the commands will
+be accessible as ordinary Ceph commands::
- ceph tell mgr <command | help>
+ ceph <command | help>
+
+If you would like to see the list of commands handled by the
+manager (where normal ``ceph help`` would show all mon and mgr commands),
+you can send a command directly to the manager daemon::
+
+ ceph tell mgr help
Note that it is not necessary to address a particular mgr instance,
simply ``mgr`` will pick the current active daemon.
-Use the ``help`` command to get a list of available commands from all
-modules.
-
Configuration
-------------
- (MGR_DOWN)
- exec:
mon.a:
- - ceph tell mgr.x restful create-key admin
- - ceph tell mgr.x restful create-self-signed-cert
+ - ceph restful create-key admin
+ - ceph restful create-self-signed-cert
- ceph.restart: [mgr.x]
- workunit:
clients:
return {
'api_version': 1,
'auth':
- 'Use "ceph tell mgr restful create_key <key>" to create a key pair, '
+ 'Use "ceph restful create_key <key>" to create a key pair, '
'pass it as HTTP Basic auth to authenticate',
'doc': 'See /doc endpoint',
'info': "Ceph Manager RESTful API server",
run 'mgr' $CEPH_BIN/ceph-mgr -i $name $ARGS
done
- if ceph_adm tell mgr restful create-self-signed-cert; then
+ if ceph_adm restful create-self-signed-cert; then
SF=`mktemp`
- ceph_adm tell mgr restful create-key admin -o $SF
+ ceph_adm restful create-key admin -o $SF
RESTFUL_SECRET=`cat $SF`
rm $SF
else