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 Reviewing AIX Error and Boot Logs
Viewed 3004 times since Wed, Mar 20, 2019
AIX, Security, System Admin↑ Generating random passwords
Viewed 3101 times since Fri, Apr 19, 2019
AIX - How to unlock and reset user’s account
Viewed 16762 times since Fri, Jun 8, 2018
AIX - How to extend JFS filesystem
Viewed 19227 times since Fri, Jun 8, 2018
Install and configure GNU watch (gwatch) on AIX
Viewed 7878 times since Thu, Feb 21, 2019
How to disable SSH cipher/ MAC algorithms for Linux and Unix
Viewed 46679 times since Fri, Aug 21, 2020
Mirroring the rootvg Volume Group for AIX
Viewed 4094 times since Mon, May 21, 2018
Oslevel shows wrong AIX’s level. Why
Viewed 4835 times since Thu, Feb 21, 2019
Undocumented AIX command lquerypv
Viewed 3750 times since Mon, Jul 16, 2018
Replacing a failed disk (rootvg)
Viewed 3021 times since Mon, May 21, 2018