CLI options to update Data Collection Settings
2010-12-20 03:03 PM
I'd like to script the setting for Data Collection for all counters. In the GUI, it's one-by-one. Any way to select multiple counters in the GUI or commands via CLI?
1 REPLY 1
Re: CLI options to update Data Collection Settings
2010-12-21 01:16 AM
Yes you must be able to use mullti select in NMC UI .Also after setting up this for one host you can copy the data collection template, and apply it for multiple host.
Below are the cli for doing the same.
D:\>dfm perf data describe help
describe -- Describe a counter group
dfm perf data describe [-v] <counter-group-name> <host-name-or-id>
Describe the details of the counter groups like file name, instances,
storage space details etc.
If -v flag is specified, verbose information is displayed. It includes
counters, object instances details for which data is being collected.
D:\>dfm perf data modify help
modify -- Modify the interval and collection details for a counter group
dfm perf data modify [ -f ] -G <counter-group-name> [ -o <host-name-or-id> ]
[ -s <sample-rate> ] [ -r <retention-period> ]
Modify the interval and retention details for a counter group.
Specify a positive number, optionally followed by a time period
suffix to indicate seconds, minutes, hours, days, or weeks.
The default time period suffix is seconds.
'host-name-or-id' is mandatory for default counter groups.
Use -f option to force the change of sample rate and
retention period when the number of records for
the view decreases.