Active IQ Unified Manager Discussions

Operations Manager - specify time period for a report at cli

dominicb
2,395 Views

I'm using the following command in a batch file to extract data into a csv from ops manager.

dfm report view -F csv volumes-nas-performance-summary > c:\reports\nasperf.csv

This outputs the data from the last time it was collected.

I would like to know how to specify a time period of 1 month for this report.

This is possible from the GUI but I need it automated in a script, just can't see how to do it from cli?

Thanks

Dominic

1 REPLY 1

dominicb
2,395 Views

I found the answer in another thread:

http://communities.netapp.com/thread/5855?tstart=0

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.

# dfm report view help

NAME

view -- Generate one of several reports

SYNOPSIS

dfm report view [ (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.

Public