Exemplo n.º 1
0
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,
Exemplo n.º 2
0
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
Exemplo n.º 3
0
import SoftIDQuery

software = input("Software Name: ")
SoftIDQuery.search_soft_name(software)
Exemplo n.º 4
0
import SoftIDQuery

SoftIDQuery.print_all_software()