Setting Up Variables for Use With the Server Software Package

Before you create the software package, you must set up the variables in your Subscriber objects' properties if you will be using variables in paths (for instance, if your target servers have different operating systems, like NetWare and Windows).

  1. Identify the directories to be deleted:

    1. Identify the root of the path, such as its volume name (NetWare), drive letter (Windows), or /usr (for Linux and Solaris). For example, DATA:.

    2. Identify the rest of the path, including the parent directory to the directories to be deleted, such as ZENWORKS\PDS\TED\DIST where DIST is the parent directory.

    3. Identify the directories to be deleted, such as OldDist.TED.ZfS3.Novell.

    The resulting full path and directory to be deleted would be:

    DATA:\ZENWORKS\PDS\TED\DIST\OldDist.TED.ZfS3.Novell

    You might have varying path elements from server to server. You should use variables as necessary to allow for those differences (see Step 2 and Step 3).

  2. In ConsoleOne, create a variable to represent DATA:, D:, or /usr for each Subscriber where the directories to be deleted reside, such as DELETEDDIRROOT.

    If you name a directory to be deleted that does not exist on a target server, nothing will be done for that directory on that server.

    You can also define variables globally using the Tiered Electronic Distribution policy, where you would define the default value for a variable and allow the exceptions to be defined in the applicable Subscriber objects' properties.

  3. In ConsoleOne, create a Subscriber variable to represent where any path elements are different.

    If you have an extra directory between the root of the drive on your Windows servers (such as ZFS3), you will need to create a variable on all of your target Subscriber servers for that part of the path. For example, if your Windows servers have ZFS3\ZENWORKS at the root of the D: drive, and your NetWare servers have only ZENWORKS at the root of the DATA: volume, create a variable (such as %TARGET%) to represent ZFS3\ZENWORKS on your Windows Subscribers and ZENWORKS on your NetWare Subscribers.

  4. Repeat Step 2 and Step 3 as necessary.