Loading transfer_service/tape_client.py +2 −2 Original line number Diff line number Diff line Loading @@ -15,9 +15,9 @@ class TapeClient(object): self.host = host self.port = port self.user = user self.key = paramiko.RSAKey.from_private_key_file(keyFile) self.client = paramiko.SSHClient() 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.scp = None self.taskList = [] Loading Loading @@ -78,7 +78,7 @@ class TapeClient(object): stdin, stdout, stderr = self.client.exec_command(cmd) 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) exitCode = stdout.channel.recv_exit_status() out = open("tape_client_log.txt", "a") Loading Loading
transfer_service/tape_client.py +2 −2 Original line number Diff line number Diff line Loading @@ -15,9 +15,9 @@ class TapeClient(object): self.host = host self.port = port self.user = user self.key = paramiko.RSAKey.from_private_key_file(keyFile) self.client = paramiko.SSHClient() 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.scp = None self.taskList = [] Loading Loading @@ -78,7 +78,7 @@ class TapeClient(object): stdin, stdout, stderr = self.client.exec_command(cmd) 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) exitCode = stdout.channel.recv_exit_status() out = open("tape_client_log.txt", "a") Loading