Cool Solutions

ZENworks Agent Downloader

ukdtom

By:

October 24, 2011 2:43 pm

Reads: 34

Comments:5

License:
freeware

Download zagntdwn

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.

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)


Categories: Uncategorized

Disclaimer: This content is not supported by Novell. 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 it thoroughly before using it in a production environment.

5 Comments

  1. By:warth

    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

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • By:ukdtom

      Never seen that before.

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

      /Tommy

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
    • By:bkeadle

      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/x86/PreAgentPkg_Agent.exe
      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)

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  2. By:barnney

    Hey Tommy

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

    / Stig (DLG)

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  3. By:barnney

    Hey Tommy

    Is there a parameter for running https.

    /Stig

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)

Comment

RSS