Skip to content
Snippets Groups Projects
Commit 61037bcb authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Minor changes.

parent d2bee2d4
No related branches found
No related tags found
No related merge requests found
...@@ -15,9 +15,9 @@ class TapeClient(object): ...@@ -15,9 +15,9 @@ class TapeClient(object):
self.host = host self.host = host
self.port = port self.port = port
self.user = user self.user = user
self.key = paramiko.RSAKey.from_private_key_file(keyFile)
self.client = paramiko.SSHClient() self.client = paramiko.SSHClient()
self.client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) self.client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
self.key = paramiko.RSAKey.from_private_key_file(keyFile)
self.client.load_system_host_keys() self.client.load_system_host_keys()
self.scp = None self.scp = None
self.taskList = [] self.taskList = []
...@@ -78,7 +78,7 @@ class TapeClient(object): ...@@ -78,7 +78,7 @@ class TapeClient(object):
stdin, stdout, stderr = self.client.exec_command(cmd) stdin, stdout, stderr = self.client.exec_command(cmd)
def recallChecksumFiles(self, dirName): def recallChecksumFiles(self, dirName):
cmd = "find $(dirname " + dirName + ") -type f \( -iname \"*-md5sum.txt\" \) | eeadm recall" cmd = "find $(dirname " + dirName + ") -type f \( -iname \"*-md5sum.txt\" \) | /opt/ibm/ltfsee/bin/eeadm recall"
stdin, stdout, stderr = self.client.exec_command(cmd) stdin, stdout, stderr = self.client.exec_command(cmd)
exitCode = stdout.channel.recv_exit_status() exitCode = stdout.channel.recv_exit_status()
out = open("tape_client_log.txt", "a") out = open("tape_client_log.txt", "a")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment