Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tried to improve TSM connection test and renamed misspelled 389_check…
…_TSM_connexion.sh into 389_check_TSM_connection.sh (issue 1534)
- Loading branch information
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
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 |
---|---|---|
@@ -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 '$?')" | ||
|
This file was deleted.
Oops, something went wrong.