Subscribe

CLI options to update Data Collection Settings

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?

Thanks

Re: CLI options to update Data Collection Settings

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

NAME
    describe -- Describe a counter group


SYNOPSIS
    dfm perf data describe [-v] <counter-group-name> <host-name-or-id>


DESCRIPTION
    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:\>

D:\>dfm perf data modify  help

NAME
    modify -- Modify the interval and collection details for a counter group


SYNOPSIS
    dfm perf data modify [ -f ] -G <counter-group-name> [ -o <host-name-or-id> ]

                [ -s <sample-rate> ] [ -r <retention-period> ]


DESCRIPTION
    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.


D:\>

Regards

adai