Use the following command in the SQL query window to get the fragmentation details:
USE [EnterpriseVaultDirectory]
GO
DECLARE @AvgFragFilter AS smallint
SELECT @AvgFragFilter = [Threshold]
FROM [dbo].[Monitoring]
WHERE [MonitoringItemType] = 34
AND [SiteEntryId] = ''
USE
EXEC [dbo].[ReadFragmentationResults] @AvgFragFilter
GO
where,
is the name of the Directory, Vault Store or Fingerprint database for which to get the fragmentation results.
is the Entry ID of the Enterprise Vault Site to read current fragmentation threshold.
Examples:
o To run the stored procedure on ‘EnterpriseVaultDirectory’ database using the default average fragmentation % filter value:
USE [EnterpriseVaultDirectory]
EXEC [dbo].[ReadFragmentationResults]
GO
o To run the stored procedure of Vault Store database named ‘EVVSExpressVaultStore_1’ associated with the Enterprise Vault Site having SiteEntryId as '1529582D4F8AEA04496E4208654CE90A11d10000MW-2K8R2-x64-2-A', and by using the already configured average fragmentation % filter value for that Site:
USE [EnterpriseVaultDirectory]
GO
DECLARE @AvgFragFilter AS smallint
SELECT @AvgFragFilter = [Threshold]
FROM [dbo].[Monitoring]
WHERE [MonitoringItemType] = 34
AND [SiteEntryId] = '1529582D4F8AEA04496E4208654CE90A11d10000MW-2K8R2-x64-2-A'
USE [EVVSExpressVaultStore_1]
EXEC [dbo].[ReadFragmentationResults] @AvgFragFilter
GO