File disk utilization for 10 days prior


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users File disk utilization for 10 days prior
# 1  
Old 04-24-2009
File disk utilization for 10 days prior

Hi

I have a requirement to list the files & the total disk utilization they have which are 10 prior to current date.

I tried couple of options in combinations of find mtime, ctime with du -m, but no luck.

Could you please help me in this ?
# 2  
Old 04-24-2009
not sure if there are many options other then creating a script yourself. you may want to create a script that retrieves this information and creates a viewable webpage. this is something my company does... not just for file and disk usage.
# 3  
Old 04-27-2009
Question is ambiguous. Here is an outline to find files more than 10 days old and list the size etc. of each file. It only makes sense to do this in data directories or you will end up listing the entire Operating System.

Code:
#!/bin/ksh
find /my_dir/ -type f -mtime +10 -print|while read FILENAME
do
        ls -lad "${FILENAME}"
done

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

TOP IO DISK Utilization scripting

Hi Fiends, I am new to scripting., I want to calculate the 2nd column in the below output and print the average for each hdisk. Below is the output of sar command, hdisk0 0 hdisk0 2 hdisk0 0 hdisk1 2 hdisk1 2 hdisk1 2 hdisk2 1 hdisk2 0 hdisk2 0 Thanks, Srinivasan (3 Replies)
Discussion started by: Srini.rk1983
3 Replies

2. UNIX for Dummies Questions & Answers

Disk utilization

Hi, I have hundred folders under a fs /apps which is used by different users and they upload their data to these folders on a daily basis. Using du -sk gives me complete structure of the filesystem but i want to find out day to day utlization of the top ten highest accoriding to size wise ... (4 Replies)
Discussion started by: chetansingh23
4 Replies

3. Red Hat

Disk Utilization

Hi, Can anybody explain why my newly created 120G FS shows 100% utilization when only 113G of disk space has been used? ...... # df -h . Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg01-lvol0 119G 113G 0 100% /u02 #du -h /u02 16K ... (3 Replies)
Discussion started by: Duffs22
3 Replies

4. Infrastructure Monitoring

Disk Utilization between Global + Zone

Dear Gentleman in my environment I have Solaris10 OS Box in Global Zone with 136 GB and mount point from SAN Storage 500 GB (Orastorage) Zone1 mounted on /Zones folder with 66 GB when I run zpool list output -bash-3.00$ zpool list NAME SIZE ALLOC FREE CAP HEALTH... (0 Replies)
Discussion started by: Hosam
0 Replies

5. Shell Programming and Scripting

disk space utilization script

Hi, I wrote the following script for monitoring disk space and inform the concerned team accordingly. But script gives me below error syntax error at line 70 : `<' unmatched #!/bin/ksh . /home/scr/.profile . /home/scr/.infa_env # Get the list of Integration Services ... (6 Replies)
Discussion started by: svajhala
6 Replies

6. Shell Programming and Scripting

need help for scrip to monitor disk utilization

Hi, I need help to write a script which will monitor disk utilization. Please suggest the best approach to achive this. I am thinking of having sleep inside the script which will run for(eg.) 60 secs and then disk utilization will be checked and depends on the % usage of disk mail will... (1 Reply)
Discussion started by: sunilmenhdiratt
1 Replies

7. Red Hat

Disk Utilization is very high

Hi, I have monitored that disk utilization is very high on one of red hat linux VM. Would like to know how to find out that issue of high disk utilization is because of disk or Installed Application on that server is causing the problem. Regards, Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

8. UNIX for Dummies Questions & Answers

moving files prior to 2 days

Hi All, I have a question. i have a directory say /home/pavi/logs ls -ltr gives all the files in the /home/pavi/logs directory. i am trying to move only those files existing in this folder prior to 2 days. i.e files exiting say May 9th and May 8th remain in this directory but all the... (12 Replies)
Discussion started by: pavan_test
12 Replies

9. Shell Programming and Scripting

List files created before Noon 2 days prior

Our nightly updates run in the evening and finish around 8am. My boss wants the current log files kept on the server for 2 days, but wants anything created before noon, 2 days prior archived. I was thinking of using touch to set a temporary file with a date of today-2 and a time of noon, then... (3 Replies)
Discussion started by: prismtx
3 Replies

10. AIX

Historical Disk bandwidth utilization

Early this morning our sar reports show that WIO on the system was over 50% for about an hour. We also had some users complain about response time problems during this time. Is there a way I can go back and check what disks were busy during this time (something like topas but for historical data)? (1 Reply)
Discussion started by: 2dumb
1 Replies
Login or Register to Ask a Question