Skip to content

Commit

Permalink
Tried to improve TSM connection test and renamed misspelled 389_check…
Browse files Browse the repository at this point in the history
…_TSM_connexion.sh into 389_check_TSM_connection.sh (issue 1534)
  • Loading branch information
jsmeix committed Dec 12, 2017
1 parent 7074bd5 commit 8671a58
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 17 additions & 0 deletions usr/share/rear/verify/TSM/default/389_check_TSM_connection.sh
@@ -0,0 +1,17 @@
# Test connection to the TSM server.
#
# TODO: This should be enhanced to request a TSM password from the user
# when there is no TSM password file 'TSM.PWD' in the recovery system
# cf. https://github.com/rear/rear/issues/1642
#
# Regarding usage of '0<&6 1>&7 2>&8' see
# "What to do with stdin, stdout, and stderr"
# in https://github.com/rear/rear/wiki/Coding-Style
#
# First try "dsmc query session" because it is faster than "dsmc query mgmt":
dsmc query session 0<&6 1>&7 2>&8 && return
LogPrintError "Possibly no connection to TSM server ('dsmc query session' returns '$?')"
# When "dsmc query session" failed try "dsmc query mgmt":
dsmc query mgmt 0<&6 1>&7 2>&8 && return
Error "No connection to TSM server ('dsmc query mgmt' returns '$?')"

4 changes: 0 additions & 4 deletions usr/share/rear/verify/TSM/default/389_check_TSM_connexion.sh

This file was deleted.

0 comments on commit 8671a58

Please sign in to comment.