About TED Agents

TED agents are Java modules that are activated by either a distributor or a subscriber to either pack up or unpack distribution files. Currently, the following agents are available in ZENworks for Servers 3: the Desktop Application Agent, the HTTP Agent, the FTP Agent, the Software Package Agent, the Policy Package Agent, the RPM Agent, and the File Agent. The following sections discuss the agents and what they do for TED.

NOTE

After you have created a distribution and the agent has performed its gathering process, and then you change the agent used for the distribution (that is, you readminister the distribution object and change to a different agent type), unpredictable behavior may occur. This can impact the effect of versioning, which can lead to failures. You should, when changing to a different agent, go to the distributor's working directory and locate the subdirectory titled the same as the distribution, and then remove all time stamp subdirectories under this distribution directory. This causes the agent to perform a clean build of the distribution, ensuring that the distribution is complete and accurate for the new agent.


About the Desktop Application Agent

The ZENworks for Servers 3 Desktop Application agent enables you to distribute ZENworks for Desktops application objects through the TED channel. This is extremely useful because this effectively enables you to distribute desktop applications throughout your entire network, across tree boundaries, from a single source location.

NOTE

You must install ZENworks for Desktops application management and have at least one application object. The source files for the application object must reside on the distributor's local file system. The subscriber must have Novell's eDirectory installed on it to extract the application object and apply it. ZENworks for Servers 3 cannot extract a desktop application distribution, but they can route it to a NetWare or Windows server that can.


Use the Desktop Application Wizard to create a Desktop Application distribution. The wizard is started when you select Desktop Application from the Distribution Type drop-down list. The wizard first asks you to specify an application object that you want to distribute and then it asks you to set properties that determine how it is delivered.

After you have set up the application object through the wizard, the ZENworks for Servers distributor reads the object's properties in eDirectory and determines the location of the source files. Next it determines the associations with other application objects, application folder objects, chained applications, and containers. It packages the associations data into an XML file and packages it with the application object's source files, including the source files of any associated application objects, into a CPK file to be distributed though the TED channel.

When the package is distributed through the ZENworks for Servers channel, subscriber servers extracts the package, including the source files and XML data, and replicates the application object in their tree locations. The subscriber could be in a different location of the same tree or in an entirely different tree.

The following is a list of the properties that you need to define in the wizard to distribution Desktop Applications through TED:

  • Application Object. You must first specify a valid ZENworks for Desktops application object. After you have created the object, all associated objects are shown on the Type panel of the distribution object.

  • Maintain Source Tree Structure. Selecting this option duplicates the source tree's directory structure at the destination's location, which is the target subscribers' working context. This tree structure is then used to create the ZENworks for Desktops application objects. You must enable this option if you want to use chained applications.

  • Source Root Context. This field specifies a container object to be used as the root container for the ZENworks for Desktops application objects. The distributor records only directory data from that container and its subordinate containers; therefore, when the subscriber extracts the package it applies the application object to its working directory as if the container had actually been the root. You can select application objects from this root container and its subordinate containers.

  • Maintain Associations. Selecting this option maintains the group and container associations of the application object in its source tree by replicating the associated groups or containers at the target location if they do not exist. User and workstation associations in the source location are not replicated.

  • Load Balancing and Fault Tolerance. This setting enables you to specify whether to use automated load balancing, fault tolerance, or neither. If you select Load Balance, ZENworks automatically spreads the Desktop Application distributions of the servers being used. Fault tolerance is effectively automatically accomplished through load balancing because multiple servers are involved. If you specify Fault Tolerance, ZENworks allows a server currently being used for Desktop Application distributions to assume the distribution role of another server that has gone down, however. If you select None, then you can manually configure each application object for load balancing or fault tolerance.

NOTE

After you set the distribution type to Desktop Application, you cannot change it to another type.


WARNING

Do not edit Desktop Application distribution objects manually from the ConsoleOne main window. Always go through the wizards to make changes to these objects. The wizards make all changes necessary for the application distributions to work properly. Manually creating the application distributions can result in applications that are not properly added to the ZENworks distribution channel.


The HTTP Agent

The HTTP agent connects to the specified target and attempts to retrieve the specified file via the HTTP protocol. The construction of the destination path is the same as described in the file agent section. The only difference is when an Add File button is pressed, you are prompted for the URL that references the file that the agent should retrieve. Multiple different URLs can be added to the list. The HTTP agent cannot authenticate to the HTTP server. Also, it cannot get files over a secure (SSL) connection.

The FTP Agent

The FTP agent connects to an FTP server, transfers the specified files from that server into the distributor, and then collects these files into a single distribution file to be sent and extracted in the subscriber.

When you begin defining the files for the FTP agent, you must first specify a New FTP Source by pressing this button (see Figure 6.24). This prompts you for a server name, the login, and the password for this server to retrieve FTP files. Then, you continue to add destination folders as described in the section on file agents. When you attempt to add a file, ConsoleOne immediately attempts to connect to the FTP server and enables you to browse the FTP server, selecting the files that you want to gather at the designated time.

Figure 6.24. FTP Agent property page.

graphics/06fig24.jpg

By default, the FTP agent retrieves the files in ASCII mode. If you want to retrieve the files in binary mode, which is required when transferring any file that contains nontext characters, you need to select the Binary Transfer check box. You can specify binary mode only for the entire distribution, so if you need to get some binary files and some text files, you may need to use separate distributions. Using binary mode to transfer text files may corrupt the files if transferring from a Unix FTP server, so be sure to use ASCII mode when getting text files from UNIX servers.

The Server Software Package Agent

This agent is responsible for distributing Server Software packages, which are specific to ZENworks for Servers 3 policy management. In Figure 6.25, which shows the distribution object, you can identify the set of Server Software packages that you want included in the distribution. To construct a Server Software package, refer to the details described in Chapter 7, "Understanding and Creating Server Software Packages."

Figure 6.25. Server Software Package agent, distribution agent of a distribution object.

graphics/06fig25.jpg

NOTE

A subscriber that is receiving a distribution that is a server software package must have the ZENworks for Servers 3 Policy and Package agent installed and running (ZFS.NCF). This agent assists in the extraction and installation of these packages.


To add software packages to the distribution, click the Add button and browse to select the .cpk file. After several packages are selected, you can specify the order in which the software packages are to be applied to the subscriber server. You can specify the order by selecting the package and clicking the Up or Down button. To remove packages, select the package and click the Delete button.

Discussing the Policy Package Agent

ZENworks for Servers 3 adds a new distribution type, Policy Package, which enables you to specify policy packages to be distributed directly to the individual servers where the policies will be enforced. Previously in ZfS 2, you associated a Policy Package object with eDirectory Server objects and/or Container objects so that the policy could be effective for the servers.

The policy package agent enables you to specify which servers are to have a given policy enforced by simply creating a distribution for that policy and distributing it to the selected servers. After a target server has extracted the distribution, the policies contained in the distribution are enforced on that server according to the subscriber's distribution schedule.

To create a policy package distribution, simply select Policy Package from the list of distribution types and then click the Add button to navigate through the NDS tree and select policy packages that you want enforced on the subscriber servers in the distribution channel.

Discussing the RPM Agent

Another new distribution type that has been added to ZENworks for Servers 3 is the RPM type. The RPM agent enables you use TED to distribute packages to a Unix platform. This allows any Red Hat Package Manager (RPM) packages you have created to be added to a distribution channel and distributed to your Linux or Solaris servers. Although RPM is not native to all Linux implementations, it is the most commonly used package manager for enterprise environments.

To create an RPM distribution for your RPM package, select RPM from the list of distribution types to bring up the RMP Agent panel. From this screen click the Add from Distributor button to add a RPM package that is located on the distributor's file system, or you can click the Add from FTP Site button to log in to an FTP server and select an RPM package that is located on it.

Discussing the File Agent

This agent enables you to select any file on the distributor file system and place it in a defined directory on the subscriber system. The directories that are specified do not have to exist on the target server; they will be created at extraction time. Figure 6.26 shows a distribution that uses the File agent.

Figure 6.26. File agent, distribution agent of a distribution object.

graphics/06fig26.jpg

You begin identifying the target set of files to include in the distribution by clicking the New Target button. This creates a root node displayed on the left panel. Traditionally, this represents the destination volume for the files. ConsoleOne initially places the string %DEST_VOLUME% in this field. You can change the string by selecting the text and clicking the left mouse button. The field clears and you can enter any text string you want, including hard-coded volume names (on the target subscribers) or variable names (don't forget the surrounding percent signs).

You then construct a tree of the file system as you would like it created on the target subscriber. You can add subdirectories by highlighting a directory in the tree and clicking the Add Folder button. You can then highlight the folder name and click the left mouse button to edit the name of the folder (initially it is set as the string "New Folder").

When you want to send a file to the destination subscriber, you first highlight the folder that is the file's parent on the destination subscriber and click the Add File button. This brings up a Browser dialog box, enabling you to browse through the file system of the distributor to the volume you desire and then down into the volume file system. Continue browsing until you find the file you want. Select the file by double-clicking the filename, or by selecting the file and clicking the OK button on the dialog box. The full pathname of the file (as found on the distributor) is displayed as the name of the file in the tree. The actual name of the file when it is transmitted and extracted from the distribution is the file's base name (the filename without any directories), and the file is located under the directories and subdirectories that you have specified in the tree design in the left panel.

Continue to follow the preceding steps until you have all the desired files selected and placed in the desired locations on the target subscriber. Should you need to delete a file or directory, simply select the item and click the Delete button. The file and/or the directory and all subdirectories are removed from the tree display and are not included in the distribution.

The following configuration flags can be placed on the distribution and apply only when the extraction process is occurring on the subscriber:

  • Synchronize Directories. This flag forces the distribution to synchronize the directories specified in the file agent. If this option is set then only the files that are specified in the agent are allowed to exist in the directories specified. This is extremely useful if you need to replicate exact directory structures throughout your network.

  • Verify Distributions. This flag enables the distributor to force the subscriber to extract the current version of the distribution, even if it has already been extracted. This enables the subscriber to refresh the files that were contained in the current version, eliminating any changes that may have occurred since the original distribution occurred.

  • Maintain Trustees. This flag instructs the subscriber to maintain file ownership and trustee data in the files.

  • Retry X times. This flag instructs the agent to attempt to write the file the specified number of times. If the write fails because the file is open, for example the agent repeats the attempts the specified number of times before failing.

  • Kill conn on open files. This flag enables the process to drop the connections to the subscriber server for the connection that has the file open, preventing the agent from writing the file. This terminates the session for the user that is currently using the file and he will have to log in to the server again.

  • Fail on Error. This terminates the extraction should a failure occur in writing the files.

    NOTE

    The system does not roll back any files that have been installed at the point of failure.


  • Continue on Error. This causes the agent to skip the file, logging the error if specified, and continue to extract the other files in the distribution.

These options are for the entire distribution and are not specified on a per-file basis.

NOTE

ZENworks for Servers 3 creates the directory structure first and applies the attributes to the directories before copying files. Therefore, if you flag a directory that is to be distributed with the read-only flag, the distribution fails because it cannot copy files to a read-only directory.


The File Agent does not create a new distribution file in its entirety. If there is a previous distribution available, the agent performs a "file-wise" delta where only changed files are included in the new distribution. When the number of revisions reaches the administered maximum number of revisions, the agent removes all previously created versions and creates a completely new "baseline" of the distribution, which consists of all the files specified in the distribution. This is important because each subscriber must extract the various revisions of the distribution in order. If a new subscriber is brought online after the distributor has created eight revisions of a file agent distribution, it needs to send all eight revisions to the subscriber to bring it up to the latest revision. The good thing about this process is that the delta revisions are usually much smaller than the entire (baseline) distribution files. Other agents do not behave this way. The other agents either send the entire distribution file each time, or send a "bit-wise" patch file. With these patching agents, the patch is calculated for and applied directly to the previous revision of the distribution to create a new complete revision of the distribution. When a new subscriber is brought online after the distributor has created eight revisions of a patching distribution, it needs to send only one patch file to the subscriber, which will essentially be the entire distribution.



Novell's ZENworks for Servers 3. Administrator's Handbook
Novell's ZENworks for Servers 3. Administrator's Handbook
ISBN: 789729865
EAN: N/A
Year: 2003
Pages: 137

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net