Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified TSM connection test to only call 'dsmc query session' (iss…
…ue 1534)
- Loading branch information
Showing
1 changed file
with
8 additions
and
6 deletions.
There are no files selected for viewing
14 changes: 8 additions & 6 deletions
14
usr/share/rear/verify/TSM/default/389_check_TSM_connection.sh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
# Test connection to the TSM server. | ||
# | ||
# TODO: This should be enhanced to request a TSM password from the user | ||
# Additionally this requests a general 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 | ||
# but it does not request possibly further TSM passwords from the user | ||
# like passwords for encryption or decryption of files, cf. | ||
# https://github.com/rear/rear/issues/1534#issuecomment-351313623 | ||
# | ||
# 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": | ||
# Test with "dsmc query session" (it is faster than e.g. "dsmc query mgmt") | ||
# and it is also enough for the prompt of the general TSM password, cf. | ||
# https://github.com/rear/rear/issues/1534#issuecomment-351067465 | ||
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 '$?')" | ||
Error "No connection to TSM server ('dsmc query session' returns '$?')" | ||
|