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
Tunneling With SSH to Your Destination
Viewed 4594 times since Wed, May 30, 2018
Mirroring session (TTY) on AIX using portmir
Viewed 9612 times since Thu, Feb 21, 2019
AIX LVM QUORUM mysteries revealed
Viewed 3561 times since Wed, May 22, 2019
DISK OPERATION ERROR in AIX
Viewed 14665 times since Thu, Feb 21, 2019
Using splitvg in AIX to make a copy of a volume group
Viewed 9043 times since Mon, Jun 3, 2019
Create a mksysb + SPOT using NIM (CLI)
Viewed 5744 times since Tue, Jul 17, 2018
Topics: AIX, System Admin↑ Export and import PuTTY sessions
Viewed 3245 times since Fri, Apr 19, 2019
Top 4 Reasons for Node Reboot or Node Eviction in Real Application Cluster (RAC) Environment
Viewed 101248 times since Thu, Jun 21, 2018
AIX: Remove existing disk
Viewed 2854 times since Sun, Jun 3, 2018
Useful AIX general commands
Viewed 12235 times since Wed, Apr 17, 2019