AIX: Script to check if all paths are consistent and available

Single Server

1
lspath | awk '{print $1,$NF}' |sort |uniq -c

(OR)

1
2
3
4
5
for x in `lspath |awk '{print $2}' |sort -k1.6n |uniq`
do
status=`lspath -l $x`
echo $status |sed 's/\ /,/g'
done

Multiple Server

1
2
3
4
for i in `cat server`
do
ssh $i lspath | awk '{print $1,$NF}' |sort |uniq -c |awk -v MYHOST=$(ssh $i uname -n) '{print MYHOST " " $1,$2,$3}'
done
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
AIX oslevel version OS
Viewed 4489 times since Wed, Apr 17, 2019
Topics: PowerHA / HACMP, Storage Adding a new volume group to an active PowerHA resource group
Viewed 2358 times since Mon, Jun 3, 2019
Creating Normal,Big,Scalable VG on AIX
Viewed 14051 times since Fri, Feb 1, 2019
How To Mirror VG and Root VG
Viewed 2802 times since Mon, May 21, 2018
Using AIX VG mirroring in combination with hardware snapshots
Viewed 4692 times since Sat, May 25, 2019
Tunneling With SSH to Your Destination
Viewed 3878 times since Wed, May 30, 2018
AIX Commands Related to Boot and Init Process
Viewed 4126 times since Tue, Apr 16, 2019
Removing Failed or Missing Paths
Viewed 2517 times since Wed, May 30, 2018
AIX POWERHA/HACMP: Basic commands
Viewed 4949 times since Sat, Jun 2, 2018
Using Shell Redirection: All About the Here-Doc
Viewed 10009 times since Wed, May 30, 2018