UrbanPro
true

Learn Unix Shell Scripting Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

How to check disk group size veritas symantec and volume size script?

Ravindra Babu
18/02/2017 0 0

#!/usr/bin/ksh
vxprint | grep Disk |awk {'print $3'} | grep -v rootdg >/var/tmp/dgname
printf "\n......................................................................\n"
printf "Server Name : "
hostname
cat /var/tmp/dgname | while read dgnames
do
printf "......................................................................\n"
printf "\nDiskGroup Name : $dgnames "
vxprint -g $dgnames | grep ^dm |awk 'BEGIN {TOT=0} {TOT=TOT+$5} END{print " Total Size of the DG=" TOT/2/1024" MB ("TOT/
2/1024/1024" GB)\n"}'
vxprint -g $dgnames | grep ^v | awk '{print "Volume : " $2" " $5/2/1024 " MB (" $5/2/1024/1024 "GB)"}'
printf "\nAvailable space in $dgnames = "
vxassist -g $dgnames maxsize| awk '{print $5}'
done
printf "......................................................................\n" 

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

Shell Scripting - The underrated programming language of system administrators
It is oft repeated that the next wave of IT is automation. But automation is not new - it existed before in terms of automated installation, sending birthday mails etc. It was not untill you actually...

Basics Of Unix
What is Unix ? The Unix operating system is a set of programs that act as a link between the computer and the user. The computer programs that allocate the system resources and coordinate all the details...
D

Dinesh Kumar G.

0 0
0

Internal and external commands Linux
Internal and external commands cmd: help To see all available internal commands cmd: type <your cmd> To check your cmd is internal or external.

Unix Shell Scripting
UNIX Shell Scripting Unix – An Introduction:- Features & Advantages Unix Vs Linux Unix Architecture File Management Comparative study between Windows & Unix Vi Editor Unix –...

Amazon written test for experience
For the below written test answer I defined with "*" at the end of the options NULL is the same as 0 for integer the same as blank for character * the same as 0 for integer and blank for character the...

Looking for Unix Shell Scripting Training classes?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Unix Shell Scripting Training Classes?

The best tutors for Unix Shell Scripting Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Unix Shell Scripting Training with the Best Tutors

The best Tutors for Unix Shell Scripting Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more