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
LVM: Shrink & extend a filesystem/volume
Viewed 3065 times since Sun, Jun 3, 2018
Script to reset NIM state and deallocate resources
Viewed 3465 times since Thu, Feb 21, 2019
AIX, Networking Etherchannel failover testing
Viewed 4250 times since Fri, Apr 19, 2019
Using Shell Redirection: All About the Here-Doc
Viewed 11682 times since Wed, May 30, 2018
AIX - How to monitor CPU usage
Viewed 30161 times since Fri, Jun 8, 2018
bootlist multiple boot logical volume found
Viewed 3606 times since Tue, Apr 16, 2019
Processes and Devices—It’s All About the Children
Viewed 3580 times since Wed, May 30, 2018
How To Mirror VG and Root VG
Viewed 4915 times since Mon, May 21, 2018
AIX routing - How Do I Compare ODM with the Current Routing Table?
Viewed 4778 times since Mon, Jul 29, 2019
AIX Undocumented AIX command lquerypv
Viewed 4785 times since Tue, Jul 17, 2018