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, Monitoring, Networking, Red Hat, Security, System Admin↑ Determining type of system remotely
Viewed 1833 times since Fri, Apr 19, 2019
Oslevel shows wrong AIX’s level. Why
Viewed 4315 times since Thu, Feb 21, 2019
SNAP in AIX
Viewed 11149 times since Mon, Sep 17, 2018
Getting list users and groups in AIX
Viewed 2770 times since Mon, May 28, 2018
AIX HOW TO CLONE A ROOTVG USING ALTERNATE DISK INSTALLATION ALTER_DISK_COPY
Viewed 14662 times since Sun, Jun 30, 2019
Altering LVM Configuration When a Disk is Not in ODM Anymore
Viewed 2440 times since Mon, Jun 3, 2019
How to clear/clean/erase/delete/reset network adapter configuration on AIX?
Viewed 11888 times since Thu, Nov 29, 2018
Setting new device attributes with chdef
Viewed 1864 times since Mon, Jun 3, 2019
replacing (hot-swap) failed disk in rootvg
Viewed 8529 times since Thu, Sep 20, 2018
Mirroring session (TTY) on AIX using portmir
Viewed 8694 times since Thu, Feb 21, 2019