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
Setting new device attributes with chdef
Viewed 2147 times since Mon, Jun 3, 2019
Find out which port the daemon is using on AIX OS. (similar like command netstat -anp for Linux)
Viewed 11264 times since Thu, Feb 21, 2019
Troubleshooting Starts With Understanding Your Physical Disks’ Attributes
Viewed 3662 times since Sat, May 19, 2018
AIX Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 9424 times since Wed, May 22, 2019
replacing (hot-swap) failed disk in rootvg
Viewed 9012 times since Thu, Sep 20, 2018
AIX Migrating from SDDPCM to AIXPCM (the easy way)
Viewed 19838 times since Mon, Dec 31, 2018
How to install filesets/software in aix?
Viewed 5766 times since Mon, Jul 8, 2019
AIX - How to get IP and MAC address of ethernet adapter in AIX
Viewed 24687 times since Fri, Jun 8, 2018
AIX Password expiry /etc/passwd
Viewed 18547 times since Wed, Jul 3, 2019
Install and configure yum on AIX
Viewed 4502 times since Thu, Feb 21, 2019