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
Install and configure GNU’s screen on AIX
Viewed 10179 times since Thu, Feb 21, 2019
Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 3132 times since Thu, Sep 20, 2018
AIX, System Admin Configuring dsh DSH
Viewed 5191 times since Fri, Apr 19, 2019
Setup private yum repository for AIX clients
Viewed 12232 times since Thu, Feb 21, 2019
AIX 6.1: Extend VG 0516-1714 extendvg 0516-1254 extendvg
Viewed 5407 times since Fri, Jul 6, 2018
How to start daemons at the system startup in AIX servers
Viewed 3249 times since Tue, Jun 18, 2019
AIX- Procedure to replace rootvg harddisk
Viewed 5627 times since Tue, Apr 16, 2019
LVM: Extend an existing Volume Group by adding a new disk
Viewed 6477 times since Sat, Jun 2, 2018
AIX: Error code 0516-1339, 0516-1397 0516-792: cannot extendvg with a previous Oracle ASM disk
Viewed 4563 times since Wed, Feb 6, 2019
AIX NTP Client configuration
Viewed 13441 times since Tue, Jul 17, 2018