[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 390
  • Last Modified:

Check Scritp to find Total # of Unassigned PP's

I'm not an AIX admin by a long shot but I need to write a script that woud do the following.

Take the total number of PP from lsvp -p rootvg and the total PP's from lsvg rootvg and calucation the difference and show this number as the amount of PP's that are unassigned
0
compdigit44
Asked:
compdigit44
  • 3
  • 3
1 Solution
 
woolmilkporcCommented:
Did you ever look at "FREE PPs:" in the output of "lsvg rootvg"?

It should tell you all you want to know.
It even has the number of Megabytes (in parentheses).
0
 
compdigit44Author Commented:
Thanks..

BTW, could can I run two different AIX on the same line and have there results display on screen inwhich they were processed..

for example df -g ; lsvg

When I run the above in a script only the lsvg command is displayed
0
 
compdigit44Author Commented:
I'm actually try to run both command in one line and have the results of both command appears in the body of an email

Right now only the last command list shows up in the body of the email
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
woolmilkporcCommented:
( lsvg ; df -g ) | mail -s "Subject" compdigit@44.com

You can issue an "lsvg vgname" against all of your VGs in one go, like this:

( lsvg | lsvg -i; df -g ) | mail -s "Subject" compdigit@44.com
0
 
compdigit44Author Commented:
Thanks.. This is what I was looking for..

Is there anyway to have AIX insert a line break after each command???
0
 
woolmilkporcCommented:
( lsvg; echo; df -g ) | mail -s "Subject" compdigit@44.com
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now