I am getting errors when I deploy a package
Is there something wrong with my command?
# fglcmd.sh -usr foglight -pwd foglight -cmd agent:deploy -host myhost.com -packageid OSCartridge-SunOS5.10-5_2_2-AgentPackage
Error : No agent packages are selected by current options for agent installer
One must use the -regex switch and use a wildcard .*{STRING.EN}.* combination to deploy the cartridge.
1) List the OSCartridges for the types of SPIDs running:
NOTE: One can ignore or eliminate the pipe & grep for 'OSC' to list all cartridges available for the SPID or Foglight Agent Manager (FglAM) O/S types currently running.
# bin/fglcmd{.sh or .bat} -usr foglight -pwd foglight -port 8080 -cmd agent:packages | grep OSC
Agent Package ID: OSCartridge-SunOS5.10-5.2.3-OSCartridge-Agent-SunOS5.10-solaris-/5\.10.*/-sparc
Agent Package Cartridge Name: OSCartridge-SunOS5.10
2) Then test the command first before deploying.
An example of using the '-test' switch indicating the SunOS5.10 cartridge would be applied using the wildcard syntax which must include .*{STRING.EN}.*
# bin/fglcmd{.sh or .bat} -usr foglight -pwd foglight -port 8080 -cmd agent:deploy -packageid OSCartridge.*SunOS.* -host mylabbox.* -test -regex
This command is running in test mode. No packages will be deployed.
The following lines show what would be deployed if the command were running without the -test option.
Package OSCartridge-SunOS5.10-5.2.3-OSCartridge-Agent-SunOS5.10-solaris-/5\.10.*/-sparc would be deployed on mylabbox#93cbd601-1c04-4842-90d8-dda3b53ae878#FglAM:mylabbox/93cbd601-1c04-4842-90d8-dda3b53ae878/installer
Note that the O/S cartridges will automatically determine the appropriate version to apply to your O/S platform.
3) Deploy the cartridge by eliminating the -test switch.
In this example for the DB2 cartridge, we include more of the cartridge string to include the O/S version since the non-O/S cartridge versions will not auto-detect the O/S version:
# bin/fglcmd{.sh or .bat} -usr foglight -pwd foglight -port 8080 -cmd agent:deploy -packageid DB2Cartridge.*SunOS5_10.* -host myhost.* -regex
**** Example deploying the O/S cartridge to any host with 'db' in their name. ****
# bin/fglcmd.sh -usr foglight -pwd foglight -port 8080 -cmd agent:deploy -force -regex -clientname .*db.* -packageid OSC.*
Foglight determines the correct package for the OS.
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center