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
Configure log file for cron daemon on AIX
Viewed 11371 times since Thu, Feb 21, 2019
IBM AIX MPIO: Best practices and considerations
Viewed 13021 times since Wed, May 30, 2018
Convert to Scalable Volume Groups
Viewed 4918 times since Wed, May 30, 2018
AIX Assign a PVID to a new hdisk
Viewed 7149 times since Tue, Jul 17, 2018
Do you Know These 5 Use of V$session View ?
Viewed 155370 times since Thu, Jun 21, 2018
AIX Net How to check VLAN ID number on AIX?
Viewed 16829 times since Thu, Nov 29, 2018
Part 1, Network overview - Monitoring the hardware
Viewed 5851 times since Mon, Jun 4, 2018
AIX - How to monitor memory usage
Viewed 6583 times since Fri, Jun 8, 2018
IBM AIX multipath I/O (MPIO) resiliency and problem determination
Viewed 14646 times since Wed, May 30, 2018
Backing up your VIOS configuration with viosbr.
Viewed 12503 times since Mon, May 28, 2018