您可以尝试使用此 SQL 查询;只需将 7 天更改为 30 天。希望这有效。这是一个包含许多 SQL 查询的有用链接。
https://github.com/thobiast/tsm_sql
12.3. 过去 7 天内每个节点的归档、备份、还原和检索操作统计 (GB)
TSM 版本 6
SELECT entity, activity, CAST(FLOAT(SUM(bytes)) / 1024 / 1024 / 1024 AS DECIMAL(8,2)) -
FROM summary
WHERE DAYS(current_timestamp)-DAYS(end_time)<=7 and ( activity='ARCHIVE' OR -
activity='BACKUP' OR activity='RESTORE' OR activity='RETRIEVE' )
GROUP BY entity, activity
TSM 版本 5
SELECT entity, activity, CAST(FLOAT(SUM(bytes)) / 1024 / 1024 / 1024 AS DECIMAL(8,2)) -
FROM summary
WHERE end_time>current_timestamp-(7)DAY and ( activity='ARCHIVE' OR -
activity='BACKUP' OR activity='RESTORE' OR activity='RETRIEVE' )
GROUP BY entity, activity