Parameter definitions

The ParameterDefinitions statement defines the parameters that are used in the script.

When you create an agent, you must specify values for each parameter that does not have a default value. If a parameter has a default value, you can use the default value or specify a different value.

When you write a script, Hewlett Packard Enterprise recommends that you create parameters for any user-configurable option in the script.

If the script has no parameters, omit the ParameterDefinitions statement.

The following example of a ParameterDefinitions statement defines one parameter: threshold. The threshold parameter is an integer and has a default value 90.

ParameterDefinitions = {
    'threshold': {
        'Name': 'Critical CPU Threshold value in percentage',
        'Description': 'When System CPU utilization exceeds this value, '
                        'set the policy status to Critical and the policy will log '
                        'system daemon CPU utilization details and CPU queue statistics in syslog.',
        'Type': 'integer',
        'Default': 90
    }
}