Command Line Interfaceboom comes with a comprehensive command line interface in form of the java library boom_cli.jar.
You can start right away by checking the available command and options by having a look at the help/usage of the command line interface via: java -jar boom_cli.jar -h boom CLI Usage
Create Configuration File
java -jar boom_cli.jar [-sDESCRIPTION Generates a configuration file with stored connection parameters. EXAMPLES java -jar boom_cli.jar -u user -p password -fs boom_cli.cfg java -jar boom_cli.jar -s servername.domain.com:23022 -u user -p password -fs boom_cli.cfg GETNODEGROUPS
java -jar boom_cli.jar -f <conffile> -c GETNODEGROUPS -cc <option> [-a <argument1>] [-a <argument2>] ...DESCRIPTION Checks if a NodeGroup contains a specified Node. COMMAND -c "GETNODEGROUPS" OPTION -cc "print"|"list"|"listnames"|"listpaths"|"checkname"|"checkpath" (required)
ARGUMENTS -a NodeGroup name(s) - for checkname option -a path(s) - for checkpath option EXAMPLES Check if the NodeGroups "group01" and "group02" do exist: java -jar boom_cli.jar -f boom_cli.cfg -c GETNODEGROUPS -cc checkname -a group01 -a group02Check if NodeGroup path exist: java -jar boom_cli.jar -f boom_cli.cfg -c GETNODEGROUPS -cc checkpath -a /root/_Groups/TEstMYCheck if short (without /root/_Group) NodeGroup path exist: java -jar boom_cli.jar -f boom_cli.cfg -c GETNODEGROUPS -cc checkpath -a /TEstMYPrint nodegroups.xml file: java -jar boom_cli.jar -f boom_cli.cfg -c GETNODEGROUPS -cc printPrints paths and names of all existing NodeGroups: java -jar boom_cli.jar -f boom_cli.cfg -c GETNODEGROUPS -cc listPrints names of all existing NodeGroups: java -jar boom_cli.jar -f boom_cli.cfg -c GETNODEGROUPS -cc listnamesPrints paths of all existing NodeGroups: java -jar boom_cli.jar -f boom_cli.cfg -c GETNODEGROUPS -cc listpaths GETAGENTCARDS
java -jar boom_cli.jar -f <conffile> -c GETAGENTCARDS [-cc ngname [-a "NodeGroup name1"] [-a "NodeGroup name2"]...]DESCRIPTION Prints agent list. Columns are Agent_ID, hostname, IP, OS. COMMAND -c "GETAGENTCARDS" OPTION -cc "ngname"|"ngpath"|"agtid" (option requires at least one argument specified.) ARGUMENTS -a "NodeGroup name"|"NodeGroup path" (depends on option specified) EXAMPLES List all agents that belong to the given NodeGroup: java -jar boom_cli.jar -f boom_cli.cfg -c GETAGENTCARDSList agents for the specified NodeGroups: java -jar boom_cli.jar -f boom_cli.cfg -c GETAGENTCARDS -cc ngname -a group01 -a group02List agents for the specified NodeGroup paths: java -jar boom_cli.jar -f boom_cli.cfg -c GETAGENTCARDS -cc ngpath -a "/root/_Groups/TEstMY" -a "/root/_Groups/WWW"List agents for the specified AgentIDs: java -jar boom_cli.jar -f boom_cli.cfg -c GETAGENTCARDS -cc agtid -a 6ff38d81-9e79-4cb6-9571-a7e2622f3297 -a 8lk38d81-9e79-c5b6-9571-a7e4892f3034 CHECK_NG4AGENT
java -jar boom_cli.jar -f <conffile> -c CHECK_NG4AGENT -cc "NodeGroup name" -a <agentID1> [-a <agentID2>] ...DESCRIPTION This command checks if given NodeGroup contains the specified Agent(s). Result code indicates count of Agents not linked to given NodeGroup COMMAND -c "CHECK_NG4AGENT" OPTION -cc "NodeGroup name" (required) ARGUMENTS -a Agent_ID(s) (at least one argument must be specified) EXAMPLES Check if the NodeGroup "Group01" contains the given agent: java -jar boom_cli.jar -f boom_cli.cfg -c CHECK_NG4AGENT -cc Group01 -a 6ff38d81-9e79-4cb6-9571-a7e2622f3297 CHECK_NGPATH4AGENT
java -jar boom_cli.jar -f <conffile> -c CHECK_NGPATH4AGENT -cc "NodeGroup path" -a <agentID1> [-a <agentID2>] ...DESCRIPTION This command checks if given NodeGroup contains the specified Agent(s). Result code indicates count of Agents not linked to given NodeGroup COMMAND -c "CHECK_NGPATH4AGENT" OPTION -cc "NodeGroup path" (at least one argument must be specified) ARGUMENTS -a Agent_ID(s) EXAMPLES Check if the NodeGroup "Group01" contains the given agent: java -jar boom_cli.jar -f boom_cli.cfg -c CHECK_NGPATH4AGENT -cc /root/_Groups/TEstMY -a 6ff38d81-9e79-4cb6-9571-a7e2622f3297 GETPOLICIES
java -jar boom_cli.jar -f <conffile> -c CLI_GETPOLICIES -cc <option> [-a <argument1>] [-a <argument2>] ...DESCRIPTION Print Policy list. COMMAND -c "GETPOLICIES" OPTION -cc "print"|"list"|"listnames"|"listpaths"|"checkname"|"checkpath" (required)
ARGUMENTS -a "name"|"path" EXAMPLES java -jar boom_cli.jar -f boom_cli.cfg -c GETPOLICIES -cc list java -jar boom_cli.jar -f boom_cli.cfg -c GETPOLICIES -cc listnames java -jar boom_cli.jar -f boom_cli.cfg -c GETPOLICIES -cc listpath java -jar boom_cli.jar -f boom_cli.cfg -c GETPOLICIES -cc checkname -a BOOM_Ping -a JMX_Memory java -jar boom_cli.jar -f boom_cli.cfg -c GETPOLICIES -cc checkpath -a BOOM/BOOM_Ping -a BOOM/Linux/linuxOSMPI_Disk_usage IMPORT_POLICIES
java -jar boom_cli.jar -f <conffile> -c IMPORT_POLICIES [-cc force] -a <SourceDirectory">DESCRIPTION Import one ore more Policies. COMMAND -c "IMPORT_POLICIES" OPTION -cc "force"
ARGUMENTS -a Local directory that contains all Policy files for import. EXAMPLES java -jar boom_cli.jar -f boom_cli.cfg -c IMPORT_POLICIES -cc forceImport -a Policies/toImport EXPORT_POLICIES
java -jar boom_cli.jar -f <conffile> -c EXPORT_POLICIES -cc policy -a <ExportDirectory"> -a <PolicyType"> -a <PolicyName"> [-a <argument4> -a <argument5>] ... java -jar boom_cli.jar -f <conffile> -c EXPORT_POLICIES -cc group -a <ExportDirectory"> -a <PolicyGroupPath">DESCRIPTION Export one ore more Policies to xml formatted files. COMMAND -c "EXPORT_POLICIES" OPTION -cc "policy"|"group"
ARGUMENTS -a (1) Arguments for the option "-cc policy":
EXAMPLES java -jar boom_cli.jar -f boom_cli.cfg -c EXPORT_POLICIES -cc policy -a Policies01/export -a mon -a BOOM_Ping -a msg -a hpuxOSMPI_Syslogs java -jar boom_cli.jar -f boom_cli.cfg -c EXPORT_POLICIES -cc group -a Policies01/export -a BOOM/Agentless/ CREATE_PACKAGE
java -jar boom_cli.jar -f <conffile> -c CREATE_PACKAGE -a <PackageName1">DESCRIPTION Create Binary Package! COMMAND -c "CREATE_PACKAGE" ARGUMENTS -a Package Name EXAMPLES java -jar boom_cli.jar -f boom_cli.cfg -c CREATE_PACKAGE -a package01 PUT_FILE
java -jar boom_cli.jar -f <conffile> -c PUT_FILE -cc <packageName> -a <argument1>DESCRIPTION Upload file to a binary package. If specified file exist, it will be replaced COMMAND -c "PUT_FILE" OPTION -c "BinaryPackage name" (required) ARGUMENTS -a Local file path (at least one argument must be specified) EXAMPLES java -jar boom_cli.jar -f boom_cli.cfg -c PUT_FILE -cc package01 -a myFile1.dat CREATE_FILE
java -jar boom_cli.jar -f <conffile> -c PUT_FILE -cc <packageName> -a <argument1>DESCRIPTION Creates and uploads a new file on the server. If specified file exist, upload will be canceled. COMMAND -c "PUT_FILE" OPTION -c "BinaryPackage name" (required) ARGUMENTS -a Local file path (at least one argument must be specified) EXAMPLES java -jar boom_cli.jar -f boom_cli.cfg -c PUT_FILE -cc package01 -a myFile1.dat DEPLOY
java -jar boom_cli.jar -f <conffile> -c DEPLOY [-cc <Agent_ID>] [-a <argument1>] [-a <argument2>] ...DESCRIPTION Deploy policies, binary packages or assignments COMMAND -c "DEPLOY" OPTION -cc Agent_ID (required) ARGUMENTS -a Pair of 2 arguments: 1.arg: object type (available types are mon|msg|asn|pkg 2.arg: object name EXAMPLES Deploy Assignment and Policy to the given Agent: java -jar boom_cli.jar -f boom_cli.cfg -c DEPLOY -cc 6ff38d81-9e79-4cb6-9571-a7e2622f3297 -a asn -a BOOM -a mon -a BOOM_Ping UNDEPLOY
java -jar boom_cli.jar -f <conffile> -c UNDEPLOY -cc <Agent_ID> -a <type> -a <name> [-a <argument3>] [-a <argument4>] ...DESCRIPTION Undeploy policies, binary packages or assignments COMMAND -c "UNDEPLOY" OPTION -cc Agent_ID (required) ARGUMENTS -a Pair of 2 arguments: The first two arguments are required! 1.arg: object type (available types are mon|msg|asn|pkg 2.arg: object name EXAMPLES Undeploy Assignment and Policy to the given Agent: java -jar boom_cli.jar -f boom_cli.cfg -c UNDEPLOY -cc 6ff38d81-9e79-4cb6-9571-a7e2622f3297 -a asn -a BOOM -a mon -a BOOM_Ping GETAGENTID
java -jar boom_cli.jar -f <conffile> -c GETAGENTID -cc "AgentHostname"DESCRIPTION This command returns Agent ID(s) for the specified Agent hostname. COMMAND -c "GETAGENTID" OPTION -cc AgentHostname (required) EXAMPLES java -jar boom_cli.jar -f boom_cli.cfg -c GETAGENTID -cc linuxserver01 PUSH_PACKAGE
java -jar boom_cli.jar -f <conffile> -c PUSH_PACKAGE -cc <packageName>DESCRIPTION Upload package to all PROXY slave servers COMMAND -c "PUSH_PACKAGE" OPTION -c "BinaryPackage name" (required) EXAMPLES java -jar boom_cli.jar -f boom_cli.cfg -c PUSH_PACKAGE -cc package01 LIST_PACKAGES
java -jar boom_cli.jar -f <conffile> -c LIST_PACKAGES [-cc <packageName>]DESCRIPTION List binary package names or content of package COMMAND -c "LIST_PACKAGES" OPTION -c "BinaryPackage name" (optional) force: In case of a optional package name specified - prints file pathed. EXAMPLES java -jar boom_cli.jar -f boom_cli.cfg -c LIST_PACKAGES
|