dcsimg

FS_scan: Getting Detailed with Your Data

Need details on your file system's data? FS_scan allows you dig deep into your storage, giving you the ability to perform trend analysis on the results.

The basic elements in the previous section have been built upon to create a tool called FS_scan. It allows you to scan a directory tree returning useful information about the directory tree. The tool adds some features relative to the code snippet previously presented.


  • You can specify the root directory for the scan (see ./FS_scan.py -help)

  • It prints out the full path to the file, the size, the atime, mtime, and ctime, as well as the uid and gid including the password file entries for the corresponding values

  • It computes the access, modify, and change ages relative to the current date (he output is months)

  • For each directory the average age for the the three times is computed. It is printed in two forms; (1) years, months, days, weeks, hours, seconds,(2) months.

  • It prints out a summary at the end for the entire directory tree for averages for the three times. It also prints out the oldest age for the 3 times and what file is the oldest.

  • The application also produces a csv file (comma separated values) that is suitable for a spreadsheet. It contains a long list of information that can be used for sorting, plotting, or for generating trend data.

If you search a fairly large directory tree, you can generate a large amount of output. If you want to just get a quick directory level view you can choose a “short” option (e.g. FS_scan.py -short .). This option won’t print any file information to stdout (standard output) but it does print out the three average ages for the files in that directory. It’s not a bad idea to start with this option to get a quick overview of the directory tree and then get a more detailed view on certain parts of the tree.

Here is a sample of the “short” output. It is a little long but it is intended to show what FS_scan is capable of producing as well as illustrate how much information can be generated.

Start_time: Mon May 25 10:43:07 2009
Starting directory (root):  /home/laytonjb/POISSON_HOME

Current directory /home/laytonjb/POISSON_HOME/
   Number of Files:  4
   Average Access Age: 0 years  0 months  0 weeks  0 days   7 minutes  17.2 seconds  (0.00 months)
   Average Modify Age: 0 years  5 months  1 weeks  10 days   58 minutes  59.2 seconds  (5.04 months)
   Average Change Age: 0 years  5 months  1 weeks  10 days   58 minutes  59.2 seconds  (5.04 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/parcfdtest.tar.gz
      File size:  4138  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  41.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/sor.ps.gz
      File size:  129452  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  41.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/sor.ps.gz
      File size:  129452  bytes
Current directory /home/laytonjb/POISSON_HOME/POISSON_REFERENCES/
   Number of Files:  14
   Average Access Age: 0 years  5 months  3 weeks  6 days   59 minutes  41.4 seconds  (5.10 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  35.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  35.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  5 months  15 weeks  2 days  3 minutes  23.5 seconds  (5.50 months)
      File Location:  /home/laytonjb/POISSON_HOME/POISSON_REFERENCES/13-ParallelAlgorithmsUnderlyingMPIImplementations.ppt
      File size:  718848  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  37.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/POISSON_REFERENCES/cluster_oh_0309_mu_day2_pdf.pdf
      File size:  588975  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  37.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/POISSON_REFERENCES/cluster_oh_0309_mu_day2_pdf.pdf
      File size:  588975  bytes
Current directory /home/laytonjb/POISSON_HOME/CODE1/
   Number of Files:  2
   Average Access Age: 0 years  2 months  22 weeks  13 days   7 minutes  20.0 seconds  (2.75 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  41.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  41.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  5 months  15 weeks  2 days  5 minutes  10.5 seconds  (5.50 months)
      File Location:  /home/laytonjb/POISSON_HOME/CODE1/laplace.html
      File size:  13363  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  41.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/CODE1/types_module.html
      File size:  401  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  41.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/CODE1/types_module.html
      File size:  401  bytes
Current directory /home/laytonjb/POISSON_HOME/CODE2/
   Number of Files:  5
   Average Access Age: 0 years  1 months  3 weeks  0 days   32 minutes  29.7 seconds  (1.10 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  40.7 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  40.7 seconds  (6.73 months)
   Oldest Access Age: 0 years  5 months  15 weeks  2 days  4 minutes  30.5 seconds  (5.50 months)
      File Location:  /home/laytonjb/POISSON_HOME/CODE2/mpi_heat2D.f
      File size:  10906  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  41.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/CODE2/ser_heat2D.f
      File size:  3445  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  41.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/CODE2/ser_heat2D.f
      File size:  3445  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/
   Number of Files:  0
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/MPI/
   Number of Files:  12
   Average Access Age: 0 years  0 months  13 weeks  18 days   19 minutes  17.8 seconds  (0.45 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  40.2 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  40.2 seconds  (6.73 months)
   Oldest Access Age: 0 years  5 months  15 weeks  2 days  7 minutes  17.5 seconds  (5.50 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/MPI/laplace_main.f90
      File size:  7217  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  40.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/MPI/machine.list
      File size:  0  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  40.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/MPI/machine.list
      File size:  0  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/MPI/DATA/
   Number of Files:  16
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  29.2 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  40.4 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  40.4 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  29.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/MPI/DATA/laplace_grid_generator.f90
      File size:  8837  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  40.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/MPI/DATA/laplace_grid_generator.f90
      File size:  8837  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  40.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/MPI/DATA/laplace_grid_generator.f90
      File size:  8837  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/MPI/JUNK/
   Number of Files:  1
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  40.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  40.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/MPI/JUNK/bcast.f90
      File size:  1215  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  40.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/MPI/JUNK/bcast.f90
      File size:  1215  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  40.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/MPI/JUNK/bcast.f90
      File size:  1215  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/
   Number of Files:  0
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/
   Number of Files:  18
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  37.8 seconds  (6.73 months)
   Average Change Age: 0 years  5 months  15 weeks  2 days   8 minutes  20.5 seconds  (5.50 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/laplace_main.f90
      File size:  12815  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  39.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/laplace_allocation.f90
      File size:  8756  bytes
   Oldest Change Age: 0 years  5 months  15 weeks  2 days  8 minutes  20.5 seconds  (5.50 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/laplace_main.f90
      File size:  12815  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/DATA/
   Number of Files:  6
   Average Access Age: 0 years  1 months  25 weeks  0 days   50 minutes  13.8 seconds  (1.83 months)
   Average Modify Age: 0 years  6 months  3 weeks  12 days   25 minutes  14.0 seconds  (6.11 months)
   Average Change Age: 0 years  6 months  3 weeks  12 days   25 minutes  14.0 seconds  (6.11 months)
   Oldest Access Age: 0 years  5 months  15 weeks  2 days  11 minutes  48.5 seconds  (5.50 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/DATA/laplace_grid_generator.f90
      File size:  4101  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  39.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/DATA/laplace_10_10.pt
      File size:  1328  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  39.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/DATA/laplace_10_10.pt
      File size:  1328  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/
   Number of Files:  0
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/
   Number of Files:  2
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  39.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  39.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/Makefile.inc
      File size:  9954  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  39.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/Makefile.inc
      File size:  9954  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  39.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/Makefile.inc
      File size:  9954  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/data/
   Number of Files:  0
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/data/output/
   Number of Files:  168
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  39.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  39.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/data/output/cg-ssor-3D.out
      File size:  2063  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  39.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/data/output/cg-ssor-3D.out
      File size:  2063  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  39.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/data/output/cg-ssor-3D.out
      File size:  2063  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/test/
   Number of Files:  8
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/test/main.f90
      File size:  13982  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/test/main.f90
      File size:  13982  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/test/main.f90
      File size:  13982  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/include/
   Number of Files:  3
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/include/sixpack_c.h
      File size:  8020  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/include/sixpack_c.h
      File size:  8020  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/include/sixpack_c.h
      File size:  8020  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/doc/
   Number of Files:  6
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.6 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.6 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/doc/norris_2001.pdf
      File size:  1441811  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  39.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/doc/Makefile
      File size:  184  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  39.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/doc/Makefile
      File size:  184  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/src/
   Number of Files:  82
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/src/ssor3.f90
      File size:  6158  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/src/ssor3.f90
      File size:  6158  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/src/ssor3.f90
      File size:  6158  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/scripts/
   Number of Files:  10
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/scripts/run_scaling_3D.sh
      File size:  1849  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/scripts/run_scaling_3D.sh
      File size:  1849  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/scripts/run_scaling_3D.sh
      File size:  1849  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/scripts/misc/
   Number of Files:  7
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/scripts/misc/run-batch-clean
      File size:  214  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/scripts/misc/run-batch-clean
      File size:  214  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/scripts/misc/run-batch-clean
      File size:  214  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/examples/
   Number of Files:  7
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/examples/example1d.f90
      File size:  3421  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/examples/example1d.f90
      File size:  3421  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/sixpack/examples/example1d.f90
      File size:  3421  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/TRIDIG_TEST/
   Number of Files:  4
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/TRIDIG_TEST/tridig_test2.f90
      File size:  5622  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/TRIDIG_TEST/tridig_test2.f90
      File size:  5622  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/BACKUP/TRIDIG_TEST/tridig_test2.f90
      File size:  5622  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/OTHER/
   Number of Files:  2
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  37.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  37.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/OTHER/serial_1.f
      File size:  3874  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  37.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/OTHER/serial_1.f
      File size:  3874  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  37.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/FORTRAN/OTHER/serial_1.f
      File size:  3874  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/OCTAVE/
   Number of Files:  0
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/PYTHON/
   Number of Files:  0
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/C/
   Number of Files:  19
   Average Access Age: 0 years  0 months  17 weeks  9 days   12 minutes  34.8 seconds  (0.57 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.3 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  38.3 seconds  (6.73 months)
   Oldest Access Age: 0 years  5 months  15 weeks  2 days  10 minutes  12.5 seconds  (5.50 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/C/laplace_ver3.c
      File size:  6760  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/C/laplace.c
      File size:  2616  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  38.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/C/laplace.c
      File size:  2616  bytes
Current directory /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/C/CUDA/
   Number of Files:  2
   Average Access Age: 0 years  0 months  0 weeks  0 days   9 minutes  28.5 seconds  (0.00 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  37.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  37.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  0 months  0 weeks  0 days  9 minutes  28.5 seconds  (0.00 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/C/CUDA/laplace_baseline.c
      File size:  6760  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  37.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/C/CUDA/laplace_baseline.c
      File size:  6760  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  37.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/JEFF_LAPLACE/SERIAL/C/CUDA/laplace_baseline.c
      File size:  6760  bytes
Current directory /home/laytonjb/POISSON_HOME/PAPER_CODES/
   Number of Files:  0
Current directory /home/laytonjb/POISSON_HOME/PAPER_CODES/GRID/
   Number of Files:  5
   Average Access Age: 0 years  2 months  11 weeks  20 days   10 minutes  20.3 seconds  (2.39 months)
   Average Modify Age: 0 years  6 months  17 weeks  11 days   21 minutes  6.72 seconds  (6.58 months)
   Average Change Age: 0 years  6 months  17 weeks  11 days   21 minutes  6.72 seconds  (6.58 months)
   Oldest Access Age: 0 years  5 months  29 weeks  14 days  11 minutes  57.5 seconds  (5.98 months)
      File Location:  /home/laytonjb/POISSON_HOME/PAPER_CODES/GRID/README
      File size:  52  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  37.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/PAPER_CODES/GRID/laplace_grid_generator.f90
      File size:  4093  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  37.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/PAPER_CODES/GRID/laplace_grid_generator.f90
      File size:  4093  bytes
Current directory /home/laytonjb/POISSON_HOME/PAPER_CODES/CODE1/
   Number of Files:  14
   Average Access Age: 0 years  1 months  7 weeks  10 days   52 minutes  14.3 seconds  (1.24 months)
   Average Modify Age: 0 years  6 months  21 weeks  22 days   38 minutes  37.5 seconds  (6.73 months)
   Average Change Age: 0 years  6 months  21 weeks  22 days   38 minutes  37.5 seconds  (6.73 months)
   Oldest Access Age: 0 years  5 months  29 weeks  14 days  10 minutes  38.5 seconds  (5.98 months)
      File Location:  /home/laytonjb/POISSON_HOME/PAPER_CODES/CODE1/makefile
      File size:  929  bytes
   Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  37.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/PAPER_CODES/CODE1/laplace_main.f90
      File size:  12815  bytes
   Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  37.5 seconds  (6.73 months)
      File Location:  /home/laytonjb/POISSON_HOME/PAPER_CODES/CODE1/laplace_main.f90
      File size:  12815  bytes

***************
*** Summary ***
***************
Total Number of Files in tree:  417
Average Access Age: 0 years  0 months  10 weeks  1 days  1 minutes  12.0 seconds  (0.33 months)
Average Modify Age: 0 years  6 months  21 weeks  3 days  22 minutes  19.5 seconds  (6.70 months)
Average Change Age: 0 years  6 months  19 weeks  13 days  11 minutes  31.3 seconds  (6.65months)

Oldest Access Age: 0 years  5 months  29 weeks  14 days  11 minutes  57.5 seconds  (5.98 months)
   File Location:  /home/laytonjb/POISSON_HOME/PAPER_CODES/GRID/README
   File size:  52  bytes
Oldest Modify Age: 0 years  6 months  21 weeks  22 days  38 minutes  41.5 seconds  (6.73 months)
   File Location:  /home/laytonjb/POISSON_HOME/sor.ps.gz
   File size:  129452  bytes
Oldest Change Age: 0 years  6 months  21 weeks  22 days  38 minutes  41.5 seconds  (6.73 months)
   File Location:  /home/laytonjb/POISSON_HOME/sor.ps.gz
   File size:  129452  bytes

Staring Time:  Mon May 25 10:43:07 2009
Ending Time:  Mon May 25 10:43:07 2009

Notice that there is a single file in the tree that is the oldest for modify and change age, but there is a different file for the oldest access age. Also, notice that there are some listings that are for directories that don’t have any files in them (Number of Files: 0). Either they are just other subdirectories or they literally have no files in them.

Recall that FS_scan also produces a csv file as part of the scan. You can load the csv file into a spreadsheet and then sort the results or filter them or perform any operation you want. The number of columns is quite long but to give you an idea of what it looks like, below is a screenshot of the left-hand part of the sheet that corresponds to the above output.

Figure 1: FS_scan csv Output in OpenOffice - Left-Hand Part of Sheet
Figure 1: FS_scan csv Output in OpenOffice – Left-Hand Part of Sheet

Figure 2: FS_scan csv Output in OpenOffice - Right-Hand Part of Sheet
Figure 2: FS_scan csv Output in OpenOffice – Right-Hand Part of Sheet

The sheet has more rows than can be shown, but these screenshots at least give you a feel for what kind of data is contained in the csv.

FS_Scan Next Generation

Many people are probably thinking about how to use such detailed information from FS_scan for creating trends or learning more about the data. Ideally you would run FS_scan once every day or so and keep the output. Then periodically you could run a report tool across the scans and get information on certain aspects such as,


  • The progression of the averages of file age

  • The rate of the creation of new files
  • The rate of deletion of existing files and approximately how old they were when deleted

  • How often files are accessed

  • How often files are modified

  • The growth of files and/or directories

You can even take this information and do the analysis on a per-user basis to find the “power” users. However, creating this information is not easy.

The next generation of FS_scan is being developed so that in addition to the creation of a csv file, it will create a database file using sqlite. Then you can take the database snapshots and perform operation on them to generate information such as that previously mentioned.

Next Steps – What Do You Want to Know?

Currently, FS_scan creates a csv file suitable for spreadsheets that you can use for generating reports or even plotting data. The next generation FS_scan is being developed to create a sqlite database and scripting to generate useful information. However, the tool is only as good as how you use it. So if you have any ideas or comments about how you would use this information please post them to the site.

Fatal error: Call to undefined function aa_author_bios() in /opt/apache/dms/b2b/linux-mag.com/site/www/htdocs/wp-content/themes/linuxmag/single.php on line 62