modify_collection_schedule
Modifies the collection schedule of a collection setup for metrics and policies for the specified set of targets. Combining all the metrics, running a script, and collecting the data is referred to as a collection. The collection has various attributes associated with it, such as the collection schedule, upload frequency, and so forth.
Format
emcli modify_collection_schedule
-targetType=ttype
-targetNames=tname1;tname2;tname3...
-collectionName=collname
[-collectionStatus=Enabled or Disabled]
[-freqType={Minute}{Hour}{Day}{Week}{Weekly}{Month}]
[-freqValue=value]
[-preview=Y or N]
[ ] indicates that the parameter is optionalNote:
All of the parameters and choices are case-insensitiveOptions
-
targetType
You must specify a single target type value, and it should be the same as specified in the repository.
Note:
Only individual target types are currently supported.
-
targetNames
The target name should be the same as exists in the repository. All of the targets should be the same target type you specified in the targetType parameter. Use a semicolon ( ; ) to separate the names. Changes to the collection schedule will be executed for only valid target name and target type combinations. For example:
host1;host2;host3
-
collectionName
The exact collection name in the repository or the corresponding collections XML file.
-
collectionStatus
Enables or disables collection; it defaults to Enabled. When set to Disabled, freqType and freqValue are ignored.
-
freqType
The collection interval type. If specified, freqValue is also required.
-
freqValue
The interval value, such as an integer for Minute, Hour, Day, or Week; weekday names for Weekly; or dates and Last for Month.
-
preview
Defaults to Y, which previews the changes. Set it to N to apply the changes to the repository and Management Agent.
Example
emcli modify_collection_schedule -targetType="oracle_database" -targetNames="target_name1;target_name2" -collectionName="DBService" -collectionStatus="Disabled" -preview="N"