Previous page Next page

medic set

Sets or clears a Medic parameter.

Syntax
medic set [<slot> | all] <service> <parameter> <value>
 
no medic set [<slot> | all] <service> <parameter>
 
Arguments
Prerequisites

Must be in configuration mode (config), which requires privileged-level access.

Occurrence

Available for use multiple times in the configuration.

Description

The no form of the command resets the specified parameter to its default value.

If slot is specified, the values will apply only to the module that occupies that slot number.

If the keyword all is specified, the values will apply to each module in CNA.

If neither slot nor the keyword all is specified, the values will apply to the management module.

See Table 4:  System services, routines, and parameters in the section Medic Services of Chapter 1: Introduction to the Command Line Interface for names of services and parameters, and default values.

Parameters that establish minimums for ranges can be set between -1 and the range’s current maximum.

Parameters that establish maximums can be set between the range’s current minimum and 101.

For example, the default range for the CPU resource on the management module is 50 through 80%.

That means you can reset the max-pcpu parameter on the management module to a value in the range 50 through 101, and the min-pcpu parameter can be set to a value of -1 through 80.

Once you change either of these values, the allowable range for the other parameter will change accordingly. If you attempt to set a value outside of its allowed range, an error message will inform you of the correct range.

Since these parameters represent percentages, the actual maximum range of each is 0 through 100%. However, the allowable range is -1 through 101.

If you never want an alarm to be triggered, set the maximum value to 101. Resource usage cannot exceed 100 percent; the maximum will never be reached and the alarm will never be set off.

And, if you never want the alarm trigger to be reset, set the minimum value to –1. Resource usage cannot be less than 0; the minimum will never be reached and the alarm will never be reset.


Previous page Next page