Active IQ Unified Manager Discussions

DFM command line report question ...

seno
4,964 Views

Hi,

If I run:

dfm report view -g4481 -s"Total Ops/Sec" volumes-performance-summary

I get the most recent sampling of performance data for the volums in that group id.

Anyone know what I can add to this command to get data for the entire day, week, 3 month or year?

1 ACCEPTED SOLUTION

dominicb
4,964 Views

Hi there,

Took a little while but I found the answer, there is a -P switch that got missed from the cli help, see below.

For example I used: dfm report view -P 1m disks-performance-summary

In cli there is an options to do this.

The option is -P but some how this got missed in the cli help and man pages.

This is fixed in one of the upcoming release(cli help and man pages)

But still the option works in 3.7 and 3.8 releases of DFM.

Below is the option name and its possible values.

-P time frame signifies the period to fetch performance data.
           Valid values are 'last, 1d, 1w, 1m, 3m and 1y'. This option
           is valid only in conjunction with performance reports.

Below is the help of the fixed cli.

NAME
    view -- Generate one of several reports

SYNOPSIS
    dfm report view [ <options> ] <report-name> [ <report-arguments> ... ]

DESCRIPTION
    The report command runs one of several pre-defined searches
    and presents the results.

    Use 'dfm report list' to get the list of reports.
    Use 'dfm report view <report-name> help' to see
    the description of a report.

    The options are
        -g <group-id or group-name>
        -F <output-format>
        -l <lines>
        -q (quiet)
        -s <sortby-field>
        -x (show all fields; only in perl output format)
        -N <repeat-for>
        -i <repeat-interval>
        -t <timeout> (in seconds; for streaming reports)
        -H show deleted objects
        -P time frame signifies the period to fetch performance data.
           Valid values are 'last, 1d, 1w, 1m, 3m and 1y'. This option
           is valid only in conjunction with performance reports.

View solution in original post

5 REPLIES 5

dominicb
4,964 Views

If it was a graph you could suffix -1w to the report name (e.g. "dfm graph -F gif cpu-1w > c:\temp\cpugraph.gif") and it would show you a week's worth. Not sure if that will work for a report, give it a try.

Other suffixes are -1d, -1m, -3m, -1y

seno
4,964 Views

Yeah, I tried that too. Doesn't work.

dominicb
4,965 Views

Hi there,

Took a little while but I found the answer, there is a -P switch that got missed from the cli help, see below.

For example I used: dfm report view -P 1m disks-performance-summary

In cli there is an options to do this.

The option is -P but some how this got missed in the cli help and man pages.

This is fixed in one of the upcoming release(cli help and man pages)

But still the option works in 3.7 and 3.8 releases of DFM.

Below is the option name and its possible values.

-P time frame signifies the period to fetch performance data.
           Valid values are 'last, 1d, 1w, 1m, 3m and 1y'. This option
           is valid only in conjunction with performance reports.

Below is the help of the fixed cli.

NAME
    view -- Generate one of several reports

SYNOPSIS
    dfm report view [ <options> ] <report-name> [ <report-arguments> ... ]

DESCRIPTION
    The report command runs one of several pre-defined searches
    and presents the results.

    Use 'dfm report list' to get the list of reports.
    Use 'dfm report view <report-name> help' to see
    the description of a report.

    The options are
        -g <group-id or group-name>
        -F <output-format>
        -l <lines>
        -q (quiet)
        -s <sortby-field>
        -x (show all fields; only in perl output format)
        -N <repeat-for>
        -i <repeat-interval>
        -t <timeout> (in seconds; for streaming reports)
        -H show deleted objects
        -P time frame signifies the period to fetch performance data.
           Valid values are 'last, 1d, 1w, 1m, 3m and 1y'. This option
           is valid only in conjunction with performance reports.

seno
4,964 Views

Awesome! That does exactly what I needed. Thanks so much Dominic!

pd_vanhelden
4,964 Views

Hi,

I also used the -P option to define a months worth of datacollection. But the output I receive, is that a maximum value for the entire month or an average?

Cheers,

P

Public