- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Has anyone written a Filesystem Summation Tool - l...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2007 04:05 AM
11-08-2007 04:05 AM
Has anyone written a Filesystem Summation Tool - listing Aging and sizes of Files?
1.) Average sizes of files or distibution, etc..
2.) Aging - i.e number and total size of files meeting certain aging criteria, etc.
Perl or C source perhaps?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2007 04:28 AM
11-08-2007 04:28 AM
Re: Has anyone written a Filesystem Summation Tool - listing Aging and sizes of Files?
Buried in here are a number of possible tools.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050
Yes you may need to read through 300 posts and the source code you choose, but there is probably a SOLUTION in one of the three threads associated with the link above.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2007 06:52 AM
11-08-2007 06:52 AM
Re: Has anyone written a Filesystem Summation Tool - listing Aging and sizes of Files?
a) total number of files in a directory
b) total size of all files
c) average filesize
ls -l | awk '$6{b+=$5;a+=1}END{print a,b,b/a}'
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2007 07:48 PM
11-08-2007 07:48 PM
Re: Has anyone written a Filesystem Summation Tool - listing Aging and sizes of Files?
you can use this script as start ponit and expand it according to your needs:
#!/usr/bin/ksh
StsDir=${1:-.}
echo "DirCnt\tFileCnt\tSize Kb\tDirectory"
{
find $StsDir -type d | while read DirNam ;do
FilCnt=$(ls -lA "$DirNam" | grep ^- | wc -l)
DirCnt=$(ls -lA "$DirNam" | grep ^d | wc -l)
echo "$DirCnt\t$FilCnt\t$(du -ks "$DirNam")"
done
} 2>/dev/null | sort -nrk3
#eof
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2007 08:15 PM
11-08-2007 08:15 PM
Re: Has anyone written a Filesystem Summation Tool - listing Aging and sizes of Files?
http://www.marzocca.net/linux/baobab.html