Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Adai,
NeverMind I figured out the -l 1 will still show Totals regardless of using only 1 line as parameter
