Sponsored Content
Top Forums Shell Programming and Scripting tracking high water usage of mount point Post 302709017 by edstevens on Tuesday 2nd of October 2012 02:07:27 PM
Old 10-02-2012
Quote:
Originally Posted by bakunin
Rest assured, it is scripting.
Oh, I know my immediate question is. I was leaving open the possibility that there was some built-in capability/utility that was already tracking this information - something of which I was/am totally unaware. Somehting like "gee, you don't need to script that at all, just execute the 'chkframbo' command.


Quote:
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.
That I can do. I was hoping to be able to just concatenate/stream the returned value of the call to date (`date +format`) into my redirection. I'd played around with piping to awk before redirecting the final output, but got nowhere.



Quote:
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.
Oh, I'm quite familiar with cron. My comment about not being an SA and not having root goes back to my being open to getting the information I need with some unknown (to me) os utility ... implying that if such utility exists but requires root access, I wouldn't be able to use it.

Quote:
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
I think I can handle the script. Was hoping to get something I could do in a single (with piping and redirection) command.

Thanks for the response.
 

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.11 16 Sep 1996 cachefswssize(1M)
All times are GMT -4. The time now is 06:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy