Monitoring, Management & Location Tracking

How do I find the largest files on my AMP server?

Aruba Employee

NOTE: To see a list of files that represent the best candidates for deleting to free up disc space refer to the Knowledge Base article:
"Clearing up space when the hard drive is full"

The following command combinations use the UNIX find command to generate a list of the largest files on the server. This can be helpful if you need to free up disc space.

This combination generates a sorted list of all files larger than 20 MB:

# find / -type f -size +20M | xargs du -h | sort -nr

The output will look something like this:

1016M /var/airwave/dbm/async_logger_client
721M /var/lib/airwave/cache/fastmmap/trigger_window_history
480M /var/lib/airwave/cache/fastmmap/bw_tracker
245M /root/AMP-6.1.1-cvs.tar.gz
181M /var/lib/airwave/cache/fastmmap/rap_state
160M /var/airwave-backup/nightly_data002.tar.gz
160M /var/airwave-backup/nightly_data001.tar.gz
159M /var/airwave-backup/nightly_data004.tar.gz
159M /var/airwave-backup/nightly_data003.tar.gz
159M /alternative/databackup.tar.gz
155M /var/airwave-backup/pre-upgrade-6.1.1-data.tar.gz

NOTE: Files large enough to have a GB designation will appear at or near the bottom of the list.

If you'd like more detail in the list, like file ownership, etc., try this combination:

# find / -type f -size +20M | xargs ls -lh -S

The output will look something like this:

-rw-r--r-- 1 root root 1015M Oct 23 12:19 /var/airwave/dbm/async_logger_client
-rw-r----- 1 apache apache 720M Jan 12 15:08 /var/lib/airwave/cache/fastmmap/trigger_window_history
-rw-r----- 1 apache apache 480M Jan 12 15:08 /var/lib/airwave/cache/fastmmap/bw_tracker
-rw-r--r-- 1 root root 245M Oct 24 14:43 /root/AMP-6.1.1-cvs.tar.gz
-rw-r----- 1 apache apache 180M Jan 12 15:08 /var/lib/airwave/cache/fastmmap/rap_state
-rwxr-x--- 1 root apache 160M Jan 12 04:19 /var/airwave-backup/nightly_data001.tar.gz
-rwxr-x--- 1 root apache 160M Jan 11 04:19 /var/airwave-backup/nightly_data002.tar.gz
-rwxr-x--- 1 root apache 159M Jan 9 04:19 /var/airwave-backup/nightly_data004.tar.gz
-rwxr-x--- 1 root apache 159M Jan 10 04:19 /var/airwave-backup/nightly_data003.tar.gz
-rw-r--r-- 1 root root 159M Oct 28 11:35 /alternative/databackup.tar.gz
-rwxr-x--- 1 root apache 155M Oct 24 04:32 /var/airwave-backup/pre-upgrade-6.1.1-data.tar.gz

find / -type f -size +1000000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

Version history
Revision #:
1 of 1
Last update:
‎06-06-2014 03:08 PM
Updated by:
Labels (1)
Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.