Chat now with support
Chat with Support

Foglight 6.1.0 - Command-Line Reference Guide

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

Logging In and Setting the Scope

The fglcmd command connects to the Foglight Management Server and sets the scope for the administrative command.

 

fglcmd {(-usr user_name -pwd password)|-authtoken token} [-debug]
[-port server_port] [-srv {server_name|server_IP_address}] [-ssl]
[-proxy proxy_uri] -cmd {scope:command command_options|commands}

 

NOTE: The usr, pwd, debug, port, srv, and ssl options are used to specify connection information. Another way of specifying connection options is using a properties file, fglcmd.properties. When configured, fglcmd uses the information in that file to retrieve connection parameters which eliminates the need to specify them on the command line each time you issue an fglcmd command. For more information, see Using a Properties File to Supply Connection Information .

 

 

 

 

C:\Quest\Foglight\bin>fglcmd -usr foglight -pwd foglight -cmd agent:clients -host .*.corp -regex

fglcmd

The fglcmd command connects to the Foglight Management Server and sets the scope for the administrative command.

 

fglcmd {(-usr user_name -pwd password)|-authtoken token} [-debug]
[-port server_port] [-srv {server_name|server_IP_address}] [-ssl]
[-proxy proxy_uri] -cmd {scope:command command_options|commands}

 

NOTE: The usr, pwd, debug, port, srv, and ssl options are used to specify connection information. Another way of specifying connection options is using a properties file, fglcmd.properties. When configured, fglcmd uses the information in that file to retrieve connection parameters which eliminates the need to specify them on the command line each time you issue an fglcmd command. For more information, see Using a Properties File to Supply Connection Information .

 

 

 

 

C:\Quest\Foglight\bin>fglcmd -usr foglight -pwd foglight -cmd agent:clients -host .*.corp -regex

Using a Properties File to Supply Connection Information

Foglight connection information, such as the user name and password, can be supplied on the command line, using a specific set of command-line options, or through a properties file. Specifying connection options in the properties file eliminates the need to type them each time you issue an fglcmd command.

This describes the required structure and location of that file. For information on specifying connection options on the command line, see Logging In and Setting the Scope .

File name and location

~/fglcmd.properties

C:\Documents and Settings\<user_name>\fglcmd.properties

usr=user_name
pwd=password
TIP: If you specify the password in this file, it is recommended to read-protect the properties file. For example, to read-protect a file on Unix, use the -R world option; on Windows, files can be read-protected by associating read permissions with particular users or groups.
[srv={server_name|server_IP_address}]
[port=server_port]
[debug={true|false}]
[ssl={true|false}]
IMPORTANT: The cmd option, used to specify a specific fglcmd command, cannot be set through the properties file. This option can only be used when issuing fglcmd commands.

C:\Documents and Settings\<user_name>\fglcmd.properties

C:\Quest\Foglight\bin>fglcmd -cmd agent:clients -host .*.corp -regex

The document was helpful.

Select Rating

I easily found the information I needed.

Select Rating