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 perf how to
Viewed 20612 times since Tue, Aug 14, 2018
Using expect to automate mundane tasks
Viewed 2741 times since Mon, Jun 3, 2019
Problem on resizing volume group on AIX 0516-1714, 0516-792, 0516-787, and 0516-404
Viewed 3806 times since Fri, Jul 6, 2018
Create jfs2 logical volume on AIX
Viewed 6294 times since Thu, Feb 21, 2019
AIX Creating a Volume Group
Viewed 4338 times since Tue, Jul 17, 2018
AIX↑ AIX www links
Viewed 4576 times since Sat, Apr 20, 2019
AIX - How to get CPU infomation
Viewed 7455 times since Fri, Jun 8, 2018
How to check dual path in AIX
Viewed 15615 times since Fri, Jun 8, 2018
Install and configure GNU watch (gwatch) on AIX
Viewed 8806 times since Thu, Feb 21, 2019
AIX PDF ALL
Viewed 7646 times since Mon, Jul 16, 2018