Sponsored Content
Top Forums Shell Programming and Scripting tracking high water usage of mount point Post 302708963 by bakunin on Tuesday 2nd of October 2012 12:38:46 PM
Old 10-02-2012
Quote:
Originally Posted by edstevens
This may or may not end up being a strictly 'scripting' issue, but I'll start here.
Rest assured, it is scripting.


Quote:
but it would be nice to be able to append the current date/time to each. While ultimately what I need is to establish the high and low usage points during a week, but would be nice to also see the pattern.
No problem: the commands you have in cron now go into a script, along with a call to "/usr/bin/date". You might probably want to put the output of both commands into variables and mince them through some text filter (awk, sed, ... pick your choice) to achieve the output format you want. Test the script on the command line until you are satisfied with its output. It should output exactly one line.

Then put into cron a call to your script instead of the call to "df" with a redirection as you already had it.

Quote:
but I'm not the SA and don't have root access.
You don't have to be. Every user has his own crontab (not sure where it is located in Oracle Linux - in AIX it is located in "/var/spool/cron/crontabs/<user>" and probably it is in some similar location). Put it there and you are all fine. It is theoretically possible to block a users access to the cron facility ("/etc/cron.deny"), but this is rarely done.

If you need help writing such a script, report back - i didn't want to spoil the fun of writing it yourself.

I hope this helps.

bakunin
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

mount point lost

hi , I was applying patches after that when i reboot i get these message. I did not do anything other thatn this. Now i am unable to start my oracle . Tell me how to solve this These are the error messages forceload of /drv/rdriver failed /drv/rdmexus failed ... (7 Replies)
Discussion started by: sathiya
7 Replies

2. UNIX for Dummies Questions & Answers

mount point

hi people, I'm trying to create a mount point, but am having no sucess at all, with the following: mount -F ufs /dev/dsk/diskname /newdirectory but i keep getting - mount-point /newdirectory doesn't exist. What am i doing wrong/missing? Thanks Rc (1 Reply)
Discussion started by: colesy
1 Replies

3. UNIX for Advanced & Expert Users

Sun: High kernel usage & very high load averages

Hi, I am seeing very high kernel usage and very high load averages on my system (Although we are not loading much data to our database). Here is the output of top...does anyone know what i should be looking at? Thanks, Lorraine last pid: 13144; load averages: 22.32, 19.81, 16.78 ... (4 Replies)
Discussion started by: lorrainenineill
4 Replies

4. Solaris

Size of Mount Point

Hi, On Solaris 5.10, I have a following mount point: /dev/dsk/emcpower0a 492G 369G 118G 76% /u02 In /u02, from the du -h command, I can see that only 110G is used by couple of directories. I am wondering where the rest of 259G has gone? Any ideas please? How can I check... (17 Replies)
Discussion started by: fahdmirza
17 Replies

5. AIX

Change Mount point

Deart All, can any one help to do this, i need to change mount point in AIX 6 /opt/OM should be /usr/lpp/OM, how do i do.... Please help me Urgent issue (2 Replies)
Discussion started by: gulamibrahim
2 Replies

6. Solaris

Mount point in a server

Hi , How to find out mount point in a server ? OS -- SunOS 5.6 Generic sun4u sparc SUNW Thanks (4 Replies)
Discussion started by: Maddy123
4 Replies

7. Shell Programming and Scripting

Mount point usage

Hi Guys, I have Solaris 9 and RHEL 5 boxes I implemented script to send me an email when my mount point is > 90. Now the ouput id like these: /dev/dsk/emcpower20a 1589461168 1509087840 64478720 96% /data1 /dev/dsk/emcpower21a 474982909 451894234 18338846 97% /data2... (2 Replies)
Discussion started by: Phuti
2 Replies

8. UNIX for Beginners Questions & Answers

How to create a new mount point with 600GB and add 350 GBexisting mount point? IN AIX

How to create a new mount point with 600GB and add 350 GBexisting mount point Best if there step that i can follow or execute before i mount or add diskspace IN AIX Thanks (2 Replies)
Discussion started by: Thilagarajan
2 Replies

9. UNIX for Beginners Questions & Answers

Mount Point is locked

Hi there, I have a mount point that is locked. How do I unlocked it? (1 Reply)
Discussion started by: alvinoo
1 Replies
cachefswssize(1M)					  System Administration Commands					 cachefswssize(1M)

NAME
cachefswssize - determine working set size for cachefs SYNOPSIS
cachefswssize logfile DESCRIPTION
The cachefswssize command displays the workspace size determined from logfile. This includes the amount of cache space needed for each filesystem that was mounted under the cache, as well as a total. USAGE
See largefile(5) for the description of the behavior of cachefswssize when encountering files greater than or equal to 2 Gbyte ( 2 **31 bytes). EXAMPLES
Example 1: A sample output of cachefswssize. example% cachefswssize /var/tmp/samlog /home/sam end size: 10688k high water size: 10704k /foo end size: 128k high water size: 128k /usr/dist end size: 1472k high water size: 1472k total for cache initial size: 110960k end size: 12288k high water size: 12304k EXIT STATUS
The following exit values are returned: 0 success non-zero an error has occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
cachefslog(1M), cachefsstat(1M), cfsadmin(1M), attributes(5), largefile(5) DIAGNOSTICS
problems were encountered writing log file There were problems encountered when the kernel was writing the logfile. The most common problem is running out of disk space. invalid log file The logfile is not a valid logfile or was created with a newer version of Solaris than the one where cachefswssize is running. SunOS 5.10 16 Sep 1996 cachefswssize(1M)
All times are GMT -4. The time now is 03:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy