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
Understanding dump devices sysdumpdev
Viewed 4772 times since Mon, Jul 9, 2018
AIX Password expiry /etc/passwd
Viewed 19288 times since Wed, Jul 3, 2019
Recovery from LED 552, 554, or 556 in AIX
Viewed 2746 times since Tue, Apr 16, 2019
SNAP
Viewed 2139 times since Mon, Sep 17, 2018
The new VIOS performance advisor tool part util
Viewed 3453 times since Tue, Jun 4, 2019
IBM AIX commands you should not leave home without
Viewed 7314 times since Mon, Jun 11, 2018
AIX 0516-404 allocp: This system cannot fulfill the allocation
Viewed 3508 times since Thu, Sep 20, 2018
Problems with NFS on an AIX Reboot? Then Go Single
Viewed 7533 times since Wed, May 30, 2018
AIX, System Admin Configuring dsh DSH
Viewed 4187 times since Fri, Apr 19, 2019
AIX, Monitoring, System Admin↑ NMON recordings
Viewed 3139 times since Fri, Apr 19, 2019