The System Variables page lets you define variables that can be used to replace paths, names, and so forth as you enter data in various ZENworks Control Center fields. System variables defined on this page can be used on all objects in your ZENworks Management Zone.
System variables can be overridden at the device or folder level. If you add the same system variable to a device or folder, but give it a different value, the new variable value overrides the inherited system variable value. A variable on the device level overrides the same variable on the folder level, which overrides the same variable on the system level.
The following sections provide additional information:
To provide a variable at the device level:
In ZENworks Control Center, click the
tab.Navigate to and click the desired device, click the
tab.Click
, then click .To add a system variable, click
, then fill in the and fields.When specifying the variable in an object's field, use the following syntax:
${VAR_NAME}
Click
.Click the icon for additional help
To provide a variable at the folder level: from the ZENworks Control Center, click the
tab, click the ( ) link next to the desired folder, click the tab, then click . Click the icon for additional help.In ZENworks Control Center, click the
tab.Click the (
) link next to the desired folder, click the tab, then click , then click .To add a system variable, click
, then fill in the and fields.When specifying the variable in an object's field, use the following syntax:
${VAR_NAME}
Click
.Click the icon for additional help
To set system variables for your ZENworks system:
In the ZENworks Control Center, click the
tab.Click
.To add a system variable, click
, then fill in the and fields.When specifying the variable in an object's field, use the following syntax:
${VAR_NAME}
Click
.In this scenario, you have a SLES 9 and a SLES 10 managed device. Both devices have a common file, deviceid. On SLES 9, the file is located at /etc/opt/novell/zenworks/zmd, and on SLES 10 it is located at /etc/zmd. Assume that you want to place a copy of deviceid in the /tmp directory on both devices by using the Remote Execute policy. Instead of creating two Remote Execute policies, one each for the SLES 9 and SLES 10 managed device, you can create one policy by using system variables.
Perform the following tasks in the order listed:
In ZENworks Control Center, click the
tab.Click
.From the list of servers, click the SLES 9 managed device, then click the
tab.Click
, then click .In the System Variables panel, click
, then fill in the following details:Name: source_path
Value: /etc/opt/novell/zenworks/zmd
Click
.Click
, then click .In ZENworks Control Center, click the
tab.Click
.In the list of servers, click the SLES 9 managed device, then click the
tab.Click
, then click .In the System Variables panel, click
, then fill in the following details:Name: source_path
Value: /etc/zmd
Click
.Click
, then click .In ZENworks Control Center, click the
tab.In the
list, click , then click to display the Create New Policy page.In the
list, click , then click to display the Policy Name page.Fill in the Policy Name, Folder, and Description fields. For more information, see Step 4 in Section 16.6, Remote Execute Policy.
Click
.In the Remote Execute Policy page, configure the following settings:
Executable Type: Select
.Maximum waiting time: Select
.Executable file name: /bin/cp.
Executable file parameters: ${source_path}/deviceid /tmp.
Click
to display the Summary page.Review the information.
Click
to display the Policy Assignment page, then assign the policy to SLES 9 and SLES 10 devicesClick
to display the Policy Schedule page, then select the schedule to apply to the assignments.Click Step 12 in Section 16.6, Remote Execute Policy.
to display the Policy Groups page. For more information, seeClick
to display the Finish page.Click
.After the policy is applied on the managed devices, a copy of deviceid is created in the /tmp directory.