Data copy from endpoints to root server

hi,

i want to copy a csv file from endpoints to root server for this i have two options BFArchive or clientquery is there any other option i can use to copy data from endpionts to root server

#1 - BFArchive - i want to copy data from multiple endpoints to root server in single action and unable to recognize sha1/<> at run time as data is going to multiple folder -> can i have a different location to copy data from endpoints to root machine ??

#2 - Clientquery - if i use this method to copy data from client machines to root then if i use lines of file backup.csv it corrupt the data format and unable to merge to a final csv file.

I do have python API code which does the upbload using bfarchive and then target host extract and run the code…
here is teh sample.

def build_xml(computer_target,set):

action_script=“”“\nbegin prefetch block
\nadd nohash prefetch item url=”“”+url_S+“”"
\nend prefetch block
\ndelete /var/tmp/dynaXX.sh
\ndelete /var/tmp/opt_dyna_fs.sh
\ndelete /var/tmp/host_grp.csv
\nextract bf_arch_dyna “/var/tmp”
\nwait chmod 755 /var/tmp/opt_dyna_fs.sh
\nwait /bin/sh /var/tmp/opt_dyna_fs.sh “”“+cmd_argument+”“”
\ndelete /var/tmp/host_grp.csv
\ndelete /var/tmp/opt_dyna_fs.sh
\ndelete /var/tmp/dynaXX.sh “”"

#print(action_script)
xml_query=‘<?xml version="1.0" encoding="utf-8"?>


Deploy: DynaTrace ‘+change_no+’ ‘+set+’ ‘+cmd_argument+’
exists (operating system) whose (it as string contains regex “Linux|AIX|SunOS|HP-UX” )

‘+action_script+’





xml_query=xml_query+“”+computer_target+“”+“ ”
xml=xml_query
#print(“\nBuilding Query XML :”+ xml+“\n”)
#sys.exit()
req_bes_query_id=requests.post(bigfix_URL_action,verify=False,auth=(bigfix_username,bigfix_pwd),data=xml)
return req_bes_query_id

url_S=bigfix_commn_proc_cls_obj.upload_zip(tmp_tar,bigfix_username,bigfix_pwd)

  def upload_zip(self,tmp_tar,bigfix_username,bigfix_pwd):
      #tmp_tar="/var/tmp/bf_arch_mqft_upg"
      #global url_S
      url_S=""
      print("Uploading "+tmp_tar+" to Bigfix ROOT server" )
      fil = {'file': open(tmp_tar, 'rb') }
      r=requests.post(self.bigfix_URL_upload,auth=(bigfix_username, bigfix_pwd),files=fil,verify=False)
      #print(r.text)
      tree2 = ET.fromstring(r.text)
      for fixlet in tree2.findall('.//FileUpload'):
       url_S=fixlet.find("URL").text
      print ("MFT XML URL :"+ url_S)
      return url_S