Skip to content

Instantly share code, notes, and snippets.

@gmillerd
Created November 17, 2016 19:52
Show Gist options
  • Select an option

  • Save gmillerd/b92c6697bb75e36a47be9a13d6bcee20 to your computer and use it in GitHub Desktop.

Select an option

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.
#!/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