Workspace Streaming

 View Only

Automated Command Line Package Upload 

Apr 08, 2010 05:18 PM

Here is another tip that everyone will hopefully find useful. If I had to come up with a list of words that describe what Virtualization and Streaming are about, one of those words would be, simplify. So it makes me feel really good knowing that the product itself tries to provide a very simple way to use it. After all, how much do we enjoy using a product that promises to make our lives easier, but ends up making them more difficult because it’s too complicated to get things done? With that I’d like to show you a way to automate the process of uploading your packages. In fact, this not only automates it, but it actually provides a performance improvement during the upload process.

Before you begin, you should verify that you have all your package .zip files stored on a resource that is accessible over the network. Let’s call this the package repository. Ok, so it’s not 100% automated, but until we release a product that can read natural language, we’ll have to make sure that the packages are available and the text file containing the path to each is updated.

Step 1

  • Create a file called packageUpload.bat in the following location on the BackEnd server
C:\Program Files\Symantec\Endpoint Virtulization\Workspace Streaming\Server\Common\bin

Contents of packageUpload.bat

-      Copy/Paste the following into and save packageUpload.bat
-      There is no specific requirement for naming this file. I used a name that is easily descriptive of the functionality.

@echo off

@echo Start upload %time%

Runclient –port 9855 –host %1 < %2

@echo upload complete %time%

About the script

The Runclient command will use the host name or IP to connect to the BackEnd over port 9855 and upload the list of packages supplied in the packages.txt file.

Port 9855 is the port utilized by the streaming agent which is installed on every component and is used for various communications between components.

Step 2

  • Create a package.txt file in the following location on the BackEnd server
    C:\Program Files\Symantec\Endpoint Virtulization\Workspace Streaming\Server\Common\bin

Package Repository

Map a network drive to the location where your package .zip files are stored.

Packages.txt

Each line in the packages.txt file should follow this format, [upload “path to the zip file], without the brackets.

Example:

upload “Z:\packages\my package to upload.zip”

Step 3

  • Open the command prompt and browse to
    C:\Program Files\Symantec\Endpoint Virtulization\Workspace Streaming\Server\Common\bin
  • Run the script
    • packageUpload [IP or HostName of the backend] packages.txt
      • Without the brackets
    • Press enter, and it will start uploading the packages.

You will see information on the screen showing the upload progress. It will notify you when it’s completed.

Example

packageUpload 192.168.1.100 packages.txt  

Or

packageUpload HostName packages.txt

Note: Be sure not to include two versions of the same package in the package.txt file at the same time.

That’s all there is to it. Now you can use this method to expedite your package provisioning time.

Statistics
0 Favorited
1 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Feb 27, 2012 02:10 PM

Excellent and simple article and this defintely helped to serve workarounds during some critical times.

Related Entries and Links

No Related Resource entered.