立即与支持人员聊天
与支持团队交流

Foglight for Virtualization Enterprise Edition 8.9.3 - Command-Line Reference Guide

About the Command-Line Interface Managing the Foglight Management Server Managing the Foglight Agent Manager Managing Agents, Cartridges, and Metrics

blackouts

The blackouts command lists all blackouts currently assigned to topology objects. A blackout schedule defines the periods of time during which no alarms are raised for a specified object instance.

Blackout schedules can be assigned to object instances using the blackoutobject command (see page 104).

fglcmd connection_options -cmd topology:blackouts [-query "topology_query"]

connection_options

Specifies the user name and password for the Foglight Management Server, as well as the machine name and port number, if necessary. Alternatively, fglcmd can retrieve this information from a user-specific properties file. For more information on how to specify connection options on the command line, see Logging In and Setting the Scope . For details on using a properties file, see Using a Properties File to Supply Connection Information .

query

topology_query

Contains the topology query that selects one or more topology objects. Typically, a topology query uses topology types and object names as parameters to retrieve one or more object instances. To find out more about the syntax for writing queries, see the Administration and Configuration Help.

NOTE: The query must be enclosed in quotation marks. Failing to do so can produce unexpected results.

Additionally, on Unix platforms, for query expressions that select objects of the
Host type and start with an exclamation mark ‘!’, the exclamation mark must be escaped with a back slash ‘\’. For example:

Unix
"\!Host where name like 'host1%'"

Windows
"!Host where name like 'host1'"
C:\Quest\Foglight\bin>fglcmd -usr foglight -pwd foglight -cmd topology:blackouts -query "Host where name = 'host1.example.com'"

Listing Schedules

The list command generates a list of all Foglight schedules.

fglcmd connection_options -cmd schedule:list

connection_options

Specifies the user name and password for the Foglight Management Server, as well as the machine name and port number, if necessary. Alternatively, fglcmd can retrieve this information from a user-specific properties file. For more information on how to specify connection options on the command line, see Logging In and Setting the Scope . For details on using a properties file, see Using a Properties File to Supply Connection Information .

C:\Quest\Foglight\bin>fglcmd -usr foglight -pwd foglight -cmd schedule:list

list

The list command generates a list of all Foglight schedules.

fglcmd connection_options -cmd schedule:list

connection_options

Specifies the user name and password for the Foglight Management Server, as well as the machine name and port number, if necessary. Alternatively, fglcmd can retrieve this information from a user-specific properties file. For more information on how to specify connection options on the command line, see Logging In and Setting the Scope . For details on using a properties file, see Using a Properties File to Supply Connection Information .

C:\Quest\Foglight\bin>fglcmd -usr foglight -pwd foglight -cmd schedule:list

Running Scripts

The run command runs a script.

Typically, this command is used to run scripts that are deployed with Foglight cartridges, and is used in maintenance and support tasks when required.

fglcmd connection_options -cmd script:run -f file_path

f

file_path

Specifies the path and name of the script file that is to be executed.

C:\Quest\Foglight\bin>fglcmd -usr foglight -pwd foglight -cmd script:run -f my.script
相关文档

The document was helpful.

选择评级

I easily found the information I needed.

选择评级