Change System Collector Attributes (QYPSCSCA, QypsChgSysCollectorAttributes) API


  Required Parameter Group:



  Default Public Authority: *USE

  Service program: QYPSCOLL

  Threadsafe: No

The Change System Collector Attributes (QYPSCSCA, QypsChgSysCollectorAttributes) API changes system or global collection attributes for collection services. Attributes consist of the default collection interval, the library used to store the collection data, the retention period for the data, the time the initial cycle is to occur, the interval between cycles, whether a companion job is to be started, and the default collector definition. If appropriate, system collector attributes changed while a collector is running will take effect immediately.


Authorities and Locks

API Public Authority
*EXCLUDE
Job Authority
*JOBCTL
Library Authority
*EXECUTE

Required Parameter Group

Collector name
INPUT; CHAR(10)

The name of the collector whose default values are to be altered. The special value is:


Default collection interval
INPUT; BINARY(4)

The default interval to use when collecting data for a category in seconds. This may be specified as 15, 30, 60, 300, 900, 1800, or 3600 seconds. Changes take effect immediately. The following special values are allowed:


Library
INPUT; CHAR(10)

The name of the library used to store the collection data. Changes take effect when the collector starts or cycles. The following special values are allowed:


Retention period
INPUT; BINARY(4)

The retention period is used to determine how long collection data is to exist. Collection data older than the retention period is deleted.

Collection Services stores this data in Management Collection (*MGTCOL) Objects with the *PFR attribute. This retention period is used to calculate an expiration date for the object. Expired objects will be automatically deleted by the Collection Services server job (QYPSPFRCOL) the next time a collection is started or cycled. Collection objects are deleted only when they exist in the system's configured collection library.

The retention period is specified in hours. Changes take effect immediately. The value specified must be between 1 and 720 hours, or one of the following special values:


Cycle time
INPUT; BINARY(4)

The time at which the first cycle is to occur. The cycle time is specified in minutes past midnight. The maximum allowed value is 1439 minutes, which is one minute less than 24 hours. Changes take effect immediately. The following special value is allowed:


Cycle interval
INPUT; BINARY(4)

The lapse time between cycles. The cycle time is specified in hours, and can range from a minimum value of one hour to a maximum value of 24 hours. Changes take effect immediately. The following special value is allowed:


Companion user job flag
INPUT; BINARY(4)

Whether to start a job to run in concert with the collector. Changes take effect when the collector is started. The possible special values are:


Default collector definition
INPUT; CHAR(10)

The name of the collector definition to run. Changes take effect when the collector is started or cycled. The possible special values are:

*CURRENT
*CUSTOM
*MINIMUM
*ENHCPCPLN
*SAME
*STANDARD
*STANDARDP

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages



API introduced: V4R4

[ Back to top | Performance Management APIs | APIs by category ]