Subscribe

DFM - how to get report/graph for volume space used for last year

Using Netapp Operations Manager 4.0.0.6953 on Windows Server 2003

I am trying to get a graph / report of the volume space availability over the entire year of 2011 and am having a hard time trying to do that.

Where do you specify the date range when trying to pull up a custom report?

thanks very much

Re: DFM - how to get report/graph for volume space used for last year

Hi,

     The report are all point in time and show the last sample value. If you like to see the space used for last year use the graph and use the custom date ranges like 1d,1w,1m etc.

If you want to use a specific data range use the dfm graph cli and specify the date. If you need more help pls take a look at this doc.

Storage Capacity Management using OnCommand Operations Manager

If you want to know a list of all doc and TR for OnCommand/DFM pls refer the link below.

OnCommand(DFM) and its related Technical Reports

Regards

adai

Re: DFM - how to get report/graph for volume space used for last year

adaikkappan;

thanks very much for this.

I guess I am having a problem with the CLI syntax.

Can you give me the correct syntax for the following?

Want to find volume-usage-vs-total for VOLUME1 from May 1, 2011 to August 31, 2011

thank you

Re: DFM - how to get report/graph for volume space used for last year

Hi

     Pasting the dfm graph cli help. Hope this  helps you construct the cli.

[root@ ~]# dfm graph help

NAME

    graph -- create graphs of data over time

SYNOPSIS

    dfm graph [ <options> ] <graph-name> <name-or-id-to-graph>

DESCRIPTION

    The graph command generates data over time for a particular

    item in the database.

    Use 'dfm graph' with no arguments to get the list of

    graphs.

    The options are

        -s <start-date>

        -e <end-date>

        -D <date-format>

        -F <output-format>

        -h <height>

        -w <width>

    The <date-format> is a time format string as defined

    by the strftime library routine.  The default date format

    is the one appropriate for your locale.

    The <start-date> is the number of seconds in the past that

    the graph should start; the <end-date> is the number of seconds

    in the future that the graph should end. Use a negative

    value for <end-date> if the graph should stop in the past.

    The <height> and <width> are the height and width of the graph

    image in pixels. These options are applicable to image formats

    only i.e. when <output-format> is specified as png or gif.

    Use a suffix afer the <graph-name> to select a different

    range of valid dates; use suffix

        -1d (the default) for data going back 24-48 hours

        -1w for data going back 1-2 weeks

        -1m for data going back 1-2 months

        -3m for data going back 3-6 months

        -1y for data going back indefinitely

    The values above are ranges because the amount of data

    still available depends on whether the current time is near

    the beginning or the end of a day, week, month, or quarter.

    For example, to see the last 60 days of CPU usage for a

    particular storage system, use the "-3m" suffix, because "-1m"

    may not have all the data you request.  The command is

        $ dfm graph -s 5184000 -e 0 cpu-3m system1

    The <output-format> is the type of format in which the output will

    be generated. Supported output formats are text, html, csv, xls,

    png and gif. The output for html, png and gif is in binary format

    and needs to be redirected to a file with proper extension to open it.

    For example, to see the output of the graph 'volume-usage'

    in gif format, issue the command like below

        $ dfm graph -F gif volume-usage > graph.gif

[root@ ~]#

Pls let me know if you still have difficult in getting the data you want.

Regards

adai

Re: DFM - how to get report/graph for volume space used for last year

Hi,

Please use below command to list the volume-usage-vs-total graph data.

" dfm graph -s <start-date> -e <end-date> -D '%a, %d %b %Y %H:%M:%S' volume-usage-vs-total"

Where:

<start-date> is the number of seconds in the past that  the graph should start;

<end-date>: is the number of seconds in the future that the graph should end. Use a negative value for <end-date> if the graph should stop in the past.

In your case you want to list graph data from May 1, 2011 to August 31, 2011, So

start-time will be: 8 (months)*30(days)*24(hours)*3600(secs) + 12(days)*24(hours)*3600(secs)=  21772800 secs, approximate   (if today date is 12 Jan 2012)

End date =  4 (months)*30(days)*24(hours)*3600(secs) + 12(days)*24(hours)*3600(secs)= 11404800 secs (this should be in negative )

so, above command should be

"dfm graph -s 21772800 -e -11404800 -D '%a, %d %b %Y %H:%M:%S' volume-usage-vs-total"

If you want to list the data for VOLUME1 then you need to create a group G1, add the volume under group G1 and then use the below command to view the graph data.

"dfm graph -s 21772800 -e -11404800 -D '%a, %d %b %Y %H:%M:%S' volume-usage-vs-total G1"

Hope this help you.

Regards,

Gireesh

Re: DFM - how to get report/graph for volume space used for last year

HI Gireesh,

     Are you sure that the below cli will work ?

"dfm graph -s 21772800 -e -11404800 -D '%a, %d %b %Y %H:%M:%S' volume-usage-vs-total G1"

Since the data you are trying to access is in the past you will have to use the appropriate suffix in the graph name. Since this data is more than 3m old, one can get it only from year history graph.

The suffix -1y needs to be added to the graph name as follows volume-usage-vs-total-1y in the cli to really work.

The help clearly says what suffix to use depending upon the date range.

Use a suffix afer the <graph-name> to select a different

    range of valid dates; use suffix

        -1d (the default) for data going back 24-48 hours

        -1w for data going back 1-2 weeks

        -1m for data going back 1-2 months

        -3m for data going back 3-6 months

        -1y for data going back indefinitely

Regards

adai

Re: DFM - how to get report/graph for volume space used for last year

Hi Adai,

Suffix(-1y) need to add here. Because he want to list the 8 months old data so, -1y need to add to the graph name as follows volume-usage-vs-total-1y in the cli,

So Command should be

"dfm graph -s 21772800 -e -11404800 -D '%a, %d %b %Y %H:%M:%S' volume-usage-vs-total-1y G1"

I missed this point, Thanks Adai for this.

Regards,

Gireesh

Re: DFM - how to get report/graph for volume space used for last year

I tried to run the command but am getting this error...

Error: There is no object named '%b'.

Re: DFM - how to get report/graph for volume space used for last year

Can you share the command that you are executing. I think, you missed to add single quotes (' ') for time format.

Time format should be in single quotes  ("").

-D '%a, %d %b %Y %H:%M:%S'

Regards,

Gireesh

Re: DFM - how to get report/graph for volume space used for last year

dfm graph -s 21772800 -e -11404800 -D '%a, %d %b %Y %H:%M:%S' volume-usage-vs-total-1y file_types/space_usage

Yes. I am including the single quotes