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 www web Links
Viewed 3087 times since Fri, Apr 19, 2019
bootlist multiple boot logical volume found
Viewed 2535 times since Tue, Apr 16, 2019
Using expect to automate mundane tasks
Viewed 1643 times since Mon, Jun 3, 2019
ILMT Procedure - ILMT / TAD4D / SUA / BFI
Viewed 9885 times since Fri, Jul 5, 2019
Top 4 Reasons for Node Reboot or Node Eviction in Real Application Cluster (RAC) Environment
Viewed 80261 times since Thu, Jun 21, 2018
Kerberos, Active Directory and AIX
Viewed 6058 times since Mon, Jun 25, 2018
Recovery from LED 552, 554, or 556 in AIX
Viewed 2372 times since Tue, Apr 16, 2019
Manually Editing /etc/filesystems Can Cause Issues
Viewed 5078 times since Tue, May 22, 2018
AIX snap - Prevent dump collection
Viewed 12110 times since Mon, Sep 17, 2018
How to clear/clean/erase/delete/reset network adapter configuration on AIX?
Viewed 12139 times since Thu, Nov 29, 2018