host_list = [] for asset in asset_list: #convert the asset tag into a host name hostName = MakePCName.make_pc_name(asset) host_list.append(hostName) inputfile.closeFile(inFile) for host in host_list: #ping the host to see if alive if pyPing.py_ping(host) != 0: print(host + " unavailable- skipping.") continue else: #Query Software Database and get software information software = SoftIDQuery.query_software_db(softid) software_id = software[0] software_name = software[1] software_version = software[2] ini_information = software[3] print("Installing: " + software[1] + " " + software[2]) #build paths to media and destination unc_machine_share = makePaths.make_machine_path(host) software_source = makePaths.make_software_source( software_name, software_version) software_destination = makePaths.make_folder_destination( unc_machine_share, software_name, software_version) ini_file_source = makePaths.make_ini_source(unc_machine_share, software_name, software_version,
host_list = [] for asset in asset_list: #convert the asset tag into a host name hostName = MakePCName.make_pc_name(asset) host_list.append(hostName) inputfile.closeFile(inFile) for host in host_list: #ping the host to see if alive if pyPing.py_ping(host) != 0: print(host+" unavailable- skipping.") continue else: #Query Software Database and get software information software = SoftIDQuery.query_software_db(softid) software_id = software[0] software_name = software[1] software_version = software[2] ini_information = software[3] #build paths to media and destination unc_machine_share = makePaths.make_machine_path(host) software_source = makePaths.make_software_source(software_name, software_version) software_destination = makePaths.make_folder_destination(unc_machine_share, software_name, software_version) ini_file_source = makePaths.make_ini_source(unc_machine_share, software_name, software_version, ini_information) ini_file_destination = makePaths.make_ini_destination(unc_machine_share) machine_root = makePaths.make_machine_root_path(host) #Begin copy of media folder to machine
import SoftIDQuery software = input("Software Name: ") SoftIDQuery.search_soft_name(software)
import SoftIDQuery SoftIDQuery.print_all_software()