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
O’Reilly’s CD bookshelf
Viewed 10997 times since Wed, Jun 27, 2018
Rootvg Mirroring in AIX
Viewed 2226 times since Mon, May 21, 2018
AIX routing - How Do I Compare ODM with the Current Routing Table?
Viewed 2151 times since Mon, Jul 29, 2019
List STALE partitions across Volume Groups for each Logical Volume in AIX
Viewed 2141 times since Tue, Jul 17, 2018
Part 2, Detailed diagnosis and troubleshooting
Viewed 2448 times since Tue, May 22, 2018
IBM AIX multipath I/O (MPIO) resiliency and problem determination
Viewed 12560 times since Wed, May 30, 2018
AIX Creating a Volume Group
Viewed 2185 times since Tue, Jul 17, 2018
Software management in AIX
Viewed 6429 times since Mon, Jun 25, 2018
AIX - How to monitor memory usage
Viewed 4001 times since Fri, Jun 8, 2018
Convert to Scalable Volume Groups
Viewed 3314 times since Wed, May 30, 2018