Created
March 3, 2018 12:50
-
-
Save lrtfm/c57912fa616c4adc2ac02d4445f41f18 to your computer and use it in GitHub Desktop.
检测哪些节点可以正常 rsh 登陆
This file contains hidden or 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
bhosts | grep ok | cut -d" " -f1 | while read a; do if rsh $a test >/dev/null 2>&1; then echo $a; fi done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment