Sponsored Content
Top Forums Shell Programming and Scripting Detailed disk usage versus age summary Post 302248251 by otheus on Friday 17th of October 2008 07:15:25 AM
Old 10-17-2008
Uh, that's what I was going to do, except I would use "-printf %s %p\n" instead of "-ls". Use mtime. atime is for access time, which you don't really want, do you? Maybe you do... maybe you want when the file was last used, not just modified.
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

How do you display summary of disk usage?

I am trying to create a command string that makes use of the du or df utilities to show block count in kilobytes (1024 bytes) instead of multiples of 512 bytes, any suggestions? Thanks..... (3 Replies)
Discussion started by: klannon
3 Replies

2. HP-UX

How to summary one command's cpu usage?

I want to record one application's(like oracle etc...) CPU usage summary. I can filter by "ps". But how to sum? Thanks (1 Reply)
Discussion started by: jiarong.lu
1 Replies

3. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

4. Red Hat

CPU usage: PS versus TOP - Different output

CPU usage: PS versus TOP - Different output Hi When monitoring a Linux environment with PS command, reported CPU value for a certain process differs, sometimes greatly, from the value seen in TOP. I understood this is not a bug, they report different data. I can't understand the nature... (4 Replies)
Discussion started by: liav
4 Replies

5. Shell Programming and Scripting

Age of file in storage / disk

Hello all, Below is scripts to find the file following by: 30 days <- How many total file space within 30 days and not quantity 90 days 120 days 1 year From here also I can get data space to put on PIE Chart. Following this scripts can I do some enhance from this scripts like do... (1 Reply)
Discussion started by: sheikh76
1 Replies

6. UNIX for Dummies Questions & Answers

Print summary or the total disk usage of conf file

hey i want to print the summary or the total disk usage of the configuration files that are in the /etc directory printed in human-readable format. i think i got somewhere right as am using wc *.conf commands but i am unsure how to use to put it in human-readable format with the wc command. ... (13 Replies)
Discussion started by: stefanere2k9
13 Replies

7. Shell Programming and Scripting

Parse diff output into very detailed & summary report

Hello all; I'll try an explain my dilemma as best I can. But first some background: 1- I am suppose to compare a database to itself before and after changes; basically generate audit trail report. 2- This database contains "RULES" (the id field) that we use for transmitting files. 3 - The... (0 Replies)
Discussion started by: gvolpini
0 Replies

8. AIX

Need to know %age disk busy on AIX

Hi , Following alerts are coming for %busy device on a server Disk Device hdisk5 is 100% busy Please assist how do I analyse this and also how do I check the %age busy for hdisk5. Best regards, Vishal (4 Replies)
Discussion started by: Vishal_dba
4 Replies

9. AIX

Question on NMON - disable detailed disk statistics

Hi All, The NMON file is getting generated with file size of more than 70MB for just 40 minute duration on AIX 6.1 box, due to more number of disks (Disk0, Disk1..., Disk22). With respect to disk related details, I need to have only the disk summary, and disable the detailed disk statistics... (6 Replies)
Discussion started by: tssr_2001
6 Replies

10. UNIX for Beginners Questions & Answers

Disk usage monitoring and record the disk used in last 24 hour

HI I am Trying to edit the below code to send email every day with difference of disk utilized in for last 24 hours but instead getting same usage everyday. can you please help me to point out where my calculation is going wrong. Thank you. ================= #!/bin/bash TODAY="at $(date... (0 Replies)
Discussion started by: Mi4304
0 Replies
acctsh(1M)																acctsh(1M)

NAME
acctsh: chargefee, ckpacct, dodisk, lastlogin, monacct, nulladm, prctmp, prdaily, prtacct, shutacct, startup, turnacct - shell procedures for accounting SYNOPSIS
login-name number [blocks] [files ...] number file [mmdd] file [heading] [reason] DESCRIPTION
Can be invoked to charge a number of units to login-name. A record is written to to be merged with other accounting records during the night. Should be initiated via It periodically checks the size of If the size exceeds blocks, 1000 by default, is invoked with argument switch. If the number of free disk blocks in the file system falls below 500, automatically turns off the collection of process accounting records via the argument to When at least this number of blocks is restored, the accounting will be activated again. This feature is sensitive to the frequency at which is executed, usually by Should be invoked by to perform the disk accounting functions. By default, it will do disk accounting on the special files in If the flag is used, it does a slower version of disk accounting by login directory. files specifies the one or more filesystem names where disk accounting is to be done. If files is used, disk accounting will be done on these filesystems only. If the flag is used, files should be mount points of mounted filesystem. If omitted, they should be the special file names of mountable filesystems. Invoked by to update which shows the last date on which each user logged in (see runacct(1M)). Should be invoked once each month or each accounting period. number indicates which month or period it is. If number is not given, it defaults to the current month (01 through 12). This default is useful if is to executed via on the first day of each month. creates summary files in and restarts summary files in Creates file with mode 664 and ensures that owner and group are It is called by various accounting shell procedures. Can be used to print the session record file normally created by (see acctcon(1M)). Invoked by (see runacct(1M)) to format a report of the previous day's accounting data. The report resides in where mmdd is the month and day of the report. The current daily accounting reports may be printed by typing prdaily. Previous days' accounting reports can be printed by using the mmdd option and specifying the exact report date desired. The flag prints a report of exceptional usage by login id for the specifed date. Previous daily reports are cleaned up and therefore inaccessible after each invocation of The flag prints a report of exceptional resource usage by command, and can be used on current day's accounting data only. Can be used to format and print any total accounting file. Should be invoked during a system shutdown to turn process accounting off and append a "reason" record to Should be called by system startup scripts to turn the accounting on whenever the system is brought up. An interface to (see acct(1M)) to turn process accounting or The argument turns accounting off, moves the current to the next free name in then turns accounting back on again. (incr is a number starting with and incrementing by one for each additional file.) is called by and thus can be run under and used to keep to a reasonable size. FILES
holds all accounting commands listed in section(1M) of this manual accumulator for fees working directory current file for per-process accounting used if gets large, and during execution of daily accounting procedure contains the limits for exceptional usage by command name contains the limits for exceptional usage by login id summary directory, should be saved login/logoff summary SEE ALSO
acct(1M), acctcms(1M), acctcom(1M), acctcon(1M), acctmerg(1M), acctprc(1M), cron(1M), diskusg(1M), fwtmp(1M), runacct(1M), acct(2), acct(4), utmp(4). STANDARDS CONFORMANCE
acctsh(1M)
All times are GMT -4. The time now is 01:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy