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
Recovery from LED 552, 554, or 556 in AIX
Viewed 3452 times since Tue, Apr 16, 2019
Part 1, Memory overview and tuning memory parameters AIX7
Viewed 5297 times since Wed, Jun 19, 2019
Mirroring the rootvg Volume Group for AIX
Viewed 5018 times since Mon, May 21, 2018
Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 3079 times since Thu, Sep 20, 2018
AIX 6.1: Extend VG 0516-1714 extendvg 0516-1254 extendvg
Viewed 5352 times since Fri, Jul 6, 2018
Create a mksysb + SPOT using NIM (CLI)
Viewed 6392 times since Tue, Jul 17, 2018
AIX Increase paging space logical volume size
Viewed 3758 times since Tue, Jul 17, 2018
Aix: How to assign a specific PVID
Viewed 8803 times since Fri, Feb 1, 2019
How to know witch process is running in a particular port on AIX using KDB
Viewed 13625 times since Thu, Nov 29, 2018
Part 3, Monitoring your network packets and tuning the network
Viewed 6813 times since Mon, Jun 4, 2018