From 1e71b24dca292e6ff3c8a58613fc66b6afe797bc Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Wed, 14 Mar 2012 22:41:53 +0000 Subject: [PATCH] More info messages to prove xp_cmdshell (and temporary directory choosen) worked --- lib/takeover/xp_cmdshell.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/takeover/xp_cmdshell.py b/lib/takeover/xp_cmdshell.py index f9000d695..e4910c71d 100644 --- a/lib/takeover/xp_cmdshell.py +++ b/lib/takeover/xp_cmdshell.py @@ -104,14 +104,19 @@ class xp_cmdshell: pushValue(threadData.disableStdOut) threadData.disableStdOut = True + logger.info("testing if xp_cmdshell extended procedure is usable") output = self.evalCmd("echo 1") + if isNoneValue(output): - errMsg = "it seems that the temporary directory ('%s') used for storing " % self.getRemoteTempPath() - errMsg += "console output at the back-end OS does not have " - errMsg += "writing permissions for the DBMS process. You are advised " - errMsg += "to manually adjust it with option '--tmp-path' or you won't " - errMsg += "be able to retrieve the console output" + errMsg = "it seems that the temporary directory ('%s') used for " % self.getRemoteTempPath() + errMsg += "storing console output within the back-end file system " + errMsg += "does not have writing permissions for the DBMS process. " + errMsg += "You are advised to manually adjust it with option " + errMsg += "--tmp-path switch or you will not be able to retrieve " + errMsg += "the commands output" logger.error(errMsg) + else: + logger.info("xp_cmdshell extended procedure is usable") threadData.disableStdOut = popValue()