Command Line Reference Guide

Managing Cartridges and Metrics 151
Running Utility Commands
Exporting Metrics and Topology
This section describes the following commands:
•“metricexport” on page 151
•“topologyexport” on page 154
metricexport
The metricexport command exports metric observations to a file using a metric
query. String and metric observations that exist in vFoglight can be retrieved with this
command for automation and analysis. This command writes its output using a CSV or
XML format and takes an observation query as a parameter.
Note Query writing requires an understanding of the monitored topology and object naming
conventions and depends on data availability for the specified collection period (see
Example” on page 152). For complete information on topology queries, see the
Administration and Configuration Guide.
Scope
util
Syntax
fglcmd connection_options -cmd util:metricexport
-output_format {xml|csv} -metric_query metric_query
-f file_path
Options and arguments
Option Argument Description
f
file_path Specifies the path and name of the file into
which the results of the query are to be
exported.
Note When specifying the file name, use XML or
CSV as the file extension, depending on the
setting of the output_format option.