| 1 |
* Enable periodic usage statistics relating to block storage. To use it, you |
| 2 |
must run this command in the following format: |
| 3 |
|
| 4 |
.. code-block:: console |
| 5 |
|
| 6 |
$ cinder-volume-usage-audit --start_time='YYYY-MM-DD HH:MM:SS' \ |
| 7 |
--end_time='YYYY-MM-DD HH:MM:SS' --send_actions |
| 8 |
|
| 9 |
This script outputs what volumes or snapshots were created, deleted, or |
| 10 |
exists in a given period of time and some information about these |
| 11 |
volumes or snapshots. |
| 12 |
|
| 13 |
Using this script via cron you can get notifications periodically, for |
| 14 |
example, every 5 minutes:: |
| 15 |
|
| 16 |
*/5 * * * * /path/to/cinder-volume-usage-audit --send_actions |