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
Migrating from SDDPCM to AIXPCM (the easy way)
Viewed 3545 times since Mon, Jun 3, 2019
AIX, System Admin Configuring dsh DSH
Viewed 5327 times since Fri, Apr 19, 2019
AIX smtctl The smtctl command controls the enabling and disabling of processor simultaneous multithreading mode.
Viewed 16360 times since Fri, Jan 18, 2019
AIX - How to get network speed and statistic of ethernet adapter in AIX
Viewed 16761 times since Fri, Jun 8, 2018
How to mirror the rootvg in AIX?
Viewed 6164 times since Mon, May 21, 2018
AIX lsdevinfo
Viewed 11241 times since Mon, Jun 3, 2019
IVM and VLAN Tagging
Viewed 11523 times since Mon, May 28, 2018
Part 1, Memory overview and tuning memory parameters AIX7
Viewed 5477 times since Wed, Jun 19, 2019
AIX boot proccess
Viewed 4219 times since Tue, Apr 16, 2019
Unlock User ID in IBM AIX
Viewed 16836 times since Mon, May 28, 2018