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: Configuring a network interface
Viewed 3841 times since Sat, Jun 2, 2018
AIX, Monitoring, Networking, Red Hat, Security, System Admin↑ Determining type of system remotely
Viewed 2522 times since Fri, Apr 19, 2019
Writing a Custom PVID
Viewed 3088 times since Fri, Feb 1, 2019
Using Shell Redirection: All About the Here-Doc
Viewed 10562 times since Wed, May 30, 2018
How to determine why your AIX oslevel is downlevel (and a script to help!)
Viewed 4565 times since Fri, Jul 13, 2018
AIX- Procedure to replace rootvg harddisk
Viewed 4824 times since Tue, Apr 16, 2019
IP configuration in AIX
Viewed 3027 times since Tue, Jul 17, 2018
A Change to the SMT Mode Default in POWER9
Viewed 5624 times since Fri, Jan 18, 2019
AIX - How to shutdown or reboot
Viewed 6474 times since Fri, Jun 8, 2018
AIX perf how to
Viewed 19290 times since Tue, Aug 14, 2018