ONTAP Discussions

XCP scan stats time range

LiYuTseng
1,638 Views

Is there a way to change the time range when I run xcp scan -stats ?

I wanna change  >1 month  to  >5 months.

 

== Accessed ==
>1 year >1 month 1-31 days 1-24 hrs <1 hour <15 mins future
2

== Modified ==
>1 year >1 month 1-31 days 1-24 hrs <1 hour <15 mins future
2

== Changed ==
>1 year >1 month 1-31 days 1-24 hrs <1 hour <15 mins future
2

1 REPLY 1

Ontapforrum
1,589 Views

Hi,

 

I haven't used this tool, to test your query I will have to test it in my lab.

 

As you already have this tool handy, could you try these parameters. In the XCP docmentation, they have given few examples for 3 months, but I am sure you could change that.

 

Try these :

scans all files that have not been modified for more than 5 months
C:\XCP> xcp scan -match "modified > 5*month"


If you also want to filter by certain size, say bigger than 4MB
C:\XCP> xcp scan -match "modified > 5*month and size > 4194304"

 

For complete command:
https://library.netapp.com/ecm/ecm_download_file/ECMLP2861779

 

Thanks!

Public