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
HOWTO: Implement SEA Failover with Dual VIOS
Viewed 8118 times since Tue, Jun 4, 2019
Install and configure GNU watch (gwatch) on AIX
Viewed 8009 times since Thu, Feb 21, 2019
AIX, Storage, System Admin↑ Identifying a Disk Bottleneck Using filemon
Viewed 10137 times since Fri, Apr 19, 2019
Getting bosboot errors, don’t reboot just yet
Viewed 3038 times since Tue, Apr 16, 2019
Authenticate AIX using MS DC’s kerberos servers (Active Directory)
Viewed 2326 times since Thu, Feb 21, 2019
AIX lspath Missing path
Viewed 10343 times since Fri, Oct 5, 2018
IVM and VLAN Tagging
Viewed 10618 times since Mon, May 28, 2018
AIX↑ AIX www links
Viewed 3941 times since Sat, Apr 20, 2019
https://www.ibm.com/developerworks/learn/aix/index.html
Viewed 11447 times since Wed, May 30, 2018
AIX Resolving "missing" or "removed" disks in AIX LVM
Viewed 4950 times since Tue, Aug 6, 2019