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 7.2 running on my Macbook?
Viewed 14352 times since Mon, Jun 3, 2019
NMON nmon
Viewed 14396 times since Tue, Apr 16, 2019
AIX - How to get IP and MAC address of ethernet adapter in AIX
Viewed 29462 times since Fri, Jun 8, 2018
AIX alt_disk_copy
Viewed 11176 times since Sun, Jun 30, 2019
Writing a Custom PVID
Viewed 4238 times since Fri, Feb 1, 2019
AIX FC Performance improvements for IBM AIX FC and FCoE device driver stacks
Viewed 7754 times since Fri, Jan 31, 2020
Backup and Restore With AIX
Viewed 6246 times since Sat, May 19, 2018
Tips I Picked up at the Power Systems Technical University
Viewed 4622 times since Mon, Jun 11, 2018
Configure log file for cron daemon on AIX
Viewed 12132 times since Thu, Feb 21, 2019
AIX: How do you send an attachment via mail
Viewed 4308 times since Mon, Jun 11, 2018