Command Line Reference Guide

Managing Cartridges and Metrics 155
Running Utility Commands
Options and arguments
Example
C:\Vizioncore\vFoglight\bin>fglcmd -usr foglight -pwd foglight
-cmd util:topologyexport -f tor018008_alarm_count.xml -
topology_query Windows_Host where name=tor018008
-property_names alarmTotalCount
Note If successful, this command does not generate any output in the Command Prompt window.
The above command generates an XML file showing the value of the alarmTotalCount
property for a particular Windows host. The content of the generated CSV file is similar
to the following listing:
<?xml version=”1.0” encoding=”UTF-8”?>
<top-objects>
<top-obj uniqueId=”c380ae79-2d36-45fc-a07f-136509fec207”>
<property name=”uniqueId” value=”c380ae79-2d36-45fc-a07f-
136509fec207”/>
<property name=”topologyObjectId” value=”175”/>
<property name=”topologyObjectVersionId” value=”280”/>
<property name=”topologyObjectVersion” value=”1”/>
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 as
the file extension.
property_names
property_names Contains one or more property names,
separated by commas.
topology_query
topology_query Contains the topology query. Typically, a
topology query specifies topology and object
names as parameters to retrieve one or more
object instances. For full syntax information,
see the Administration and Configuration
Guide.