Created
September 24, 2015 15:58
-
-
Save sosnovskyas/fe928bc9b1a2754d9cfa to your computer and use it in GitHub Desktop.
aix_rm_all_path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
################################################################################# | |
# # | |
# Developed by # | |
# Alexey Sosnovsky # | |
# # | |
################################################################################# | |
lspath -p $1 -H -F"name parent connection" | awk ' /hdisk/ {print "rmpath -dl " $1 " -p " $2 " -w " $3 }' ; # list all hdisks by device name and filterin by second column |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment