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
AIX: Remove existing disk
Viewed 2800 times since Sun, Jun 3, 2018
IBM AIX commands you should not leave home without
Viewed 7321 times since Mon, Jun 11, 2018
Changing Ethernet Media Speed for AIX
Viewed 3546 times since Tue, Apr 16, 2019
Create bootable DVD iso image from a mksysb backup
Viewed 4860 times since Tue, Jul 17, 2018
How to install filesets/software in aix?
Viewed 6207 times since Mon, Jul 8, 2019
AIX Booting
Viewed 10555 times since Tue, Apr 16, 2019
Convert to Scalable Volume Groups
Viewed 4166 times since Wed, May 30, 2018
VIO Server Howto
Viewed 10428 times since Mon, Jun 11, 2018
Processes and Devices—It’s All About the Children
Viewed 2379 times since Wed, May 30, 2018
Control Your Logs AIX
Viewed 19229 times since Wed, May 30, 2018