Upload manager help

(imported comment written by SystemAdmin)

Here is how we set up our upload jobs (maybe this will help???):

We run a four step process daily. The first two are on the clients, the last two are on the server.

  1. Dump whatever logs/files into a common location locally. We also create a file called computername.txt into which is echoed the computer name. This becomes important later.

  2. Upload parameters are set and the actual upload occurs from the client.

Delete __appendfile

Appendfile {computer name}

Delete c:\computername.txt

Copy __appendfile c:\computername.txt

setting “_BESClient_ArchiveManager_FileSet-Name”=“c:\computername.txt” on “{now}” for client

setting “_BESClient_ArchiveManager_OperatingMode”=“2” on “{now}” for client

setting “_BESClient_ArchiveManager_SendAll”=“1” on “{now}” for client

setting “_BESClient_ArchiveManager_MaxArchiveSize”=“45000000” on “{now}” for client

<add various file sets …>

archive now

  1. On the server, we have a folder structure for all of the various types of data being uploaded. The previous contents are cleared. Then a batch file is dynamically built each day that basically xcopies files based on naming convention or file type into the respective folder structure location. This is the tricky part to get correct. It is also where the computername.txt file comes into play. It works particularly well if a strict naming convention is adhered to.

Appendfile {(“xcopy %22” & item 0 of it & “file_convention.log%22 %22d:\destination_folder_structure%22 /E /C /I /Y%0d%0a” ) of ((pathnames of it, lines 1 of files “Name_0_computername.txt” of it as string) of folders of folders of it ) of folders “e:\BigFix Enterprise\BES Server\UploadManagerData\BufferDir\sha1” whose (exists file “name_0_computername.txt” of folders of folders of it)}

Repeat lines like this as necessary substituting file conventions and folder structures as needed. Then execute the batch.

  1. Clear the upload manager folder structure (under the SHA1 folder) to prepare for tomorrow’s files. Sometimes we also automate compressing the uploaded files into an archive, then ftping them to their final destination.

For you, step five would be to recurse the extracted folder structure and send out e-mails.

We have successfully used this formula for years to move hundreds of thousands and GBs of files. Hopefully you can adapt it to do the e-mails that you need.