The following information needs to be added to your profile.
PATH=$PATH:/opt/qorestor/bin
function _qorestor_cli_() {
[ "${COMP_WORDS[0]}" == "" ] && return;
OPTS=$(${COMP_WORDS[0]} --_complete_ --cword $COMP_CWORD --argv "${COMP_WORDS[@]}");
[ $? -ne 0 ] && return
[[ "$OPTS" =~ "^[<\[]" ]] && COMPREPLY=("$OPTS" "") && return
COMPREPLY=($(compgen -W "${OPTS}" -- ${COMP_WORDS[$COMP_CWORD]}));
}
complete -F _qorestor_cli_ alerts authenticate connection container maintenance replication schedule sc_manager stats storage_group system user ost rda help vtl
One example of how to do this:
Note: information can be added to multiple places and can be user specific. For simplicity example is how to add to global profile.
* vi /etc/profile.d/qorestor.sh
* Hit "i" to enter insert mode
* Add the information above to the file.
* Hit ESC to exit insert mode.
* Type ":wq " to write and quit
For new sessions the profile will now be in place.