13.18 LRReadParameters

Use this Knowledge Script to view local repository (LR) configuration information on a managed client computer. You can specify the LR parameter or parameters you want to view, or view all parameters. This script raises an event each time you run the job, and the event details display the name and value of each parameter.

LR information consists of parameter values that are stored in the local repository. You can use this script in conjunction with AppManager *_Config* scripts (for example, General_ConfigMachineDown, NT_ConfigServiceDown) to read the configuration information written in the local repository by the *_Config* scripts.

LR information can be stored in the local repository by using the LRWriteParameters Knowledge Script.

13.18.1 Resource Objects

Windows 2003 Server or later

13.18.2 Default Schedule

The default interval for this script is Run once.

13.18.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Event Notification

Raise event if LR configuration retrieved successfully?

Select Yes to raise an event if the script is successful in accessing the local repository and reading the parameter values. The default is Yes.

Event severity when LR configuration retrieved successfully

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 15 (yellow event indicator).

Event severity when job fails

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 5 (red event indicator).

This script raises an event for unexpected script errors. For example, if a script aborts before the job starts or during the job, an event is raised.

Administration

Retrieve all LR parameters?

Select Yes to retrieve all LR information in the AppManager agent’s local repository. The default is Yes.

If you deselect this check box, you must specify the name of the parameter or parameters you want to retrieve. For example, if there are two parameters in the local repository, name and location, to read the value for location, specify location in any of the Parameter# parameters.

This script can read the value of up to 20 specified parameters each time you run the script.

Parameter 1 ... 20

Specify the name of the parameter or parameters you want to retrieve. Enter the parameter name without quotes. For example, if there are two parameters in the local repository, name and location, to read the value for location, specify location in any of the Parameter# parameters. If you deselect the Retrieve all LR parameters?, you must specify the parameter names.

This script can read the value of up to 20 specified parameters each time you run the script.