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
Control Your Logs AIX
Viewed 18928 times since Wed, May 30, 2018
AIX ODM for MPIO User Guide 09
Viewed 3916 times since Mon, Dec 31, 2018
LVM: Extend an existing Volume Group by adding a new disk
Viewed 5554 times since Sat, Jun 2, 2018
Configuration of AIX Fast Connect and SMBFS
Viewed 8419 times since Mon, Jun 18, 2018
AIX Password expiry /etc/passwd
Viewed 18678 times since Wed, Jul 3, 2019
AIX alt_disk_copy
Viewed 9794 times since Sun, Jun 30, 2019
Restoring mksysb
Viewed 3469 times since Wed, May 30, 2018
DISK OPERATION ERROR in AIX
Viewed 14036 times since Thu, Feb 21, 2019
AIX: Script to create a file with commands to remove missing & failed paths
Viewed 3168 times since Tue, Jun 12, 2018
AIX disk queue depth tuning for performance
Viewed 15296 times since Thu, Jan 16, 2020