Created
November 17, 2016 19:52
-
-
Save gmillerd/b92c6697bb75e36a47be9a13d6bcee20 to your computer and use it in GitHub Desktop.
remote isi commands for isilon, for people to lazy to be bothered like me.
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
| #!/bin/bash | |
| # put inside your PATH (eg, ~/bin/) and symlink ~/bin/isi, ~/bin/isi_classic, ~/bin/isi_for_array to it | |
| #set -x | |
| if [[ -z "$ISICLUSTER" ]]; then | |
| export ISICLUSTER=10.1.1.80 | |
| fi | |
| if [[ $0 =~ isi_classic ]]; then | |
| export CMD="isi_classic" | |
| elif [[ $0 =~ isi_for_array ]]; then | |
| export CMD="isi_for_array" | |
| else | |
| export CMD="isi --timeout=240" | |
| fi | |
| time ssh -t -o GSSAPIAuthentication=no root@${ISICLUSTER} "${CMD} $*" 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment