Active IQ Unified Manager Discussions

dfm report view syntax help

modugu
2,770 Views

I would like to know if its possible to skip Totals Line for every dfm report view

dfm report view  -l 1  -q -F csv volumes-capacity  nycps-filer1b:/modugu1
2227,modugu1,aggr0,nycps-filer1b.nylab.demo.com,1053148,2516584,41.8
"Totals",,,,1053148,2516584,41.8

How is this -l lines option used ?


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)

2 REPLIES 2

adaikkap
2,770 Views

Hi Srikanth,

          Its possible, just do the command as below.

dfm report view <reportname> [<argument>]| grep -v Totals

[root@lnx ~]# dfm report view storage-systems-capacity 98

Object ID Storage System                      Used     Total      Used (%)

--------- ----------------------------------- -------- ---------- --------

98        filer1 68257804 1918855376      3.6

Totals                                        68257804 1918855376      3.6

[root@lnx186-118 ~]# dfm report view storage-systems-capacity 98 | grep -v Totals

Object ID Storage System                      Used     Total      Used (%)

--------- ----------------------------------- -------- ---------- --------

98        filer1 68257804 1918855376      3.6

[root@lnx~]#

-l restrict the output to the nubmer of lines specifed by -l parameter.

Else it will always dump the entire results for the report.

Regards

adai

modugu
2,770 Views

Thanks Adai,

NeverMind I figured out the -l 1 will still show Totals regardless of using only 1 line as parameter

Public