This my frustrating disk space script that is supposed to send me a email whenever the disk space reaches 90% but this has some problem that just would not work ..can anyone please tell me when im going wrong
#!/bin/ksh
sendemail=-1
space=`df -bhk /users/siebelserver |awk '{print$5}'`
echo... (4 Replies)
Hi all,
Can any one help me in making a disk space script in solaris 8/9
for instance i only want to get those partitions whose diskspace has exceed 70%.
Any volunteer?
Cheers!
BR/asad (8 Replies)
#!/bin/bash
# Disk Space Monitoring for more than 95 %
# and Sending Alerts by Mail
if ;
then
`df -k |awk '$5 > 95 {print $1 " ----------- " $5}' |mailx -s "More than 95% disk usage in DEV" email@test.com';
else
exit 0
fi
I get the... (8 Replies)
:( Hi All,
i have 4 linux server for which i want set up script to monitor the disk space ...
here my problem is i want the output like graph...
also it should reflect in monitor ...as non stop process..
can any one suggest me any way where i can implement the script?
... (3 Replies)
Hi All,
OS: Linux 86x64 bits Red Hat Linux
I get the email alert for the following when Alert condition is set for 30:
/dev/sda1 99M 21M 74M 22% /boot
-> Below 30%(Should not get the email alert)
Expected output as per E-Mail alert:
/dev/sda3 20G ... (2 Replies)
We have a script which when run consumes the space of the disk from where it is being run. we have to kill this script every time to release space.
why do this happen ? any work around please
we are using solaris 10
P.S. : a part of the code will make some connection to the DB (1 Reply)
Hi All,
Its urgent.. pls help me out.. I want to create a KSH which should generate a report with the list of users and the files larger than 5 GB created by them in a direcorty and send autogenerated e-mail to them.
my input would be users list,directory path and the file size (say 5 GB)
... (11 Replies)
i have 3 servers and i am checking for the disk space of a specific mount-point, should not be more than 85 %
considering example as below
server1 mountpoint_1 has 70% diskutilization
server2 mountpoint_1 has 80% diskutilization
server3 mountpoint_1 has 7% diskutilization
now when it... (6 Replies)
Discussion started by: abhaydas
6 Replies
LEARN ABOUT OSF1
vdf
vdf(8) System Manager's Manual vdf(8)NAME
vdf - Display disk information for AdvFS domains and filesets
SYNOPSIS
/sbin/advfs/vdf [-k] [-l] domain | domain#fileset
OPTIONS
Display disk blocks as 1024-byte blocks instead of the default of 512-byte blocks. When the -l option is specified, the default informa-
tion for both the domain and filesets is reformatted to show the relationships between them. For example, any domain metadata displayed is
the total metadata shared by filesets in the domain.
OPERANDS
The full path name of an AdvFS file domain.
When a domain argument is specified, the default display contains information about the number of disk blocks allocated to the
domain, the number of disk blocks in use by the domain, and the number of disk blocks that are available to the domain. The name of
an AdvFS fileset in an AdvFS file domain.
When a domain#fileset argument is specified, the default display contains information about the number of disk blocks allocated to
the fileset, the number of disk blocks in use by the fileset, and the number of disk blocks that are available to the fileset. This
information is in the same format as that displayed by the df command.
DESCRIPTION
The vdf utility is a script that reformats output from the showfdmn, showfsets, shfragbf, and df utilities in order to display information
about the disk usage of AdvFS file domains and filesets. In addition, the utility computes and displays the sizes of metadata files in a
domain or fileset.
NOTES
The disk space used by clone filesets is not calculated.
If clone filesets are present in the specified domain, the utility displays the following warning message: Clone fileset(s) in this domain;
totals may not be accurate
RESTRICTIONS
You must be the root user to use this command.
The command cannot be used on filesets that are NFS mounted.
All filesets in a domain must be mounted in order to calculate the disk usage of the domain.
EXIT STATUS
The utility returns a value of 0 (zero) on successful completion. It returns a value of 1 on failure.
EXAMPLES
The following example shows the summary information for a fileset named testfs in a domain named test. The output is the same as for the
df command: # vdf test#testfs Filesystem 512-blocks Used Available Capacity Mounted on test#testfs 60000 20800 39200
35% /mnt The following example shows the summary information for a domain named usr_domain where the number of blocks used for meta-
data and data equal 89% of the domain's capacity: # vdf usr_domain Domain 512-blocks Metadata Used Available Capacity usr_domain
65536 11219 47549 6768 89% The following example shows a detailed display of the domain that contains the fileset
test#testfs. There are two filesets in the domain; each has a quota limit of 60,000 blocks: # vdf -l test#testfs Domain 512-blocks
Metadata Used Available Capacity test 266240 5824 29128 231288 13%
Fileset QuotaLimit Used Available Capacity testfs 60000 20800 39200 35% testfs2 60000
8328 51672 14% The following example shows a detailed display of a fileset that is the only fileset in the domain and that
the fileset has a quota limit that is greater than the domain can hold: # vdf -l test#testfs Domain 512-blocks Metadata Used Avail-
able Capacity test 266240 5824 29128 231288 13%
Fileset QuotaLimit Used Available Capacity testfs 300000 20800 231288 8%
FILES SEE ALSO
Commands: df(1), showfdmn(8), showfsets(8), shfragbf(8)
Files: advfs(4)vdf(8)