Solution:
Syntax
fglcmd connection_options -cmd agent:deploy {-packageversion version|-packageid
"package_ID"|-allpackages|-allinstallers} {-host host_name|-clientname
display_name|-clientid client_ID|-clientbuild build_ID|-clientversion
version|-allclients} [-packageos pkg_OS_name]
[-packageosversion pkg_OS_version] [-packagearch OS_architecture]
[-osversion OS_version] [-osname OS_name] [-arch architecture]
[-installerid agent_installer_ID] [-installername agent_installer_name]
[-regex] [-test] [-disable_platform_check] [-force]
[-upgradable {true|false}]
Example
C:\<INSTALL_DIR>\Foglight\bin>fglcmd -usr foglight -pwd foglight -cmd
agent:deploy -host Host1 -clientid Host1#be05acc0-6179-4878-a274-afcd5075260a
-packageid HostAgents-5.7.5.3-Host Agents
Successfully installed agent package "HostAgents-5.7.5.3-Host Agents" on
"Host1#be05acc0-6179-4878-a274-afcd5075260a#FglAM:Host1/be05acc0-6179-4878-
a274-afcd5075260a/installer".
Example
C:\INSTALL_DIR>\Foglight\bin>fglcmd -usr foglight -pwd foglight -cmd agent:clients -host .*.corp -regex
Client ID: host1.example.com#32b1c51d-6208-435c-bdad-2a8916ef3a89
Client Name: host1.example.com
Adapter ID: FglAM
Client Version: 5.7.5.3 (5.7.5.3-2/11/160811-0230)
Host Name: host1.example.com
OS: windows 5.1 (ia32)
NOTE: Provide appropriate user and password. If not using http port 8080, provide -port switch with proper value
Reference: Foglight 5.7.5 –
Command-Line Reference Guide