Tool

ukdtom's picture
tool
Reads:

25209

Score:
2.875
2.9
8
 
Comments:

5

ZENworks Agent Downloader

Author Info

24 October 2011 - 1:43pm
Submitted by: ukdtom

(View Disclaimer)

license: 
freeware

What is this

This small tool will give you the following advantages:

  • No need to unregister from the zone, before resealing the workstation
  • No more messing around with various ZAC commands
  • Your workstations will always have the latest version of the agent, that your infrastructure supports, when reinstalled

Requirements

The tool require that .Net is included with the base image, since the tool will not download the complete version of the agent, since that is a huge little bugger, due to the .Net runtime.

How it works

When launched, it will do the following:

  • Detect the version of the OS
  • Detect the architecture of the processor (32 or 64 bit)
  • Detect, if you want to download and install the client, or simply just download it
  • Detect, if you want to use the standalone or the network based version
  • Detect if you specified a specific download path, and if not, the current users temp directory (%TEMP%) will be used
  • Detect, if you want to reboot after installing the agent. (Default is not to reboot)
  • Contact a list of ZCM servers or satellites that you select, and download the ZCM agent.
  • The first server on the list that responds, it will use
  • The list can contain from 1 to 5 servers

Regardless of what agent is downloaded, it will be named PreAgentPkg_Agent.exe

Note that the user running this tool must be a local administrator on the workstation.

Parameters

Simply launch the tool without any parameters to see the list of parameters.

Have fun, and remember.......

This is a free tool, and as such, no support or claims can be made here.....Use at your own risk.

/Tommy, IT Quality – Denmark

See you on Novell Forums.

AttachmentSize
zagntdwn.zip242.18 KB

Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

warth's picture

No Agent found to install

Submitted by warth on 28 October 2011 - 1:05am.

Nice work, thanks, but unfortunately this dosn't work for me.
The download is fine but the installation doesn't start.

Last line in Logfile: No Agent found to install.....Exiting

ukdtom's picture

Strange

Submitted by ukdtom on 30 October 2011 - 1:53pm.

Never seen that before.

Please email me the log-file to tm@REMoVe_ThISorstrand.dk

/Tommy

bkeadle's picture

Me too

Submitted by bkeadle on 22 December 2011 - 8:41am.

Below is my log. Testing on Windows 7 workstation:
12/20/2011 9:55:19 AM *****************************************************
12/20/2011 9:55:19 AM Starting to Debug on 12/20/2011 9:55:19 AM
12/20/2011 9:55:19 AM Application : ITQ ZCM Agent Downloader and Installer
12/20/2011 9:55:19 AM Version of App is : 1.0.0.2
12/20/2011 9:55:19 AM *****************************************************

12/20/2011 9:55:19 AM Searching for parameter named : DownPath
12/20/2011 9:55:19 AM TargetDir is now :
12/20/2011 9:55:19 AM Usr Temp Dir is : C:\Users\PPDUser\AppData\Local\Temp\
12/20/2011 9:55:19 AM Targetfile is named : C:\Users\PPDUser\AppData\Local\Temp\\PreAgentPkg_Agent.exe
12/20/2011 9:55:19 AM Starting GetParam and searching for parameter named : /ZCMServer1:
12/20/2011 9:55:19 AM Found parameter named : ppdwsus.ppd.net
12/20/2011 9:55:19 AM Ending GetParam
12/20/2011 9:55:19 AM Download URL is : http://ppdwsus.ppd.net/zenworks-downloads/setup/x8...
12/20/2011 9:55:23 AM Downloaded okay as : C:\Users\PPDUser\AppData\Local\Temp\\PreAgentPkg_Agent.exe
12/20/2011 9:55:23 AM Starting to check if install is req, or download only?
12/20/2011 9:55:23 AM Starting to install the file named : C:\Users\PPDUser\AppData\Local\Temp\\PreAgentPkg_Agent.exe
12/20/2011 9:55:23 AM Usr Temp Dir is : C:\Users\PPDUser\AppData\Local\Temp\
12/20/2011 9:55:23 AM Now waiting for ZENPreAgent.exe to finish
12/20/2011 9:55:23 AM Starting GetParam and searching for parameter named : /Reboot
12/20/2011 9:55:23 AM Ending GetParam
12/20/2011 9:55:23 AM All ending....Now terminating ITQ ZCM Agent Downloader and Installer
12/20/2011 9:55:23 AM No Agent found to install.....Exiting

-= RESOLVED =-
This ended up being a UAC issue. Once UAC is disabled, the process works as expected. This was evident after having manually launched the PreAgentPkg_Agent.exe and being prompted with the UAC dialog.

I used a script wrapper for launching ZAgntDwn.exe so that UAC didn't have to be disabled:

start ZAgntDwn.exe /debug /ZCMServer1:ppdwsus.ppd.net
appwait EXE=ZAgntDwn.exe CLOSE QUIET
tail ZAgntDwn.exe.log -1 | find /c "No Agent found to install.....Exiting" >nul
if errorlevel 1 goto :CLEANUP

if EXIST ..\PreAgentPkg_Agent.exe START "" /wait ..\PreAgentPkg_Agent.exe

(NOTE: appwait.exe is my own utility for waiting for a process to end, and tail.exe is an external utility)

barnney's picture

Secure

Submitted by barnney on 13 January 2012 - 1:14am.

Hey Tommy

We run secure server https, is there any way to set this in the parameters ?

/ Stig (DLG)

barnney's picture

Secure

Submitted by barnney on 13 January 2012 - 2:56am.

Hey Tommy

Is there a parameter for running https.

/Stig

© 2013 Novell