This guide contains proprietary information protected by copyright. The software described in this guide is furnished
under a software license or nondisclosure agreement. This software may be used or copied only in accordance with
the terms of the applicable agreement. No part of this guide may be reproduced or transmitted in any form or by any
means, electronic or mechanical, including photocopying and recording for any purpose other than the purchaser's
personal use without the written permission of Quest Software, Inc.
If you have any questions regarding your potential use of this material, contact:
Quest Software World Headquarters
LEGAL Dept
5 Polaris Way
Aliso Viejo, CA 92656
www.quest.com
email: legal@quest.com
Refer to our Web site for regional and international office information.
Trademarks
Quest, Quest Software, the Quest Software logo, Aelita, Akonix, Akonix L7 Enterprise, Akonix L7 Enforcer,
AppAssure, Benchmark Factory, Big Brother, DataFactory, DeployDirector, ERDisk, Foglight, Funnel Web, I/Watch,
Imceda, InLook, IntelliProfile, InTrust, Invertus, IT Dad, I/Watch, JClass, Jint, JProbe, LeccoTech, LiteSpeed,
LiveReorg, MessageStats, NBSpool, NetBase, Npulse, NetPro, PassGo, PerformaSure, Quest Central, SharePlex,
Sitraka, SmartAlarm, Spotlight, SQL LiteSpeed, SQL Navigator, SQL Watch, SQLab, Stat, StealthCollect, Tag and
Follow, Toad, T.O.A.D., Toad World, vANALYZER, vAUTOMATOR, vCONTROL, vCONVERTER, vEssentials,
vFOGLIGHT, vOPTIMIZER, vRANGER PRO, vReplicator, Vintela, Virtual DBA, VizionCore, Xaffire, and XRT are
trademarks and registered trademarks of Quest Software, Inc in the United States of America and other countries.
Other trademarks and registered trademarks used in this guide are property of their respective owners.
Disclaimer
The information in this document is provided in connection with Quest products. No license, express or implied, by
estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of
Quest products. EXCEPT AS SET FORTH IN QUEST'S TERMS AND CONDITIONS AS SPECIFIED IN THE
LICENSE AGREEMENT FOR THIS PRODUCT, QUEST ASSUMES NO LIABILITY WHATSOEVER AND
DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL QUEST BE LIABLE FOR ANY
DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING,
WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION OR LOSS OF
INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF QUEST HAS
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Quest makes no representations or warranties with
respect to the accuracy or completeness of the contents of this document and reserves the right to make changes
to specifications and product descriptions at any time without notice. Quest does not make any commitment to
update the information contained in this document.
License Credits and Third Party Information
To view license credit information, click the License Credits link on the Welcome to vFoglight online help page
Command-Line Reference Guide
March 2009
Version 5.2.4
Table of Contents
Introduction to this Guide...................................................................................................................................7
About vFoglight ................................................................................................................................................................ 8
About this Guide............................................................................................................................................................... 8
vFoglight Documentation Suite ........................................................................................................................................ 9
Feedback on the Documentation........................................................................................................................... 10
Text Conventions........................................................................................................................................................... 11
About Vizioncore Inc. ..................................................................................................................................................... 11
About the Command-Line Interface.................................................................................................................27
About Syntax Conventions............................................................................................................................................. 28
Looking at vFoglight Commands.................................................................................................................................... 28
Getting Started with vFoglight Commands..................................................................................................................... 32
Managing the vFoglight Management Server..................................................................................................35
Getting Started with Server Commands......................................................................................................................... 36
Running the vFoglight Management Server................................................................................................................... 37
Running the Server in Stand-Alone Mode............................................................................................................. 38
Starting, Stopping, or Upgrading the Database.............................................................................................................. 47
Starting the Embedded Database ......................................................................................................................... 47
Stopping the Embedded Database........................................................................................................................47
Upgrading the Database........................................................................................................................................48
Managing Cartridges and Metrics.................................................................................................................... 53
Using the Command Line for Administration Tasks........................................................................................................54
Understanding the Command-Line Structure ........................................................................................................54
About Regular Expressions ...................................................................................................................................56
Getting Started with Administrative Commands ....................................................................................................64
Logging In and Setting the Scope...................................................................................................................................70
Creating or Deleting Agent Instances....................................................................................................................91
Activating or Deactivating Agent Instances............................................................................................................99
Starting or Stopping Data Collection....................................................................................................................108
Listing and Retrieving Log Files...........................................................................................................................116
Listing and Setting Blackout Schedules...............................................................................................................120
Installing or Uninstalling Cartridges......................................................................................................................128
Enabling or Disabling Cartridges..........................................................................................................................130
Adding, Removing, or Listing Licenses................................................................................................................142
Exporting or Importing a Monitoring Policy...........................................................................................................145
Exporting Metrics and Topology ..........................................................................................................................151
Looking Up Server Parameters............................................................................................................................157
Creating a Server Support Bundle.......................................................................................................................162
Appendix: Command-Line Interface to the vFoglight Client....................................................................... 165
About the Command-Line Interface..............................................................................................................................166
Getting Started with vFoglight Client Commands ................................................................................................166
Using vFoglight Client Commands.......................................................................................................................167
vFoglight Management Server Commands...................................................... ...... ....... ...............................................171
Getting Started with Server Commands.......................................................................................................................172
This chapter provides information about what is contained in the vFoglight Command
Line Reference Guide. It also provides information about the vFoglight documentation
suite and Vizioncore.
This chapter contains the following sections:
About vFoglight..............................................................................................................................8
About this Guide............................................................................................................................8
Text Conventions.........................................................................................................................11
About Vizioncore Inc....................................................................................................................11
8vFoglight Cartridge for VMware
Command Line Reference Guide
About vFoglight
vFoglight helps IT organizations understand the virtual infrastructure by managing the
relationships and interaction between all the components in the environment, includ ing
data centers, data stores, clusters, resource pools, hosts and virtual machines. With
vFoglight, administrators can quickly determine the root-cause of an incident or
problem, track virtual machine (VM) movements and understand their impact, and
identify contention for resources between virtual machines.
About this Guide
This Command Line Reference Guide provides information about the vFoglight
command-line interface. You can use vFoglight commands to interface with different
components of your monitoring environment instead of the browser interface.
This guide is intended for vFoglight System Administrators who want to use the
vFoglight commands.
The Command Line Reference Guide is organized as follows:
Chapter 1, About the Command-Line Interface—Explains the command-line
syntax, lists vFoglight commands and introduces the command-line interface using a
getting started approach. Read this chapter to get an overview of vFoglight commands
and how to get started.
Chapter 2, Managing the vFoglight Management Server—Describes the commands
that allow you to perform server-related operations through the command-line interface
and provides detailed instructions on how to get started with those commands. It
provides reference information on server-related commands along with usage examples.
Use the server-related commands to perform a variety of tasks such as starting or
stopping the vFoglight Management Server, upgrading the database, or managing
encryption keys.
Chapter 3, chapterChapter 3,Managing Agents, Cartridges and Metrics—Provides
information about the fglcmd interface that contains commands for managing common
vFoglight entities such as agents, cartridges and metrics. It also explains the fglcmd
syntax and contains additional getting started instructions that show you how to
configure your environment. Use this chapter to find reference information about the
fglcmd commands and usage examples.
Appendix A, vFoglight Client Commands—Describes the commands that allow you
to access the vFoglight Client through the command-line interface along with
instructions on how to configure your environment to obtain access to the commands
that allow you to start or stop the vFoglight Client display version information, or
manage JVM options. Use this chapter to find reference information on the commands
for managing the vFoglight Client along with usage examples.
vFoglight Documentation Suite
The vFoglight documentation suite is made up of the core documentation set, plus the
documentation set for each vFoglight cartridge that you deploy. Documentation is
provided in a combination of online help, PDF and HTML.
•
Online Help: You can open the online help by selecting the Help tab from
vFoglight’s action panel.
Introduction to this Guide9
vFoglight Documentation Suite
•
PDF: The Getting Started Guide, What’s New Guide, System Requirements and
Platform Support Guide, Installation and Setup Guide set, Administration and
Configuration Guide, vFoglight User Guide, Command-Line Reference Guide,
Web Component Guide, and Web Component Tutorial, are provided as PDF files.
The PDF guides are included in the zip file downloaded from Vizioncore.
Adobe® Reader® is required.
•
HTML: Release Notes are provided in HTML.
Core Documentation Set
The core documentation set consists of the following files:
10vFoglight Cartridge for VMware
Command Line Reference Guide
• Release Notes (HTML)
• Getting Started Guide (PDF )
• What’s New Guide (PDF)
• System Requirements and Platform Support Guide (PDF)
• Installation and Setup Guide set (all in PDF format):
• Installation and Setup Guide—Installing on Windows with an Embedded
MySQL Database
• Installation and Setup Guide—Installing on Windows with an External
MySQL Database
• Installation and Setup Guide—Installing on Windows with an External Oracle
Database
• Administration and Configuration Guide (PDF and online help)
• vFoglight User Guide (PDF and online help)
• Advanced Configuration Guide set
• Command-Line Reference Guide (PDF and online help)
• Web Component Gui d e (PDF and online help)
• Web Component Tutorial (PDF and online help)
• Web Component Reference (online help)
Cartridge Documentation Sets
When you deploy a cartridge, the documentation set for the cartridge is installed. The
online help for the cartridge is integrated automatically with the core vFoglight help.
When you open the help, the name of the cartridge is displayed in a top level entry
within the table of contents.
Some cartridges include additional PDF guides, which may be one or more of the
following: a Getting Started Guide, an Installation Guide, a User Guide, and a
Reference Guide.
Feedback on the Documentation
We are interested in receiving feedback from you about our documentation. For
example, did you notice any errors in the documentation? Were any features
undocumented? Do you have any suggestions on how we can improve the
documentation? All comments are welcome. Please submit your feedback to the
following email address:
info@vizioncore.com
Please do not submit Technical Support related issues to this email address.
Text Conventions
The following table summarizes how text styles are used in this guide:
ConventionDescription
Introduction to this Guide11
Text Conventions
Code
Variables
InterfaceBold text is used for interface options that you select (such as
Files, components,
and documents
About Vizioncore Inc.
Vizioncore was formed in July 2002 as a consulting and software-development
company with the mission to create easy-to-use software solutions that performed
reliable and repeatable automation of datacenter functions specifically for the Citrix
platform. A main corporate goal was to enable business partners to offer solutions that
targeted real-world IT issues and provided the best possible installation and automation
for their clients' systems.
Monospace text represents code, code objects, and commandline input. This includes:
• Java language source code and examples of file contents
• Classes, objects, methods, properties, constants, and events
• HTML documents, tags, and attributes
Monospace-plus-italic text represents variable code or
command-line objects that are replaced by an actual value or
parameter.
menu items) as well as keyboard commands.
Italic text is used to highlight the following items:
• Pathnames, file names, and programs
• The names of other documents referenced in this guide
12vFoglight Cartridge for VMware
Command Line Reference Guide
Vizioncore's solutions have proved successful in organizations from small to mid-sized
businesses to large enterprises, in a wide variety of vertical industries, including
Financial Services, Government, Healthcare, Manufacturing, and High Tech.
Vizioncore, Inc. can be found in offices around the globe and at www.vizioncore.com.
Introduction to this Guide13
About Vizioncore Inc.
Contacting Dell
Note: If you do not have an active Internet connection, you can find contact information on your purchase invoice,
packing slip, bill, or Dell product catalog.
Dell provides several online and telephone-based support and service options. Availability varies by country and
product, and some services may not be available in your area. To contact Dell for sales, technical support, or customer
service issues:
1
Visit http://support.dell.com.
2
Verify your country or region in the Choose A Country/Region drop-down menu at the bottom of the page.
3
Click Contact Us on the left side of the page.Note: Toll-free numbers are for use within the country for which
they are listed.
4
Select the appropriate service or support link based on your need.
5
Choose the method of contacting Dell that is convenient for you.
Country (City)
International Access
Code
Country Code
City Code
Anguilla
Antigua and Barbuda
Aomen
Argentina (Buenos Aires)
International Access
Code: 00
Country Code: 54
City Code: 11
Aruba
Australia (Sydney)
International Access
Code: 0011
Country Code: 61
City Code: 2
Service TypeArea Codes,
Web Address
E-Mail Address
Technical Support., Customer Service, Sales
Web Address
E-Mail Address
Technical Support., Customer Service, Sales
Technical Support
™
Dimension™, Dell Inspirion™, Dell
Dell
Optiplex
Precision
™
, Dell Lattitude™, and Dell
™
Servers and Storage
Web Address
E-Mail Address for Desktop/ Portable Computers
E-Mail Address for Servers and EMC
®
Storage
Products
Customer Service
Technical Support
Technical Support Services
Sales
Web Address
E-Mail Address
Technical Support., Customer Service, Sales
Web Address
Contact Dell Web Address
Technical Support., Customer Service, Sales
International Access
Code: 900
Country Code: 43
City Code: 1
Bahamas
Barbados
Belgium (Brussels)
Bolivia
Brazil
International Access
Code: 00
Country Code: 55
City Code: 51
British Virgin Islands
Brunei
Country Code: 673
Canada (North York,
Ontario)
International Access
Code: 011
Cayman Islands
Web Address
E-Mail Address
Home/Small Business Sales
Home/Small Business Fax
Home/Small Business Customer Service
Home/Small Business Support
Preferred Accounts/Corporate Customer
Service Preferred Accounts/Corporate Customer
Switchboard
Web Address
E-Mail Address
Technical Support., Customer Service, Sales
Web Address
E-Mail Address
Technical Support., Customer Service, Sales
Web Address
General Support
General Support Fax
Customer Service
Corporate Sales
Fax
Switchboard
Web Address
E-Mail Address
Technical Support., Customer Service, Sales
Web Address
E-Mail Address
Customer Service and Tech Support
Technical Support Fax
Customer Service Fax
Sales
Web Address
E-Mail Address
Sales and Customer Support
Technical Support Web Address
Technical Support E-Mail Address
Customer Service E-Mail Address
Technical Support Fax
Technical Support – Dimension and Inspiron
Technical Support – OptiPlex, Lattitude and Dell
Precision
Technical Support – Servers and Storage
Technical Support – Projectors, PDAs, Switches,
Routers, etc
Technical Support – Printers
Customer Service
Customer Service Fax
Home and Small Business
Preferred Accounts Division
Large Corporate Accounts GCP
Large Corporate Accounts Key Accounts
Large Corporate Accounts North
Large Corporate Accounts North Government and
Education
Large Corporate Accounts East
Large Corporate Accounts East Government and
Education
Large Corporate Accounts Queue Team
Large Corporate Accounts South
Large Corporate Accounts West
Large Corporate Accounts Spare Parts
Web Address
E-Mail Address
Technical Support, Customer Service, Sales
Web Address
E-Mail Address
Technical Support, Customer Service, Sales
Web Address
E-Mail Address
Technical Support
Customer Service
Fax
Technical Fax
Switchboard
Web Address
Technical Support
Customer Service – Relational
Home/Small Business Customer Service
Switchboard – Relational
Switchboard Fax – Relational
Switchboard – Home/Small Business
Switchboard Fax – Home/Small Business
Web Address
E-Mail Address
Technical Support, Customer Service, Sales
International Access
Code: 990
Country Code: 358
City Code: 9
France (Paris)
(Montpellier)
International Access
Code: 00
Country Code: 33
City Codes: (1) (4)
Germany (Frankfurt)
International Access
Code: 00
Country Code: 49
City Code: 69
Greece
International Access
Code: 00
Country Code: 49
Grenada
Web Address
E-Mail Address
Technical Support, Customer Service, Sales
Web Address
E-Mail Address
Technical Support, Customer Service, Sales
(Calling from Quito)
Technical Support, Customer Service, Sales
(Calling from Guayaquil)
Web Address
E-Mail Address
Technical Support, Customer Service, Sales
Web Address
E-Mail Address
Technical Support
Customer Service
Switchboard
Sales under 500 employees
Fax
Sales over 500 employees
Fax
Web Address
Home and Small Business
Technical Support
Customer Service
Switchboard
Switchboard (calls from outside of France)
Sales
Fax
Fax (calls from outside of France)
Corporate
Technical Support
Customer Service
Switchboard
Sales
Web Address
E-mail Address
Technical Support
Home/Small Business Customer Service
Global Segment Customer Service
Preferred Accounts Customer Service
Large Accounts Customer Service
Public Accounts Customer Service
Switchboard
Web Address
Technical Support
Gold Service Technical Support
Switchboard
Gold Service Switchboard
Sales
Fax
Web Address
E-Mail Address
Technical Support, Customer Service, Sales
Web Address
Technical Support E-mail Address
Technical Support - Dimension and Inspiron
Technical Support - OptiPlex, Latitude, and Dell
Precision
Technical Support - Servers and Storage
Technical Support - Projectors, PDAs, Switches,
Routers, etc .
Customer Service
Large Corporate Accounts
Global Customer Programs
Medium Business Division
Home and Small Business Division
Dell Support Website
Portable and Desktop Support
Desktop Support E-mail Address
Portable Support E-mail Address
Phone Numbers
080-25068032 or 080-25068034 or
your city STD code + 60003355 or
toll-free: 1-800-425-8045
Server Support
E-mail Address
Phone Numbers
Gold Support Only
E-mail Address
Phone Numbers
Customer Service
Home and Small Business
Large Corporate Accounts
Sales
Large Corporate Accounts
Home and Small Business
india_support_Server@dell.com
080-25068032 or 080-25068034 or
your city STD code + 60003355 or
toll-free: 1-800-425-8045
eec_ap@dell.com
080-25068033 or your city STD code +
60003355 or
toll-free: 1-800-425-9045
India_care_HSB@dell.com
toll-free : 1800-4254051
India_care_REL@dell.com
toll free : 1800-4252067
1600 33 8044
1600 33 8046
Ireland (Cherrywood)
International Access
Code: 00
Country Code: 353
City Code: 1
Italy (Milan)
International Access
Code: 00
Country Code: 39
City Code: 02
Jamaica
Web Address
Technical Support
E-mail Address
Business computers
Home computers
At Home Support
Sales
Home
Small Business
Medium Business
Large Business
E-mail Address
Customer Service
Home and Small Business
Business (greater than 200 employees)
General
Fax/Sales fax
Switchboard
U.K. Customer Service (dealing with U.K.only)
Corporate Customer Service (dial within U.K.
only)
U.K. Sales (dial within U.K. only)
Web Address
Home and Small Business
Technical Support
Customer Service
Fax
Switchboard
Corporate
Technical Support
Customer Service
Fax
Switchboard
E-mail Address
Technical Support, Customer Service, Sales
(dial from within Jamaica only)
Support.euro.dell.com
dell_direct_support@dell.com
1850 543 543
1850 543 543
1850 200 889
1850 333 200
1850 664 656
1850 200 646
1850 200 646
Dell_IRL_Outlet@dell.com
204 4014
1850 200 982
204 0103
204 4444
0870 906 0010
0870 907 4499
0870 907 4000
Support.euro.dell.com
02 577 826 90
02 696 821 14
02 696 821 13
02 696 821 12
02 577 826 90
02 577 825 55
02 575 035 30
02 577 821
la-techsupport@dell.com
1-800-440-920
Japan (Kawasaki)
International Access
Code: 001
Country Code: 81
City Code: 44
Korea (Seoul)
International Access
Code: 001
Country Code: 82
City Code: 2
Latin America
Luxemborg
International Access
Code: 00
Country Code: 352
Macao
Country Code: 83
Web Address
Technical Support - Dimension and Inspiron
Technical Support outside of Japan - Dimension
and Inspiron
Technical Support - Dell Precision, OptiPlex, and
Latitude
Technical Support outside of Japan - Dell
Precision, OptiPlex, and Latitude
Technical Support - Dell PowerApp™, Dell
PowerEdge™, Dell PowerConnect™, and Dell
PowerVault™,
Technical Support outside of Japan - PowerApp,
PowerEdge, PowerConnect, and PowerVault
Technical Support - Projectors, PDAs, Printers,
Routers
Technical Support outside of Japan - Projectors,
PDAs, Printers, Routers
Faxbox Service
24-Hour Automated Order Status Service
Customer Service
Business Sales Division - up to 400 employees
Preferred Accounts Division Sales - over 400
employees
Public Sales - government agencies, educational
institutions, and medical institutions
Global Segment Japan
Individual User
Individual User Online Sales
Individual User Real Site Sales
Switchboard
Web Address
Technical Support, Customer Service
T echnical Support - Dimension, PDA, Electronics,
and Accessories
Sales
Fax
Switchboard
Customer Technical Support (Austin, Texas,
U.S.A.)
Customer Service (Austin, Texas, U.S.A.)
Fax (Technical Support and Customer Service)
(Austin, Texas, U.S.A.)
Sales (Austin, Texas, U.S.A.)
SalesFax (Austin, Texas, U.S.A.)
Web Address
Support
Home/Small Business Sales
Corporate Sales
Customer Service
Fax
Technical Support
Customer Service (Xiamen, China)
Transaction Sales (Xiamen, China)
International Access
Code: 00
Country Code: 60
City Code: 4
Mexico
International Access
Code: 00
Country Code: 52
Montserrat
Netherlands
Antilles
Netherlands
(Amsterdam)
International Access
Code: 00
Country Code: 31
City Code: 20
New Zealand
International Access
Code: 00
Country Code: 64
Nicaragua
Norway (Lysaker)
International Access
Code: 00
Country Code: 47
Panama
Peru
Web Address
Technical Support - Dell Precision, OptiPlex, and
Latitude
Technical Support - Dimension, Inspiron, and
Electronics and Accessories
Technical Support - PowerApp, PowerEdge,
PowerConnect, and PowerVault
Customer Service
Transaction Sales
Corporate Sales
Web Address
E-mail Address
Customer Technical Support
Sales
Customer Service
Main
E-mail Address
Web Address
Technical Support
Technical Support Fax
Home/Small Business Customer Service
Relational Customer Service
Home/Small Business Sales
Relational Sales
Home/Small Business Sales Fax
Relational Sales Fax
Switchboard
Switchboard Fax
Web Address
E-mail Address
Technical Support, Customer Service, Sales
Web Address
E-mail Address
Technical Support, Customer Service, Sales
Web Address
Technical Support
Relational Customer Service
Home/Small Business Customer Service
Switchboard
Fax Switchboard
Web Address
E-mail Address
Technical Support, Customer Service, Sales
Web Address
E-mail Address
Technical Support, Customer Service, Sales
Web Address
E-mail Address
Technical Support, Customer Service, Sales
Web Address
E-mail Address
Technical Support, Customer Service, Sales
Web Address
E-mail Address
Technical Support, Customer Service, Sales
NOTE: The phone numbers in this section should
be called from within Singapore or Malaysia only.
Web Address
Technical Support - Dimension, Inspiron, and
Electronics and Accessories
Technical Support - OptiPlex, Latitude,
and Dell Precision
Technical Support - PowerApp, PowerEdge,
PowerConnect, and PowerVault
Customer Service
Transaction Sales
Corporate Sales
Web Address
E-mail Address
Technical Support
Customer Service
Fax
Tech Fax
Switchboard (Sales)
Web Address
E-mail Address
Gold Queue
Technical Support
Customer Service
Sales
International Access
Code: 00
Country Code: 34
City Code: 91
Sweden (Upplands
Vasby)
International Access
Code: 00
Country Code: 46
City Code: 8
Switzerland (Geneva)
International Access
Code: 00
Country Code: 41
City Code: 22
Taiwan
International Access
Code: 002
Country Code: 886
Thailand
International Access
Code: 001
Country Code: 66
Trinidad/Tobago
Turks and Caicos Islands
Web Address
Home and Small Business
Technical Support
Customer Service
Sales
Switchboard
Fax
Corporate
Technical Support
Customer Service
Switchboard
Fax
Web Address
Technical Support
Relational Customer Service
Home/Small Business Customer Service
Employee Purchase Program (EPP) Support
Technical Support Fax
Web Address
E-mail Address
Technical Support – Home and Small Business
Technical Support – Corporate
Customer Service – Home and Small Business
Customer Service – Corporate
Fax
Switchboard
Web Address
E-mail Address
Technical Support - OptiPlex, Latitude, Inspiron,
Dimension, and Electronics and Accessories
Technical Support - Servers and Storage
Customer Service
Transaction Sales
Corporate Sales
Web Address
Technical Support (OptiPlex, Latitude, and Dell
Precision)
Technical Support (PowerApp, PowerEdge,
PowerConnect, and PowerVault)
Customer Service
Corporate Sales
Transaction Sales
Web Address
E-mail Address
Technical Support, Customer Service, Sales
Web Address
E-mail Address
Technical Support, Customer Service, Sales
Automated Order-Status Service
AutoTech (portable and desktop computers)
Hardware and Warranty Support (Dell TV,
Printers, and Projectors ) for Relationship
customers
Consumer (Home and Home Office) Support for
Dell products
Customer Service
Employee Purchase Program (EPP) Customers
Financial Services Web Address
Financial Services (lease/loans)
Financial Services (Dell Preferred Accounts
[DPA])
Business
Customer Service
Employee Purchase Program (EPP)
Customer s Support for printers, projectors, PDAs,
and MP3 players
Public (government, education, and healthcare)
Customer Service and Support
Employee Purchase Program (EPP) Customers
Dell Sales
Dell Outlet Store (Dell refurbished computers)
Software and Peripherals Sales
Spare Parts Sales
Extended Service and Warranty Sales
Fax
Dell Services for the Deaf, Hard-of-Hearing, or
Speech-Impaired
Web Address
E-mail Address
Technical Support, Customer Service, Sales
Web Address
E-mail Address
Technical Support, Customer Service, Sales
www.dell.com/vi
la‐techsupport@dell.com
toll‐free:1‐877‐702‐4360
www.dell.com/ve
la‐techsupport@dell.com
0800‐100‐4752
0
About the Command-Line Interface
This manual describes the commands that come with your vFoglight installation and
allow you to access different components in your monitoring environment without
having to use the standard graphical interface such as the Administration dashboards.
This can be useful in situations when you need to either automate your business logic by
writing scripts, or use regular expressions to select multiple entities where applicable.
This chapter contains the following sections:
About Syntax Conventions..........................................................................................................28
Looking at vFoglight Commands.................................................................................................28
Getting Started with vFoglight Commands..................................................................................32
28vFoglight
Command-Line Reference Guide
About Syntax Conventions
This manual employs a set of conventions that are used in the command syntax. Y o u
should review them before getting started with the manual in order to successfully make
use of vFoglight commands in your monitoring environment. The syntax conventions
are as follows:
• <vfoglight_home> is a placeholder that represents the path to the vFoglight
Management Server installation.
• Unless otherwise specified, vFoglight commands are not case-sensitive.
Looking at vFoglight Commands
vFoglight provides a number of commands that you can use to manage different
components in your monitoring environment. The commands reside in the following
directories of your vFoglight Management Server installation.
vFoglight Management Server
• <vfoglight_home>/bin: Contains commands that manage the vFoglight
Management Server and administer agents, cartridges, metrics, and other entities.
For more information about these commands, see “Managing the vFoglight
Management Server” on page 35 and “Managing Cartridges and Metrics” on
page 53.
• <vfoglight_home>/tools: Contains the Remote Monitor utility as well as the
administrative commands in ZIP files. For mo re in formation about the Remote
Monitor, see the vFoglight Installation and Setup Guide; for information on the
Remote Monitor command syntax, see “remotemonitor” on page 44.
If required, you can extract these commands to a remote computer in your
network and issue them from there. For more information, see “Getting Started
with Server Commands” on page 36 and “Getting Started with Administrative
Commands” on page 64.
For more information about the <vfoglight_home>, see “About Syntax Conventions” on
page 28.
The following table lists vFoglight commands.
Component
About the Command-Line Interface29
Looking at vFoglight Commands
Domain
Command
Description
fmsProvides command-line interface to the
vFoglight Management Server process
fmshaProvides command-line interface to the
Server
vFoglight Management Server process
running in High Availability (HA) mode
foglight_db_upgradeVerifies the database version and upgrades it
to a higher version if necessary
runDBStarts the embedded database
Database
shutdownDBStops the embedded database
vFoglight Management Server
keymanProvides an interface that lets you change,
add, or delete encryption keys, or generate
application tokens
Authentication
30vFoglight
Command-Line Reference Guide
Component
Domain
Command
Description
activateActivates one or more vFoglight agent
instances
clientsShows a list of vFoglight client instances
clientupgradeUpgrades one or more remote instances of the
vFoglight Agent Manager
createCreates one or more vFoglight agent instances
deactivateDeactivates one or more vFoglight agents
deleteDeletes one or more vFoglight agent instances
deployDeploys one or more vFoglight agent
packages
getlogRetrieves a copy of an agent log file
listShows a list of vFoglight agent instances
Agents
logsShows a list of agent log files
Administrative Interface
packagesShows a list of available agent packages
setscheduleAssigns a blackout schedule to one or more
showscheduleShows the blackout schedule assigned to one
startStarts the data collection for one or more
stopStops the data collection for one or more
typesShows a list of vFoglight agent types sorted by
vFoglight agent instances
or more vFoglight agent instances.
vFoglight agent instances
vFoglight agent instances
client ID
Component
Domain
Command
disableDeactivates a vFoglight cartridge
enableActivates an installed vFoglight cartridge
installInstalls a cartridge on the vFoglight
Cartridges
listLists all installed vFoglight cartridges
uninstallUninstalls a vFoglight cartridge
assigngroupAdds or removes a user from a group
assignroleAdds or removes a role from a group
creategroupCreates a group
createuserCreates a user
Security
deletegroupDeletes a group
Administrative Interface (continued)
deleteuserDeletes a user
About the Command-Line Interface31
Looking at vFoglight Commands
Description
Management Server
importInstalls a vFoglight license
listShows a list of installed vFoglight licenses
removeRemoves a vFoglight license using the license
Licenses
serial number
32vFoglight
Command-Line Reference Guide
Component
Domain
Command
Description
blackoutobjectAssigns a blackout schedule
bundleGenerates a support bundle file
configexportExports the monitoring policy to an XML file
configimportImports the monitoring policy
envOutputs the values of server configuration
parameters
metricexportExports metric observations to a file using a
metric query
Utility
listShows a list of all vFoglight schedules
runRuns a script
Administrative Interface (continued)
topologyexportExports the value of one or more properties of
a topology object to an XML file
uiexportExports a UI module into a ZIP file
uiimportImports a UI module from a ZIP file
uilistShows a list of deployed UI modules
Getting Started with vFoglight Commands
To get started with vFoglight commands:
NoteThese instructions describe a simple configuration in which the vFoglight Management
Server and the vFoglight Agent Manager are installed on the same platform.
1
Ensure that you have all of the following components installed in your monitoring
environment.
A typical setup includes the following components:
About the Command-Line Interface33
Getting Started with vFoglight Commands
• vFoglight Management Server
• vFoglight Cartridge
For complete information on installing the above components, see the Installation
and Setup Guide.
2
Obtain your vFoglight user name and password from the vFoglight
Administrator.
3
Ensure that your JAVA_HOME system variable points to the location of JRE that
comes with vFoglight. For information on the JRE version, see the vFoglight
Installation and Setup Guide.
For example, on most Windows systems, JRE 6 is located under C:\Program Files\Java\jre1.6.0_02.
4
Start the vFoglight Management Server.
For example, on Windows platforms, you can start the vFoglight Management
Server by choosing Start > Programs > Vizioncore > vFoglight 5.2.4 > Start vFoglight.
5
If you experience problems starting either the vFoglight Management Server,
complete the following steps:
a
Check the log files. vFoglight stores the log file in the following locations:
• date and time are the date and time the vFoglight Management Server was
started
• file_ID identifies the log file
For information about vfoglight_home , see “About Syntax Conventions” on
page 28.
b
If you do not find any indicators as to why the agent is not collecting data,
refer to the Release Notes and Administration and Configuration Guide for
more information.
c
If you do not find any relevant information in the documentation, contact
Vizioncore Support. See “Contacting Dell” on page 14.
From here, you can proceed to any of the following procedures as required:
•“Getting Started with Administrative Commands” on page 64
34vFoglight
Command-Line Reference Guide
Managing the vFoglight
Management Server
vFoglight offers a set of commands that allow you to perform server-related operations
through the command-line interface. You can use these commands to perform a variety
of tasks, such as start or stop the vFoglight Management Server, run or upgrade the
database, or manage encryption keys.
This chapter contains the following sections:
Getting Started with Server Commands......................................................................................36
Running the vFoglight Management Server................................................................................37
Starting, Stopping, or Upgrading the Database...........................................................................47
The majority of server-specific commands access the server directly. As such, you can
only issue them on the computer that is running an instance of the vFoglight
Management Server. One exception is the Remote Monitor utility that you can use to
communicate with multiple instances of the vFoglight Management Server running in
High Availability (HA) mode. For more information about running the vFoglight
Management Server running in HA mode, see “fmsha” on page 41.
Your vFoglight installation includes a compressed file, <vfoglight_home>/tools/remotemonitor.zip, that contains the Remote Monitor utility. If required, you can extract
the contents of that file to a remote computer in your vFoglight network and run the
Remote Monitor utility from that computer, as described in “To get started with
vFoglight Management Server commands:” on page 36. For information about the
location of vfoglight_home, see “About Syntax Conventions ” on page 28.
T o get started, make sure the vFoglight Management Server is running, and, if you are
planning to access the server commands remotely, copy and extract the contents of the
remotemonitor.zip file to your remote computer.
For more information about the Remote Monitor, see “remotemonitor” on page 44.
NoteIn vFoglight, the vFoglight Agent Manager is used to manage agent instances and their
communication with the vFoglight Management Server. Some monitoring environments use
the vFoglight Client, which is an older version of the agent manager component. While the
syntax and command-line output are the same regardless of the type of the agent
management component (vFoglight Client or vFoglight Agent Manager), the configuration
process is different in that you may need to extract the Remote Monitor utility to a different
directory.
The following procedure describes the configuration of the Remote Monitor in an
environment that uses the vFoglight Agent Manager. For information on how to configure
the Remote Monitor utility with the vFoglight Client, see “Getting Started with Server
Commands” on page 172.
To get started with vFoglight Management Server commands:
NoteThis procedure continues from “Getting Started with vFoglight Commands” on page 32.
Managing the vFoglight Management Server37
Running the vFoglight Management Server
1
Copy the <vfoglight_home>/tools/remotemonitor.zip file from the computer that
has a running instance of the vFoglight Management Server to the remote
computer.
NoteThe following procedure describes the configuration of the Remote Monitor in an
environment that uses the vFoglight Agent Manager. For information on how to
configure the Remote Monitor utility with the vFoglight Client, see “Getting Started
with Server Commands” on page 172.
2
Extract the contents of the remotemonitor.zip file to a directory on the remote
computer.
3
Reference the directory that contains the vFoglight Management Server
command <vfoglight_home>/bin, by completing one of the following steps:
• If you want to use the command prompt, open a Command Prompt window
and navigate to <vfoglight_home>/bin as required.
or
• If you want to use a vFoglight Management Server command in a script,
ensure that your script references <vfoglight_home>/bin.
For more information about vfoglight_home, see “About Syntax Conventions” on
page 28.
From here, you can proceed to any of the following procedures as required:
•“Running the vFoglight Management Server” on page 37
•“Starting, Stopping, or Upgrading the Database” on page 47
•“Managing Passwords” on page 49
Running the vFoglight Management Server
This section describes the following tasks:
•“Running the Server in Stand-Alone Mode” on page 38
•“Running the vFoglight Management Server in High Availability Mode” on
page 41
38vFoglight
Command-Line Reference Guide
Running the Server in Stand-Alone Mode
fms
The fms command provides command-line interface to the vFoglight Management
Server process. It offers a set of options that allow you to perform any of the following
operations as required:
• Start or stop the vFoglight Management Server in stand-alone mode
• Install and start the vFoglight Management Server in stand-alone mode as a
• Stop and remove a vFoglight Management Server Windows service
• Configure Java Virtual Machine (JVM) options and add entries to the vFoglight
• Assign different names to different vFoglight Management Server process
• Display version information or a list of arguments along with their descriptions
NoteIf you do not specify any options, fms uses the default option, s, and starts an instance of
the vFoglight Management Server.
Options and arguments
OptionsArgumentDescription
hhelp
NoneDisplays a list of arguments and their
descriptions.
Managing the vFoglight Management Server39
Running the vFoglight Management Server
OptionsArgumentDescription
-Dquest.debug-debug_level
jjvm-argument
nname
pclasspath
qstop
Runs the vFoglight Management Server
in debug mode. You can set
debug_level to one of the following
values:
• 1: No debugging
• 2: Minimal debugging
• 3: Detailed debugging
By default, this option outputs the logs to
the standard output. You can redirect the
output to a file if required. For example:
fms -Dquest.debug=3 >
debug3.log
JVM_optionsSpecifies one or more Java Virtual
Machine (JVM) options.
process_nameSpecifies a unique process name for the
current instance of the vFoglight
Management Server. vFoglight uses
process names to distinguish between
different instances of the same process
launcher.
classpathAdds entries to the JVM classpath.
NoneS tops the running vFoglight Management
Server process.
sstart
tthread-dump
vversion
NoneStarts the vFoglight Management Server.
NoneRequests a thread output from the
running application. This option writes
the output to a separate log file in the
application's installation directory.
NoneDisplays the version number, copyright,
build number, and the installation
directory.
40vFoglight
Command-Line Reference Guide
OptionsArgumentDescription
wwait
NoneWhen sending a shutdown command to
an existing vFoglight Management
Server process, this option instructs the
command to wait indefinitely for the
process to exit before shutting it down.
bstart-service
NoneStarts the vFoglight Management Server
Windows service.
iinstall-service
NoneInstalls the vFo glight Management
Server as a Windows service.
rremove-service
NoneStops and removes the vFoglight
Management Server Windows service.
Examples
Displaying version information
C:\Vizioncore\vFoglight\bin>fms -v
vFoglight Management Server 5.2.4
Copyright (c) 2002-3/20/09 Vizioncore Inc.
Build Number: 524-3/20/091002-0044
Installation Directory: C:\Vizioncore\vFoglight
Starting the server in stand-alone mode
C:\Vizioncore\vFoglight\bin>fms -s
3/20/09-10-16 11:18:46.807 INFO Starting vFoglight Management
Server.
3/20/09-10-16 11:18:46.901 INFO vFoglight Management Server
starting
up using database host: localhost
3/20/09-10-16 11:18:46.916 INFO vFoglight Management Server
starting
up using database port: 13306
3/20/09-10-16 11:18:46.916 INFO vFoglight Management Server
starting
up using database name: foglight
...
Managing the vFoglight Management Server41
Running the vFoglight Management Server
Stopping the server running in stand-alone mode
C:\Vizioncore\vFoglight\bin>fms -q
NoteThis command displays a series of messages in the Command Prompt window instance
used to start the vFoglight Management Server. These messages indicate that the server is
stopping.
See also
•“fmsha” on page 41
•“remotemonitor” on page 44
Running the vFoglight Management Server in High Availability
Mode
fmsha
The fmsha command provides a command-line interface to the vFoglight Management
Server process running in High Availability (HA) mode. Running vFoglight in HA
mode allows you to manage multiple instances of the vFoglight Management Server in
a JBoss partition that supports the HA feature. For more information about the HA
mode, see the Installation and Setup Guide.
This command offers a set of options that you can use to perform any of the following
operations as required:
• Start or stop the vFoglight Management Server in HA mode
• Install and start the vFoglight Management Server in HA mode as a Windows
service
• Stop and remove a vFoglight Management Server HA Windows service
• Configure Java Virtual Machine (JVM) options and add entries to the vFoglight
classpath
• Assign different names to different vFoglight Management Server process
launchers
• Display version information or a list of arguments along with their descriptions
NoteIf you do not specify any options, fmsha uses the default option, s, and starts an instance of
Options and arguments
OptionsArgumentDescription
the vFoglight Management Server in HA mode.
hhelp
jjvm-argument
nname
pclasspath
qstop
sstart
tthread-dump
NoneDisplays a list of arguments and their
descriptions.
JVM_optionsSpecifies one or more Java Virtual
Machine (JVM) options.
process_nameSpecifies a unique process name for the
current instance of the vFoglight
Management Server. vFoglight uses
process names to distinguish between
different instances of the same process
launcher.
classpathAdds entries to the JVM classpath.
NoneStops the running vFoglight Management
Server process.
NoneStarts the vFoglight Management Server.
NoneRequest s a thread output from the
running application. This option writes
the output to a separate log file in the
application's installation directory.
Managing the vFoglight Management Server43
Running the vFoglight Management Server
OptionsArgumentDescription
vversion
NoneDisplays the version number, copyright,
build number, and the installation
directory.
wwait
NoneWhen sending a shutdown command to
an existing vFoglight Management
Server process, this option instructs the
command to wait indefinitely for the
process to exit before shutting it down.
bstart-service
NoneStarts the vFoglight Management Server
Windows service.
iinstall-service
NoneInstalls the vFoglight Management
Server as a Windows service.
rremove-service
NoneStops and removes the vFoglight
Management Server Windows service.
Examples
Starting the server in HA mode
C:\Vizioncore\vFoglight\bin>fmsha
3/20/09-10-16 12:06:32.632 INFO Starting vFoglight Management
Server
with the command bin\fms -Dfoglight.cluster.mode=true...
3/20/09-10-16 12:06:33.398 INFO Starting vFoglight Management
Server.
3/20/09-10-16 12:06:33.538 INFO vFoglight Management Server
starting
up using database host: localhost
...
Installing the server in HA mode as a Windows service
C:\Vizioncore\vFoglight\bin>fmsha -i
3/20/09-10-16 12:08:43.000 INFO [native] vFoglight High
Availability
Management Server (FoglightHA) service installed
Removing the server HA Windows service
C:\Vizioncore\vFoglight\bin>fmsha -r
44vFoglight
Command-Line Reference Guide
3/20/09-10-16 12:11:24.000 INFO [native] Removed the vFoglight
High
Availability Management Server (FoglightHA) service installed
from 'C:\Vizioncore\vFoglight'
See also
•“fms” on page 38
•“remotemonitor” on page 44
remotemonitor
The remotemonitor command provides command-line interface to the Remote
Monitor application. The Remote Monitor communicates with multiple instances of the
vFoglight Management Server running in HA mode. If a server fails to reply, the
Remote Monitor logs an event and sends e-mails to the server administrator. The
Remote Monitor uses a list of host names or host names and port numbers to identify
High Availability servers that it communicates with. This information is stored in the
<vfoglight_home>/config/remote_monitor.config file under the
For information on how to install and configure the Remote Monitor, see “Getting
Started with Server Commands” on page 36; for additional information about the
Remote Monitor application, see the Installation and Setup Guide.
server.urls entry.
The
remotemonitor command offers a set of options that you can use to perform any
of the following operations as required:
• Start or stop the Remote Monitor
• Install and start the Remote Monitor as a Windows service
• Stop and remove the Remote Monitor Windows service
• Configure Java Virtual Machine (JVM) options and add entries to the Remote
Monitor classpath
• Assign different names to different Remote Monitor process launchers
• Display version information or a list of arguments along with their descriptions
NoteIf you do not specify any options, remotemonitor uses the default option, s, and starts an
instance of the Remote Monitor utility.
Options and arguments
OptionsArgumentDescription
hhelp
jjvm-argument
nname
pclasspath
qstop
sstart
tthread-dump
vversion
NoneDisplays a list of arguments and their
descriptions.
JVM_optionsSpecifies one or more Java Virtual
Machine (JVM) options.
process_nameSpecifies a unique process name for the
current instance of the vFoglight
Management Server. vFoglight uses
process names to distinguish between
different instances of the same process
launcher.
classpathAdds entries to the JVM classpath.
NoneStops the running vFoglight
Management Server process.
NoneStarts the vFoglight Management Server.
NoneRequests a thread output from the
running application. This option writes
the output to a separate log file in the
application's installation directory.
NoneDisplays the version number, copyright,
build number, and the installation
directory.
46vFoglight
Command-Line Reference Guide
OptionsArgumentDescription
wwait
NoneWhen sending a shutdown command to
an existing vFoglight Management
Server process, this option instructs the
command to wait indefinitely for the
process to exit before shutting it down.
bstart-service
NoneStarts the vFoglight Management Server
Windows service.
iinstall-service
NoneInstalls the vFoglight Management
Server as a Windows service.
rremove-service
NoneStops and removes the vFoglight
Management Server Windows service.
Examples
Installing Remote Monitor as a Windows service
C:\Vizioncore\vFoglight\bin>remotemonitor -i
3/20/09-10-16 12:26:46.000 INFO [native] RemoteMonitor
(RemoteMonitor) service installed
Removing the Remote Monitor Windows service
C:\Vizioncore\vFoglight\bin>remotemonitor -r
3/20/09-10-16 12:28:37.000 INFO [native] Removed the
RemoteMonitor (RemoteMonitor) service installed from
'C:\Vizioncore\vFoglight'
3/20/09-10-16 12:31:27.924 INFO Starting up the embedded
database...
3/20/09-10-16 12:31:31.266 INFO Embedded database successfully
started
See also
•“shutdownDB” on page 47
•“foglight_db_upgrade” on page 48
Stopping the Embedded Database
shutdownDB
The shutdownDB command stops the embedded database.
48vFoglight
Command-Line Reference Guide
Syntax
shutdownDB
Options and arguments
None
Example
C:\Vizioncore\vFoglight\bin>shutdownDB
3/20/09-10-16 12:32:42.539 INFO Checking if the embedded database
still running...
3/20/09-10-16 12:32:46.599 INFO Successfully shutdown the
embedded
database
See also
•“runDB” on page 47
•“foglight_db_upgrade” on page 48
Upgrading the Database
foglight_db_upgrade
The foglight_db_upgrade command verifies the database version and upgrades it to
a higher version if necessary. This command is useful when you need to migrate data
from a vFoglight environment that is running a lower version of the embedded database.
This typically happens when the database upgrade that is initiated through the installer
fails to complete.
Syntax
foglight_db_upgrade
Options and arguments
None
Example
C:\Vizioncore\vFoglight\bin>foglight_db_upgrade
Managing the vFoglight Management Server49
Managing Passwords
3/20/09-10-16 12:35:47.249 INFO Starting up the embedded
database...
3/20/09-10-16 12:35:50.590 INFO Embedded database successfully
started log4j:WARN No appenders could be found for logger
(org.springframework.beans.factory.xml.
XmlBeanDefinitionReader).log4j:WARN Please initialize the
log4j system properly.
3/20/09-10-16 12:35:51.231 INFO Current database schema version:
5.2.4
3/20/09-10-16 12:35:51.231 INFO The database schema is up-todate.
No upgrade is required.
3/20/09-10-16 12:35:51.231 INFO Shutting down the embedded
database...
3/20/09-10-16 12:35:51.293 INFO Checking if the embedded database
still running...
3/20/09-10-16 12:35:55.400 INFO Successfully shutdown the
embedded
database
3/20/09-10-16 12:35:58.039 INFO Upgrade completed successfully.
See also
•“runDB” on page 47
•“shutdownDB” on page 47
Managing Passwords
Managing Encryption Keys
keyman
The keyman command allows you to change, add, or delete encryption keys, or
generate application tokens.
vFoglight stores encrypted passwords, with the exception of the database password in
the <vfoglight_home>/config/foglight.keystore file, and uses application tokens to look
up encryption keys in that file. The database password is stored in one of the following
entries of the <vfoglight_home>/config/foglight.config file, depending on the type of
the database:
50vFoglight
Command-Line Reference Guide
• foglight.database.password stores the password of the external database.
•
By default, the installation process encrypts the database password at installation time
using an encryption key. vFoglight stores the value of the encryption key in the
foglight.defaultkey entry of the <vfoglight_home>/config/mstkey.properties file.
To change the database password, issue the
to encrypt a password string using
that command to replace the value of the
foglight.database.embedded.password entry in <vfoglight_home>/config/
foglight.config as required. For example:
1
2
3
4
5
6
foglight.database.embedded.password stores the password of the
embedded database.
keyman command with the encpwd option
foglight.defaultkey, and then use the output of
foglight.database.password or
Open a Command Prompt window.
In the Command Prompt, navigate to the <vfoglight_home>/bin directory.
Issue the keyman command with the encpwd option to encrypt a password string.
Adds an application key
Changes the master key
Deletes an application key
Encrypts a password string using an encryption key
Generates an application token
Arguments
ArgumentDescription
key_nameSpecifies the name of the application key
key_pwdSpecifies the password that protects the key
key_textSpecifies the key value
new_keySpecifies the new key value
old_keySpecifies the old key value
pwd_strSpecifies the password value that is to be encrypted
In addition to the vFoglight Administration module that allows you to perform
administrative tasks using Administration dashboards, vFoglight Management Server
offers a command-line interface that you can use to manage agents, cartridges and
metrics. For example, you can use the command-line interface to install and activate
cartridges, manage licenses, and many other tasks.
The range and type of actions you can perform depends on the set of permissions
defined by your vFoglight user account.
This chapter contains the following sections:
Using the Command Line for Administration Tasks.....................................................................54
Logging In and Setting the Scope...............................................................................................70
•“Understanding the Command-Line Structure” on page 54
•“About Regular Expressions” on page 56
•“Getting Started with Administrative Commands” on page 64
•“Running Administrative Commands: Example” on page 65
•“Looking at Scope-Specific Commands” on page 66
Understanding the Command-Line Structure
The command-line expression used to issue administrative commands on the vFoglight
Management Server is comprised of two comma nds that are separated by a colon ‘:’ and
appear in the following order:
• fglcmd. Logs into the vFoglight Management Server and specifies the scope. The
scope defines the type of commands and the target entity they are to be issued
against. For example, the cartridge scope includes commands for installing and
activating cartridges.The scope can be set to one of the following values:
For complete information about fglcmd, see “Logging In and Setting the Scope”
on page 70.
• Scope-specific command. Carries out an administrative task such as a cartridge
deployment or license installation, and is compatible with the scope specified
with
fglcmd. For a complete list of vFoglight commands and their respective
scope, see “Looking at Scope-Specific Commands” on page 66.
See also
•“About Regular Expressions” on page 56
•“Getting Started with Administrative Commands” on page 64
56vFoglight
Command-Line Reference Guide
•“Running Administrative Commands: Example” on page 65
•“Looking at Scope-Specific Commands” on page 66
About Regular Expressions
A regular expression describes one or more text strings using predefined syntactic
elements. Regular expressions allow you to identify a list of text entries with a single
text string. A number of
in situations when you want to issue a single command against multiple objects.
The backslash character ‘\’ escapes a character or construct in order to process them as a
literal sequence. For example, “\\” matches a single backslash while “\{” matches a left
brace.
The following table lists the constructs that can be used in regular expressions and
describes their usage.
fglcmd commands support regular expressions. This is useful
Using the Command Line for Administration Tasks
SyntaxDescription
Managing Cartridges and Metrics57
abc
\\
\0n
The literal string contained within the construct.
In
fglcmd, using a literal string in a regular expression as
a command argument and enabling the command to use
regular expressions causes the command to return
matches that contain that text string. For example, typing
mydomain.corp as a regular expression finds matches
that contain that text string.
A backslash character in regular expressions can have
one of the following roles:
• Switch (or option). When it follows a command and is
followed by an appropriate character or text string, it
can provide additional input to the command.
• Escape character. Signifies that the character or text
string that follows should be interpreted as a literal
character. For example, on the command line, the
construct
while
rm * deletes all files in the current directory
rm \* deletes only the file whose name is *.
In regular expressions, the first backslash in a doublebackslash construct acts as an escape character while the
second is interpreted as a literal.
For example, the construct
matches
"\(hello world\)".
"\\(hello world\\)"
A one-digit number with a value between zero ‘0’ and
seven ‘7’.
\0nn
\0mnn
\xhh
A two-digit number with each digit having a value
between zero ‘0’ and seven ‘7’.
A three-digit number with the first digit having a value
between zero ‘0’ and three ‘3’, and the other two digits
with a value between zero ‘0’ and seven ‘7’.
A string containing a hexadecimal value of 0xhh where h
is a hexadecimal digit.
58vFoglight
Command-Line Reference Guide
SyntaxDescription
\uhhhh
\t
\n
\r
\f
\a
\e
\cx
[…]
[^…]
-
A string containing a hexadecimal value of 0xhhhh
where
h is a hexadecimal digit.
The TAB character ('\u0009').
The line feed character ('\u000A').
The carriage return character ('\u000D').
The form feed character ('\u000C').
The alert (bell) character ('\u0007').
The ESC character ('\u001B').
The CTRL character followed by a literal.
An OR expression. Brackets can be nested. Matches one
of the characters within the brackets.
For example,
[xyz] matches x, y, or z.
A negative OR expression. Matches any character that is
not contained within the brackets.
For example,
y, or z
[xyz] matches any character other than x,
A range.
For example,
[a-d] matches a, b, c, and d.
&&
Tip The precedence of constructs used for combining the operators escape '\', grouping “[ ]“,
range '-'. union “[ ][ ]“, or intersections “&&” (for example, in [a-z&&[aeiou]]) is done in the
following order: escape, grouping, range, union, and intersection.
.
\d
\D
A logical AND operator.
For example,
and
p.
[a-d]&&[m-p] matches a, b, c, d, m, n, o,
Any character
Any decimal digit.
Any character other than a decimal digit
Using the Command Line for Administration Tasks
SyntaxDescription
Managing Cartridges and Metrics59
\s
\S
\w
\W
?, ??, or ?+
*, *?, or *+
A white space character such as a tab, line feed, blank
space, or carriage return.
Any character other than tab, line feed, blank space, or
carriage return.
Any lowercase or uppercase alphabetic, or a numeric
character.
Any character other than lowercase or uppercase
alphabetic, or a numeric character.
When following a character, the construct implies that the
preceding character can appear one or zero times.
For example, each of the following constructs mean that
the character
•X?
• X??
• X?+
X can appear once or not at all in the result:
When following a character, the construct implies that the
preceding character can appear zero or more times.
For example, each of the following constructs mean that
the character
X can appear zero or more times in the
result:
•X*
• X*?
• X*+
+, +?, or ++
When following a character, the construct implies that the
preceding character can appear one or more times.
For example, each of the following constructs mean that
the character
•X+
• X+?
• X++
X can appear one or more times in the result:
60vFoglight
Command-Line Reference Guide
SyntaxDescription
{n}, {n}?, or {n}+
{n,}, {n,}?, or {n,}+
{n,m}, {n,m}?, or {n,m}+
When following a character, the construct implies that the
preceding character can appear exactly n times.
For example, each of the following constructs mean that
the character
X can appear exactly three times in the
result:
• X{3}
• X{3}?
• X{3}+
When following a character, the construct implies that the
preceding character can appear at least n times.
For example, each of the following constructs mean that
the character
• X{5,}
• X{5,}?
• X{5,}+
X can appear at least five times in the result:
When following a character, the construct implies that the
preceding character can appear at least n, but no more
than m times.
For example, each of the following constructs mean that
the character
X can appear at least four, but no more than
eight times in the result:
• X{4,8}
• X{4,8}?
• X{4,8}+
NM
|
\Q
\E
The construct implies that both characters appear in the
given order: the first one (N) is followed by the second
character (M) in the result, treating the two-character
construct as a literal expression. For example, the
expression
XY returns XY as a match.
The logical OR operator. For example, the construct X|Y
mean that either
X or Y can appear in the result.
Quotes all characters in the expression until it reaches \E.
For example, the construct
meaning as
"abc".
\Qabc\E has the same
Ends the quoting started by \Q.
Using the Command Line for Administration Tasks
SyntaxDescription
Groups
Managing Cartridges and Metrics61
()
\n
(?:N)
Parentheses are used to create capturing groups. A
capturing group in a text pattern is used to match substrings in expressions. For example, in the construct
X(Y*)Z, the capturing group (Y*) matches both Y and
YY from the input, returning both XYZ and XYYZ as the
result of the expression.
Capturing groups can be nested and numbered using their
opening parentheses from left to right. For example, in
the construct
(X(Y))(Z)), the groups are numbered as
follows:
•
((X(Y))(Z)): group 1
•
(X(Y)): group 2
•
(Y): group 3
•
(Z): group 4
Following a series of capturing groups, it acts as a back
reference to match of the nth group.
For example, the expression ([a-d])X\1X\1 has only one
capturing group whose number is one ‘1’. It returns the
following matches:
• aXaXa
• bXbXb
• cXcXc
• cXcXc
Indicates that N is a non-capturing group in a construct.
For example, in the construct
(?:Y) is not considered as a capturing group. The groups
(X(?:Y))(Z), the group
in the above construct are numbered as follows.
•
(X(?:Y))(Z): group 1
•
(X(?:Y)): group 2
•
(Z): group 3
For information about capturing groups and their syntax,
see “()” on page 61.
62vFoglight
Command-Line Reference Guide
SyntaxDescription
(?=X)
(?!X)
(?<=X)
(?<!X)
Boundary matching
Checks if the preceding character is followed by X in a
text string, without making X a part of the search result.
For example, when the construct
against
without making the
Hello world, it returns the H in the string
e that follows it a part of the result.
H(?=e) is matched
Checks if the preceding character is preceded by X in a
text string, without making X a part of the search result.
For example, when the construct
against
without making the
Hello world, it returns the e in the string
H that precedes it a part of the result.
e(?!H) is matched
Checks if the following character is followed by X in a
text string, without making X a part of the search result.
For example, when the construct
against
making the
Returns
Hello world, it returns the o in world, without
w a part of the result, but not the o in Hello.
A via zero-width positive look behind.
(?<=w)o is matched
Checks if the following character is preceded by X,
without making X a part of the search result.
For example, when the construct
against
making the
Hello world, it returns the w in world, without
w a part of the result.
(?<!o)w is matched
^
$
\b
The beginning of a line.
The end of a line.
A word boundary. Used as a delimiter, it implies that the
construct between the delimiters should be matched only
in those text strings that contain alpha-numeric characters
and are delimited by non-word character such as spaces
or punctuation marks. For example, the construct
\bdog\b finds one match of dog in the string My dog
is black
, and no matches in My dogs are black.
Using the Command Line for Administration Tasks
SyntaxDescription
Managing Cartridges and Metrics63
\B
\A
\G
\Z
\z
Unicode blocks
\p{Lu}
[\p{L}&&[^\p{Lu}]]
A non-word boundary. Used as a delimiter, \B is the
negated version of \b.
For example, the construct
dog in the string My dog is black, and one in My
dogs are black
.
\Bdog\B finds a match of
The beginning of the input. It has the same functionality
as ^, with the exception that it ignores any new line
characters.
The end of the previous match.
The end of the input string.It has the same functionality
as $, with the exception that it ignores any final
terminators.
The end of the input string.It has the same functionality
as $, with the exception that it ignores any line
terminators.
Any uppercase alphanumeric character.
Any lowercase alphanumeric character.
NoteRegular expressions in vFoglight follow the Java guidelines for regular expressions. For
complete information, you can refer to JDK documentation.
See also
•“Understanding the Command-Line Structure” on page 54
•“Getting Started with Administrative Commands” on page 64
•“Running Administrative Commands: Example” on page 65
•“Looking at Scope-Specific Commands” on page 66
64vFoglight
Command-Line Reference Guide
Getting Started with Administrative Commands
You can issue the administrative commands on the computer running the vFoglight
Management Server, or on a remote computer in your network. Your vFoglight
installation includes a compressed file, fglcmd.zip, that contains all of the administrative
commands. To get started, make sure you have the vF og light Management Server
running, and, if you are planning to access the administrative interface remotely, copy
and extract the contents of the compressed file to your remote computer.
To get started with administrative commands:
NoteThis procedure continues from “Getting Started with vFoglight Commands” on page 32.
1
2
If you want to use the fglcmd interface on a remote computer in your monitoring
network, complete the following steps:
a
Copy the <vfoglight_home>/tools/fglcmd.zip file from the computer that has a
running instance of the vFoglight Management Server to the remote computer,
where vfoglight_home refers to the installation directory of the vFoglight
Management Server.
b
Extract the contents of the fglcmd.zip file to the remote computer.
Specify the directory that contains the vFoglight Management Server commands,
either <vfoglight_home>/bin or the directory on the remote computer (see step
1), by completing one of the following steps.
• If you want to use the command prompt, open a Command Prompt window
and navigate to the appropriate directory.
or
• If you want to use a vFoglight Management Server command in a script,
ensure that your script references the appropriate directory.
For more information about vfoglight_home, see “About Syntax Conventions” on
page 28.
3
Issue one or more administrative commands using command prompt or a script.
From here, you can proceed to any of the following procedures as required:
•“Logging In and Setting the Scope” on page 70
•“Managing Agents” on page 72
•“Managing Cartridges” on page 128
•“Managing vFoglight Licenses” on page 142
Managing Cartridges and Metrics65
Using the Command Line for Administration Tasks
•“Running Utility Commands” on page 145
See also
•“Understanding the Command-Line Structure” on page 54
•“About Regular Expressions” on page 56
•“Running Administrative Commands: Example” on page 65
•“Looking at Scope-Specific Commands” on page 66
•“Listing Administrative Commands” on p a ge 69
Running Administrative Commands: Example
In this example, you will issue an administrative command that lists the agent packages
that can be deployed to the vFoglight Agent Manager using the
The syntax of the
For more information about the command syntax, see “Understanding the Command-
Line Structure” on page 54.
packages command.
In this example, you will issue the packages administrative command (see page 78) to
list all vFoglight Agent Manager instances and the agent packages that can be deployed
to each Agent Manager instance.
To list agent packages:
NoteThis procedure continues from “Getting Started with Administrative Commands” on
page 64.
• In the Command Prompt window type the following command:
Agent-WindowsXP-windows-/5\.1.*/-ia32,x86_64
Agent Package Cartridge Name: OSCartridge-WindowsXP
Agent Package Cartridge Version: 5.2.4
Agent Package OS: windows
Agent Package OS Version: /5\.1.*/
Agent Package OS Architecture: ia32,x86_64
Client, see “packages” on page 175.
vFoglight includes a selection of commands that allow one to perform administrative
tasks using a command-line interface, such as installing and deploying agents, adding or
removing licenses, assigning schedules, or exporting various types of metrics. The table
below lists vFoglight commands in alphabetical order and identifies their scope. For
more information about command scope, see “Understanding the Command-Line
Structure” on page 54.
Managing Cartridges and Metrics67
Using the Command Line for Administration Tasks
ScopeCommand
NameDescriptionNameDescription
agent
Manages
agents and
clients
activate
clients
clientupgrade
create
deactivate
delete
deploy
getlog
list
logs
packages
setschedule
showschedule
Activates one or more vFoglight agent instances
Shows a list of vFoglight client instances
Upgrades one or more remote instances of the
vFoglight Agent Manager
Creates one or more vFoglight agent instances
Deactivates one or more vFoglight agents
Deletes one or more vFoglight agent instances
Deploys one or more vFoglight agent packages
Retrieves a copy of an agent log file
Shows a list of vFoglight agent instances
Shows a list of agent log files
Shows a list of available agent packages
Assigns a blackout schedule to one or more
vFoglight agent instances
Shows the blackout schedule assigned to one or
more vFoglight agent instances.
start
stop
types
Starts the data collection for one or more
vFoglight agent instances
Stops the data collection for one or more
vFoglight agent instances
Shows a list of vFoglight agent types sorted by
client ID
68vFoglight
Command-Line Reference Guide
ScopeCommand
NameDescriptionNameDescription
cartridge
license
schedule
script
security
Manages
cartridges
Manages
licenses
Lists
schedules
Runs scripts
Manages
users and
groups
disable
enable
install
list
uninstall
import
list
remove
list
run
assigngroup
assignrole
Deactivates a vFoglight cartridge
Activates an installed vFoglight cartridge
Installs a cartridge on the vFoglight
Management Server
Lists all installed vFoglight cartridges
Uninstalls a vFoglight cartridge
Installs a vFoglight license
Shows a list of installed vFoglight licenses
Removes a vFoglight license using the license
serial number
Shows a list of all vFoglight schedules
Runs a script
Adds or removes a user from a group
Adds or removes a role from a group
support
Creates
support
bundles
creategroup
createuser
deletegroup
deleteuser
bundle
Creates a group
Creates a user
Deletes a group
Deletes a user
Generates a support bundle file
Managing Cartridges and Metrics69
Using the Command Line for Administration Tasks
ScopeCommand
NameDescriptionNameDescription
topology
util
Assigns
blackoutobject
Assigns a blackout schedule
blackout
schedules
Contains
configexport
Exports the monitoring policy to an XML file
utility
commands
configimport
env
Imports the monitoring policy
Outputs the values of server configuration
parameters
metricexport
Exports metric observations to a file using a
metric query
topologyexport
Exports the value of one or more properties of a
topology object to an XML file
uiexport
uiimport
uilist
Exports a UI module into a ZIP file
Imports a UI module from a ZIP file
Shows a list of deployed UI modules
Listing Administrative Commands
The fglcmd command includes an option that you can use to list all of the administrative
commands and their descriptions, grouped by their respective scope.
To list administrative commands:
NoteThis procedure continues from “Getting Started with Administrative Commands” on
page 64.
• At the command prompt, use the following syntax to list vFoglight commands:
fglcmd connection_options -cmd commands
For complete information about the fglcmd command syntax, see Syntax in
“fglcmd” on page 70.
70vFoglight
Command-Line Reference Guide
For complete information about fglcmd, see “Logging In and Setting the Scope” on
page 70.
See also
•“Understanding the Command-Line Structure” on page 54
•“Getting Started with Administrative Commands” on page 64
•“Running Administrative Commands: Example” on page 65
For example:
fglcmd -usr foglight -pwd foglight -cmd commands
A list of vFoglight commands appears in the Command Prompt window, grouped
by the scope. Here is a portion of that output:
agent:
activateActivates an agent.
clientsShows a list of known clients.
clientupgradeUpgrades a remote client.
createCreates an instance of an agent.
deactivateDeactivates an agent.
Logging In and Setting the Scope
fglcmd
The fglcmd command connects to the vFoglight Management Server and sets the scope
for the administrative command.
Contains utility commands.
NoneTurns the debugging on.
server_portSpecifies the server’s port number. The default
port number is
8080 (HTTP) or 8443 (HTTPS).
For more information on default port
assignments, see the Administration and Configuration Guide.
pwd
srv
passwordSpecifies the vFoglight password.
server_nameSpecifies the server’s name.
server_IP_address Specifies the server’s IP address.
72vFoglight
Command-Line Reference Guide
OptionArgumentDescription
ssl
NoneConnects to the vFoglight Management Server
through a secure HTTP connection (HTTPS).
Unless this option is specified, fglcmd uses an
HTTP connection. For information about default
port numbers, see “port” on page 71.
true or falseIndicates wheth er to list agent instances that
can (true) or cannot be activated (false).
active
true or falseIndicates wheth er to list agent instances that
are active (true) or inactive (false).
76vFoglight
Command-Line Reference Guide
OptionArgumentDescription
adapter
agentid
all
datacollection
deletable
host
name
namespace
adapter_IDAn explicit text string or a regular expression
that identifies one or more vFoglight adapters.
agent_IDIdentifies an instance of a vFoglight agent that
is to be listed.
NoneIndicates that all agent instances should be
listed.
true or falseIndicates whether to list vFoglight agent
instances for which the data collection is
(true) or is not enabled (false).
true or falseIndicates whether to list vFoglight agent
instances that can (true) or cannot be deleted
(false).
host_nameAn explicit text string or a regular expression
that specifies the name of one or more hosts
that are running an instance of a vFoglight
agent.
agent_nameAn explicit text string or a regular expression
that specifies the name of one or more
vFoglight agent instances that are to be listed.
agent_namespaceAn explicit text string or a regular expression
that specifies the name of one or more
vFoglight agent instances in the specified
name space.
regex
NoneInterprets the adapter_ID, agent_name,
agent_namespace, agent_type, or host_name
arguments as regular expressions.
For a sample regular expression used to
specify a host name, see “Example” on
page 74.
Managing Cartridges and Metrics77
OptionArgumentDescription
Managing Agents
type
agent_typeAn explicit text string or a regular expression
that specifies one or more vFoglight agent
types.
The selection of available agent types depends
on the collection of deployed cartridges. For
example, a basic vFoglight Management
Server installation that includes the Cartridge
for Operating Systems can offer a number of
different agent types. For example:
• OSCartridge/ApacheSvr
• OSCartridge/AppMonitor
• OSCartridge/LogFilter
• OSCartridge/NetMonitor
• OSCartridge/SNMP
• OSCartridge/WebMonitor
• OSCartridge/Windows_System
NoteThe above list is just a subset of the agent
types that come with the Cartridge for
Operating Systems and should be used only
as an illustration. For a complete list of
agents that are included with the Cartridge
for Operating Systems, see the Cartridge for Operating Systems User Guide.
Always use the fully qualified name of the
agent type. For example, the agent types that
come with the OS Cartridge agent are named
using the following syntax:
OSCartridge/agent_name
For example, the fully qualified name of the
AppMonitor agent type is
AppMonitor
. Any attempts to use a partial
type name, without the
for example,
NoneIndicates that all i nstances of the vFoglight Agent
Manager should be selected.
build_IDAn ex plicit t ex t string or a regular expression that
selects one or more vFoglight Agent Manager
instances with the specified build ID.
client_IDAn explicit text string or a regu lar expression that
identifies one or more instances of the vFoglight
Agent Manager.
display_nameAn explicit text string or a regular expression that
specifies one or more display devices that are
running an instance of the vFoglight Agent
Manager.
versionAn explicit text string or a regular expression that
selects one or more vFoglight Agent Manager
instances with the specified version.
host_nameAn explicit text string or a regular expression that
specifies one or more host names.
NoneInterprets the build_ID, cl ient_ID, display_name,
host_name, version, or upgradable arguments as
regular expressions.
For a sample regular expression used to specify a
host name, see “Example” on page 74.
upgradable
true or falseIndicates whether one or more vFoglight Agent
Manager instances can (true) or cannot be
upgraded (false). It can be set to a regular
expression.
NoneIndicates that all i nstances of the vFoglight Agent
Manager should be selected.
build_IDAn ex plicit t ex t string or a regular expression that
selects one or more vFoglight Agent Manager
instances with the specified build ID.
client_IDAn explicit text string or a regu lar expression that
identifies one or more display devices that are
running an instance of the vFoglight Agent
Manager.
display_nameAn explicit text string or a regular expression that
specifies the name of one or more display devices
that are running an instance of the vFoglight Agent
Manager.
versionAn explicit text string or a regular expression that
selects one or more vFoglight Agent Manager
instances with the specified version.
NoneIn cases where multiple agents are selected, it
indicates that the command should be performed
against all selected agent installers and packages.
host_nameAn explicit text string or a regular expression that
specifies one or more host names.
list
regex
NoneLists available upgrade versions.
NoneInterprets the architecture, build_ID, client_ID,
display_name, host_name, nam e, OS_architecture,
OS_name, OS_version, package_ID,
pkg_OS_name, pkg_OS_version, version, or
upgradable arguments as regular expressions.
For a sample regular expression used to specify a
host name, see “Example” on page 74.
86vFoglight
Command-Line Reference Guide
OptionArgumentDescription
timeout
secondsSpecifies the maximum time in seconds for the
timeout period. If the timeout i not specified or is
set to zero '0', the command waits for the upgrade
to complete.
tobuild
build_IDSpecifies the build number to which the selected
instances of the vFoglight Agent Manager should
be upgraded.
toversion
versionSpecifies the version to which the selected
instances of the vFoglight Agent Manager should
be upgraded.
upgradable
true or falseIndicates whether one or more vFoglight Agent
Manager instances can (true) or cannot be
upgraded (false). It can be set to a regular
expression.
Client ID: tor012991.prod.quest.corp#32b1c51d-6208-435c-bdad2a8916ef3a89
Client Name: tor012991.prod.quest.corp
Client Version: 5.2.4 (524-20080811-0230)
Upgradable: true
No upgrades are available for this client at this moment
Deploying Agent Packages
deploy
The deploy command deploys one or more vFoglight agent packages.
In most cases, vFoglight cartridges include one or more agent packages that are used to
collect metrics from monitored hosts. You can deploy an agent package after installing
the cartridge that includes that agent package on the vFoglight Management Server. For
information on how to install a cartridge using the
fglcmd interface, see “install” on
Managing Cartridges and Metrics87
Managing Agents
page 128; to find out how to list available agent packages using fglcmd, see
“packages” on page 78.
OSCartridge-Agent-WindowsXP-windows-/5\.1.*/-ia32,x86_64 on
tor012991.prod.quest.corp#cf238d96-3a56-4
5d6-a33e-b88bb7d4ff55#FglAM:tor012991.prod.quest.corp/
cf238d96-3a56-45d6-a33e-b88bb7d4ff55/installer
NoteFor a sample output of this command in a monitoring environment that uses the vFoglight
Client, see “deploy” on page 173.
See also
•“create” on page 91
•“delete” on page 95
•“activate” on page 99
•“deactivate” on page 104
•“start” on page 108
•“stop” on page 112
Creating or Deleting Agent Instances
This section describes the following commands:
•“create” on page 91
•“delete” on page 95
create
The create command produces one or more vFoglight agent instances.
You can create an agent instance after deploying the agent package on the vFoglight
Management Server. To create an agent instance that collects data, you first create the
agent instance, activate it, and then start the data collection for that agent instance.
Similarly, when you want to remove an agent instance, use a reverse order of actions:
first stop the agent instance, deactivate it, and then delete it.
For information on how to deploy an agent package using the
“deploy” on page 86; for information on how to delete agent instances, see “delete” on
page 95.
fglcmd interface, see
92vFoglight
Command-Line Reference Guide
Scope
agent
Syntax
fglcmd connection_options -cmd agent:create -name name
NoneIndicates that all instances of the vFoglight Agent
Manager should be selected.
build_IDAn explicit text string or a regular expression that
selects one or more vFoglight Agent Manager
instances with the specif ied build ID.
client_IDAn explicit text string or a regular expression that
identifies one or more display devices that are
running an instance of the vFoglight Agent
Manager.
display_nameAn explicit text string or a regular expression that
specifies one or more display devices that are
running an instance of the vFoglight Agent
Manager.
versionAn explicit text string or a regular expression that
selects one or more vFoglight Agent Manager
instances with the specified version.
NoneIn cases where multiple agents are selected, it
indicates that all selected agents should be created.
host_nameAn explicit text string or a regular expression that
specifies one or more host names.
OptionArgumentDescription
Managing Cartridges and Metrics93
Managing Agents
name
regex
nameAn explicit text string or a regular expression that
specifies one or more agent names.
NoneInterprets the build_ID., client_ID, display_name,
host_name, version, or upgradable arguments as
regular expressions.
For a sample regular expression used to specify a
host name, see “Example” on page 74.
94vFoglight
Command-Line Reference Guide
OptionArgumentDescription
type
agent_typeAn explicit text string or a regular expression that
specifies one or more vFoglight agent types.
The selection of available agent types depends on
the collection of deployed cartridges. For example,
a basic vFoglight Management Server installation
that includes the Cartridge for Operating Systems
can offer a number of different agent types. For
example:
• OSCartridge/ApacheSvr
• OSCartridge/AppMonitor
• OSCartridge/LogFilter
• OSCartridge/NetMonitor
• OSCartridge/SNMP
• OSCartridge/WebMonitor
• OSCartridge/Windows_System
NoteThe above list is just a subset of the agent types
that come with the Cartridge for Operating
Systems and should be used only as an
illustration. For a complete list of agents that are
included with the Cartridge for Operating
Systems, see the Cartridge for Operating Systems User Guide.
Always use the fully qualified name of the agent
type. For example, the agent types that come with
the OS Cartridge agent are named using the
following syntax:
OSCartridge/agent_name
For example, the fully qualified name of the
AppMonitor agent type is
AppMonitor
name, without the
example,
AppMonitor
. Any attempts to use a partial type
OSCartridge/ prefix, for
AppMonitor instead of OSCartridge/
result in an error.
OSCartridge/
upgradable
true or falseIndicates whether one or more vFoglight
Agent Manager instances can (true) or cannot be
upgraded (false). It can be set to a regular
expression.
NoteIf successful, this command does not generate any output.
See also
•“deploy” on page 86
•“delete” on page 95
•“activate” on page 99
•“deactivate” on page 104
•“start” on page 108
•“stop” on page 112
delete
The delete command removes one or more vFoglight agent instances.
To delete an agent instance, a typical flow of actions requires you to first stop the
agent’s data collection, deactivate it, and then delete the instance. However , the
command includes options and arguments, such as
-datacollection true, that let you override that flow and delete active agent
-active true and
instances that are collecting data.
For information on how to deactivate an agent instance using the
true or falseIndicates whether to delete agent instances
that can (true) or cannot be activated (false).
true or falseIndicates whether to delete agent instances
that are active (true) or inactive (false).
adapter_IDAn explicit text string or a regular expression
that identifies one or more vFoglight adapters.
agent_IDIdentifies an instance of a vFoglight agent that
is to be deleted.
NoneIndicates that all agent instances should be
deleted.
true or falseIndicates whether to delete vFoglight agent
instances that are (true) or are not collecting
data (false).
true or falseIndicates whether to delete vFoglight agent
instances that can (true) or cannot be deleted
(false).
NoneIn cases where multiple agents are selected, it
indicates that all selected agents should be
deleted.
Managing Cartridges and Metrics97
OptionArgumentDescription
Managing Agents
host
name
namespace
nowait
regex
host_nameAn explicit text string or a regular expression
that specifies one or more host names.
agent_nameAn explicit text string or a regular expression
that specifies the name of one or more
vFoglight agents that are to be deleted.
agent_namespaceAn explicit text string or a regular expression
that specifies the name of one or more
vFoglight agent instances in the specified
name space.
NoneIndicates that the command should not wait
for the selected agents to finish processing
before deleting the selected vFoglight agent
instances.
NoneInterprets the adapter_ID, agent_name,
agent_namespace, agent_type, or host_name
arguments as regular expressions.
For a sample regular expression used to
specify a host name, see “Example” on
page 74.
98vFoglight
Command-Line Reference Guide
OptionArgumentDescription
typeagent_typeAn explicit text string or a regular expression
that specifies one or more vFoglight agent
types.
The selection of available agent types depends
on the collection of deployed cartridges. For
example, a basic vFoglight Management
Server installation that includes the Cartridge
for Operating Systems can offer a number of
different agent types. For example:
• OSCartridge/ApacheSvr
• OSCartridge/AppMonitor
• OSCartridge/LogFilter
• OSCartridge/NetMonitor
• OSCartridge/SNMP
• OSCartridge/WebMonitor
• OSCartridge/Windows_System
NoteThe above list is just a subset of the agent
types that come with the Cartridge for
Operating Systems and should be used only
as an illustration. For a complete list of
agents that are included with the Cartridge
for Operating Systems, see the Cartridge for Operating Systems User Guide.
Always use the fully qualified name of the
agent type. For example, the agent types that
come with the OS Cartridge agent are named
using the following syntax:
OSCartridge/agent_name
For example, the fully qualified name of the
AppMonitor agent type is
AppMonitor
. Any attempts to use a partial
type name, without the
for example,
NoteIf successful, this command does not generate any output.
See also
•“deploy” on page 86
•“create” on page 91
•“activate” on page 99
•“deactivate” on page 104
•“start” on page 108
•“stop” on page 112
Activating or Deactivating Agent Instances
This section describes the following commands:
•“activate” on page 99
Managing Agents
•“deactivate” on page 104
activate
The activate command enables one or more vFoglight agent instances.
T o create an agent instance that collects data, you firs t create the agent instance, activate
it, and then start the data collection for that agent instance. Similarly, when you want to
remove an agent instance, use a reverse order of actions: first stop the agent instance,
deactivate it, and then delete it.
For information on how to create an agent instance, see “create” on page 91; to find out
how to deactivate an agent, see “deactivate” on page 104.