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
Top 4 Reasons for Node Reboot or Node Eviction in Real Application Cluster (RAC) Environment
Viewed 105409 times since Thu, Jun 21, 2018
AIX Assign a PVID to a new hdisk
Viewed 7160 times since Tue, Jul 17, 2018
AIX, Monitoring, System Admin↑ NMON recordings
Viewed 3581 times since Fri, Apr 19, 2019
AIX Not all filesets for 6100-07_AIX_ML were found
Viewed 3628 times since Tue, Jul 17, 2018
Got Duplicate PVIDs in Your User VG? Try Recreatevg!
Viewed 4343 times since Fri, Feb 1, 2019
HMC: HMC and LPAR management commands
Viewed 8263 times since Sun, Jun 3, 2018
How To Mirror Your Root Disk On AIX (a.k.a. rootvg)
Viewed 6833 times since Mon, May 21, 2018
AIX, System Admin Configuring dsh DSH
Viewed 4722 times since Fri, Apr 19, 2019
IBM AIX MPIO: Best practices and considerations
Viewed 13087 times since Wed, May 30, 2018
How to start daemons at the system startup in AIX servers
Viewed 3081 times since Tue, Jun 18, 2019