Listing Ceph users

You can list the users in the storage cluster using the command-line interface.

Prerequisites

  • A running IBM Storage Ceph cluster.

  • Root-level access to the node.

Procedure

  • To list the users in the storage cluster, run the following:

    Example

    [ceph: root@host01 /]# ceph auth list
    installed auth entries:
    
    osd.10
            key: AQBW7U5gqOsEExAAg/CxSwZ/gSh8iOsDV3iQOA==
            caps: [mgr] allow profile osd
            caps: [mon] allow profile osd
            caps: [osd] allow *
    osd.11
            key: AQBX7U5gtj/JIhAAPsLBNG+SfC2eMVEFkl3vfA==
            caps: [mgr] allow profile osd
            caps: [mon] allow profile osd
            caps: [osd] allow *
    osd.9
            key: AQBV7U5g1XDULhAAKo2tw6ZhH1jki5aVui2v7g==
            caps: [mgr] allow profile osd
            caps: [mon] allow profile osd
            caps: [osd] allow *
    client.admin
            key: AQADYEtgFfD3ExAAwH+C1qO7MSLE4TWRfD2g6g==
            caps: [mds] allow *
            caps: [mgr] allow *
            caps: [mon] allow *
            caps: [osd] allow *
    client.bootstrap-mds
            key: AQAHYEtgpbkANBAANqoFlvzEXFwD8oB0w3TF4Q==
            caps: [mon] allow profile bootstrap-mds
    client.bootstrap-mgr
            key: AQAHYEtg3dcANBAAVQf6brq3sxTSrCrPe0pKVQ==
            caps: [mon] allow profile bootstrap-mgr
    client.bootstrap-osd
            key: AQAHYEtgD/QANBAATS9DuP3DbxEl86MTyKEmdw==
            caps: [mon] allow profile bootstrap-osd
    client.bootstrap-rbd
            key: AQAHYEtgjxEBNBAANho25V9tWNNvIKnHknW59A==
            caps: [mon] allow profile bootstrap-rbd
    client.bootstrap-rbd-mirror
            key: AQAHYEtgdE8BNBAAr6rLYxZci0b2hoIgH9GXYw==
            caps: [mon] allow profile bootstrap-rbd-mirror
    client.bootstrap-rgw
            key: AQAHYEtgwGkBNBAAuRzI4WSrnowBhZxr2XtTFg==
            caps: [mon] allow profile bootstrap-rgw
    client.crash.host04
            key: AQCQYEtgz8lGGhAAy5bJS8VH9fMdxuAZ3CqX5Q==
            caps: [mgr] profile crash
            caps: [mon] profile crash
    client.crash.host02
            key: AQDuYUtgqgfdOhAAsyX+Mo35M+HFpURGad7nJA==
            caps: [mgr] profile crash
            caps: [mon] profile crash
    client.crash.host03
            key: AQB98E5g5jHZAxAAklWSvmDsh2JaL5G7FvMrrA==
            caps: [mgr] profile crash
            caps: [mon] profile crash
    client.rgw.test_realm.test_zone.host01.hgbvnq
            key: AQD5RE9gAQKdCRAAJzxDwD/dJObbInp9J95sXw==
            caps: [mgr] allow rw
            caps: [mon] allow *
            caps: [osd] allow rwx tag rgw *=*
    client.rgw.test_realm.test_zone.host02.yqqilm
            key: AQD0RE9gkxA4ExAAFXp3pLJWdIhsyTe2ZR6Ilw==
            caps: [mgr] allow rw
            caps: [mon] allow *
            caps: [osd] allow rwx tag rgw *=*
    mgr.host01.hdhzwn
            key: AQAEYEtg3lhIBxAAmHodoIpdvnxK0llWF80ltQ==
            caps: [mds] allow *
            caps: [mon] profile mgr
            caps: [osd] allow *
    mgr.host02.eobuuv
            key: AQAn6U5gzUuiABAA2Fed+jPM1xwb4XDYtrQxaQ==
            caps: [mds] allow *
            caps: [mon] profile mgr
            caps: [osd] allow *
    mgr.host03.wquwpj
            key: AQAd6U5gIzWsLBAAbOKUKZlUcAVe9kBLfajMKw==
            caps: [mds] allow *
            caps: [mon] profile mgr
            caps: [osd] allow *
Note: The TYPE.ID notation for users applies such that osd.0 is a user of type osd and its ID is 0. client.admin is a user of type client and its ID is admin, that is, the default client.admin user. Note also that each entry has a key: VALUE entry, and one or more caps: entries.

You may use the -o FILE_NAME option with ceph auth list to save the output to a file.