Command Line Reference Guide

Managing Cartridges and Metrics 103
Managing Agents
Example
The first command in this example, shown in “Listing agents” on page 103, lists agent
IDs using the
agent:list command with the all option set. For more information on
how to list agent instances, see “list” on page 75.
The second command, shown in “Activating an agent instance” on page 104, uses an ID
of an inactive agent from the output of the first command to activate an agent.
Listing agents
C:\Vizioncore\vFoglight\bin>fglcmd -usr foglight -pwd foglight
-cmd agent:list -all
Host: tor012991.prod.quest.corp
ID: 9
Name: My_Agent_A
Type: Windows_System
Version: 5.2.4 (Build: 524-3/20/090625-0500)
Namespace: SPI
Adapter ID: FglAM
Status: Not active
------------------------------------
Host: tor012991.prod.quest.corp
ID: 10
Name: My_Agent_B
Type: Windows_System
Version: 5.2.4 (Build: 524-3/20/090625-0500)
Namespace: SPI
Adapter ID: FglAM
Status: Not active
------------------------------------
Host: tor012991.prod.quest.corp
ID: 12
Name: Agent1
Type: Windows_System
Version: 5.2.4 (Build: 524-3/20/090625-0500)
Namespace: SPI
Adapter ID: FglAM
Status: Not active
------------------------------------
Host: tor012991.prod.quest.corp
ID: 13
Name: Agent2
Type: NetMonitor
Version: 5.2.4 (Build: 524-3/20/090625-0500)