Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

CeilingReport

by bpoag (Monk)
on Jun 29, 2006 at 17:00 UTC ( [id://558382]=sourcecode: print w/replies, xml ) Need Help??
Category: AIX
Author/Contact Info Bowie J. Poag (bpoag@comcast.net)
Description: CeilingReport is a simple Perl script that examines volume groups present on an AIX host, and reports how many free physical partitions remain in each. This is useful for system administration purposes, in that it gives you a heads-up when for when a volume group may need more storage given to it.
#!/usr/bin/perl
### ceilingreport.pl written 022806:1022 by BJP
###
### This script examines how many free PPs remain in each volume group
+.

@vgs=`lsvg -L`;
$hostName=`hostname`;
chomp($hostName);


foreach $i (@vgs)
{
        chomp($i);
        $numFree=`lsvg -L $i| grep FREE`;
        $numFree=~/PPs:/;
        $numFree=$';
        chomp($numFree);
        $numFree=~s/^\s+//g;
        print "CeilingReport (on $hostName): $i has $numFree PPs remai
+ning.\n";
}

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: sourcecode [id://558382]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2025-11-06 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (65 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.