Sponsored Content
Full Discussion: Disk space threshold report
Top Forums Shell Programming and Scripting Disk space threshold report Post 302842093 by Kalaihari on Thursday 8th of August 2013 12:16:15 PM
Old 08-08-2013
Disk space threshold report

Hi All,

I have a code which will give me the result of the diskspace which reached the threshold limit 70% and am redirecting it to report.txt . The code is given below.

Code:
df -g | awk '+$4 >= 70 {print}' >report.txt

Now i need your help , I need to use IF ELSE condition statment for getting the output as expected. If it reaches the threshold i should get the output which i will get for the above code, But if the server din face any threshold issues i should get the output as "No issues to report".

So In IF condition " Filesystems with 70% and more should get printed" in ELSE condition " If there is no threshold issues it should print like " NO ISSUES" ..

help needed immediately. Thanks for the help in advance
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Out of disk space?

Hi I'm trying to install gcc and the installation program tells me that I'm out of disk space! I have just installed the os (using the default settings for partitions and sizes) and have only installed apache on the machine. Can it really be out of disk space already? How do I check how much... (4 Replies)
Discussion started by: alfabetman
4 Replies

2. Filesystems, Disks and Memory

Disk Space -

I know I have posted this question before, but I still just don't understand how to determine disk space. This server is an IBM RS6000 running on AIX version 4.2.1. I in essence need to know the following if anyone can assist me. 1) I need to know how many drives are configured in the... (2 Replies)
Discussion started by: Docboyeee
2 Replies

3. UNIX for Dummies Questions & Answers

available disk space on disk device???

Hello, Can someone please tell me which command to use to determine the available disk space on a given disk device? I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be? Thanks in advance! Al. (4 Replies)
Discussion started by: alan
4 Replies

4. HP-UX

Disk Space

Hi Experts. I had 100% disk full , even though i have removed 2 GB space still dbf command shows 100%. How to rectify that. Appreciate your prompt help. Thanks (1 Reply)
Discussion started by: test10002
1 Replies

5. Shell Programming and Scripting

Disk Space

HI ... I am New to the Unix...I am trying to write a script to check the disk space. But i am not able to write it. I know the command to check the disk space df -k,but unable to write the script..Can any body help me... Thanks in advance... (3 Replies)
Discussion started by: Kingkon
3 Replies

6. Shell Programming and Scripting

Disk Space

Hi This is my script for disk space monitoring clear if then echo "You must be root user to execute the script" fi ALERT_LEVEL=10 CONSUMPTION_LEVEL= `df -k | awk {'print $5'} | cut -d '%' -f1 | sed "1 d"` for i in $CONSUMPTION_LEVEL do FILE_SYSTEM=`df -k | awk {'print $1'} |... (3 Replies)
Discussion started by: chrs0302
3 Replies

7. Red Hat

disk space

when i check /export directory of my machine gets filled up (85%) i removed some old logs. but after cleaning df -k command still shows that /export is still 85% full. Is there a way to force df to reflect actual free space without rebooting? My machine is a production one and can't... (8 Replies)
Discussion started by: aboorkuma
8 Replies

8. Shell Programming and Scripting

Check space of directories and send email if it has reached threshold limit

Hi, I need help in writing unix script for checking space of some directories on the system and also send an email when it reaches the threshold limit. I have written the followng code; #!/bin/ksh ADMIN="me@somewhere.com" # set alert level 80% is default THRESHOLD=80 df | grep -E... (5 Replies)
Discussion started by: jmathew99
5 Replies

9. Shell Programming and Scripting

disk space

Hi, I am new to shell scripting, and want to monitor disk space using shell script continously on server, which will shoot mail after crossing threshold limit Please suggest. Regards Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies
Bio::Tools::Analysis::Protein::NetPhos(3pm)		User Contributed Perl Documentation	       Bio::Tools::Analysis::Protein::NetPhos(3pm)

NAME
Bio::Tools::Analysis::Protein::NetPhos - a wrapper around NetPhos server SYNOPSIS
use Bio::Tools::Analysis::Protein::NetPhos; my $seq; # a Bio::PrimarySeqI object my $threshold = "0.90"; my $netphos = Bio::Tools::Analysis::Protein::NetPhos->new ( -seq => $seq, -threshold => $threshold ); # run NetPhos prediction on a sequence my $netphos->run(); # alternatively you can say $netphos->seq($seq)->threshold($threshold)->run; die "Could not get a result" unless $netphos->status =~ /^COMPLETED/; print $netphos->result; # print raw prediction to STDOUT foreach my $feat ( $netphos->result('Bio::SeqFeatureI') ) { # do something to SeqFeature # e.g. print as GFF print $feat->gff_string, " "; # or store within the sequence - if it is a Bio::RichSeqI $seq->add_SeqFeature($feat) } DESCRIPTION
This class is wrapper around the NetPhos 2.0 server which produces neural network predictions for serine, threonine and tyrosine phosphorylation sites in eukaryotic proteins. See <http://www.cbs.dtu.dk/services/NetPhos/>. This the first implentation of Bio::SimpleAnalysisI which hopefully will make it easier to write wrappers on various services. This class uses a web resource and therefore inherits from Bio::WebAgent. SEE ALSO
Bio::SimpleAnalysisI, Bio::WebAgent FEEDBACK
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated. bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists Support Please direct usage questions or support issues to the mailing list: bioperl-l@bioperl.org rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web: https://redmine.open-bio.org/projects/bioperl/ AUTHORS
Richard Adams, Richard.Adams@ed.ac.uk, Heikki Lehvaslaiho, heikki-at-bioperl-dot-org APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ result Name : result Usage : $job->result (...) Returns : a result created by running an analysis Args : none (but an implementation may choose to add arguments for instructions how to process the raw result) The method returns a scalar representing a result of an executed job. If the job was terminated by an error the result may contain an error message instead of the real data (or both, depending on the implementation). This implementation returns differently processed data depending on argument: undef Returns the raw ASCII data stream but without HTML tags 'Bio::SeqFeatureI' The argument string defined the type of bioperl objects returned in an array. The objects are Bio::SeqFeature::Generic. anything else Array of array references of [ position, score, residue]. threshold Usage : $job->threshold(...) Returns : The significance threshold of a prediction Args : None (retrieves value) or a value beween 0 and 1. Purpose : Get/setter of the threshold to be sumitted for analysis. perl v5.14.2 2012-03-02 Bio::Tools::Analysis::Protein::NetPhos(3pm)
All times are GMT -4. The time now is 04:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy