Checking the space for /archlog mount point script
I have the below shell script which is checking /archlog mount point space on cappire(solaris 10) server. When the space usage is above 80% it should e-mail. When i tested this script it is working as expected.
When i scheduled a cron job it is giving different result. Right now /archlog is 6%, it should exit without e-mailing anything. But, i am getting the below e-mail from cappire server which is strange.
Please help me in resolving this issue - why i am getting the above e-mail, i should not get any e-mail with the logic.
Is there any issue with the cron. Please let me know.
Last edited by Scott; 03-23-2011 at 02:16 PM..
Reason: Code tags, please...
Sometimes formatting of thngs like ls, df changes without a tty. You might try something like this to achieve the same end:
Send the whole df in the email.
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)
Hello all.
My aim is to monitor the size of my mount points. The algo that I want to follow is like this:
1) Use df -h to print all mount points.
2)Extract only Capacity and Mounted On columns and save them in Array1.
3)After 10 minutes , do the above same and save in Array 2 the 2 very... (1 Reply)
I have the below shell script which is checking /archlog mount point space on cappire(solaris 10) server. When the space usage is above 80% it should e-mail. When i tested this script it is working as expected.
-------------------------------------------------------------------------... (0 Replies)
I have the below shell script which is checking /archlog mount point space on cappire(solaris 10) server. When the space usage is above 80% it should e-mail. When i tested this script it is working as expected.
-------------------------------------------------------------------------... (0 Replies)
how to check how much space is occupied when u softmount or hard mount a file?
---------- Post updated at 03:24 AM ---------- Previous update was at 03:24 AM ----------
can anyone send me the answer (2 Replies)
Hi
I have a mount point that is in production environment, and is currently filled up.
more space has been presented from same original source (EVA).
Problem;
1. Can't see presented space
2. After I discover the presented space, how do I go about adding this new space to existing mount point.... (9 Replies)
Hi everyone,
I am writing a script. As a part of this script, I wanted to check the space of few mounts, If the space usage percentage of the mount crosses over a certain limit then i wanted to display a warning message. The following is the command
df -k | awk ' { if (($6 == "/export/temp")... (4 Replies)
Hi,
I want to know the command which can be used for finding the % of disk space occupied by files & sub-folders inside a given mount in Sun Solaris
For eg: I have /tmp/ folder when I sat df -k it will give the percentage of space used by /tmp/.
Say if I want to see how much % the files &... (2 Replies)
I am working in AIX 4.3.3 , here when we are doing one activity we ran out of space in one mount point, we need to increase the space in that mout point by reducing it in another mount point, can anybody help me out in carrying this activity.
Vipin (3 Replies)