Skip to main content
Answer

Custom report using SQL archAgingRule VS archAgingRuleExtended

  • April 22, 2025
  • 1 reply
  • 65 views

Forum|alt.badge.img+2

Hi folks,

I'm building a custom report using SQL. The final output should look more or less like the “Backup Job Summary” report in Command Center. However, I'm running into issues with the Retention column.

I’ve figured out how to pull the standard retention using the following query:

 

SELECT
    J.jobId,
    AR.retentionDays
FROM JMJobDataStats J
INNER JOIN archGroup AG ON J.archGrpId = AG.id
INNER JOIN archAgingRule AR ON J.archGrpCopyId = AR.copyId

 

The problem is that this query doesn’t return jobs that have extended retention. I’m aware of the archAgingRuleExtended table and tried selecting from both tables and then taking the greater value — but this approach doesn’t seem to work.

I also tried applying the extended retention only when JMJobDataStats.retentionFlags > 0, but that didn’t help either 🙁

I’m sure I’m missing something obvious, but I can’t figure out what exactly. There must be some indication that a particular job is using extended retention, but I haven’t been able to find it.

Any pointers would be greatly appreciated!

Best answer by Pradeep

Hi ​@Alex T ,

Appreciate the efforts made to create the custom report.

However, executing a SELECT query from only known tables may not yield accurate results, as the required information is distributed across multiple tables within the CommServe Database

Request to refer DAJobRetentionInfo and CommCellRetentionInfo tables for more details. If this does not meet the requirement the next approach would be get custom report created with help of support and engineering team.

1 reply

Forum|alt.badge.img+12
  • Vaulter
  • Answer
  • April 26, 2025

Hi ​@Alex T ,

Appreciate the efforts made to create the custom report.

However, executing a SELECT query from only known tables may not yield accurate results, as the required information is distributed across multiple tables within the CommServe Database

Request to refer DAJobRetentionInfo and CommCellRetentionInfo tables for more details. If this does not meet the requirement the next approach would be get custom report created with help of support and engineering team.