Skip to main content
Solved

Storage policy properties from the command line

  • August 16, 2023
  • 2 replies
  • 275 views

Forum|alt.badge.img+4
 
Good morning,does anyone know if it is possible to list the properties (retentions) of the defined storage policy from the command line?RegardsDorothy

Best answer by Nutan Pawar G

 Hi @dorota 

 

We have commands that lists the names of all the storage policies and storage policy copies available in the CommCell.

https://documentation.commvault.com/11.25/expert/11308_qlist_sp.html

https://documentation.commvault.com/11.25/expert/11314_qlist_spcopy.html

Or

 

We have a SQL query that can be executed to show all Storage Policy Copies and the retention set.

 

SELECT SP.name, SPC.name, R.retentionDays, R.FullCycles FROM archAgingRule R

JOIN ArchGroupCopy SPC ON SPC.id=R.Copyid

JOIN ArchGroup SP ON SP.id=SPC.archgroupID

 

Output:

=====

 

2 replies

Forum|alt.badge.img+8
  • Vaulter
  • Answer
  • August 16, 2023

 Hi @dorota 

 

We have commands that lists the names of all the storage policies and storage policy copies available in the CommCell.

https://documentation.commvault.com/11.25/expert/11308_qlist_sp.html

https://documentation.commvault.com/11.25/expert/11314_qlist_spcopy.html

Or

 

We have a SQL query that can be executed to show all Storage Policy Copies and the retention set.

 

SELECT SP.name, SPC.name, R.retentionDays, R.FullCycles FROM archAgingRule R

JOIN ArchGroupCopy SPC ON SPC.id=R.Copyid

JOIN ArchGroup SP ON SP.id=SPC.archgroupID

 

Output:

=====

 


Forum|alt.badge.img+4
  • Author
  • Novice
  • August 18, 2023

Thank you :)