movecollectors CLI command


Use this command to move data collectors from one or more hosts (where the Collection Stations or Collection Agents are installed) to the target host based on the criterion specified. Additionally, you can preview the data collectors that will be affected by the criterion that you specify.

Syntax

Note

Before you run the command, note the following points:

movecollectors -c <criterion> -d <hostName> -p <portNumber> -u <userName> -w <password> -t <targetHostName> [-l <locale>] [-y] [-v] [-s]
  • Angle brackets (< >) indicate a variable value that needs to be user defined.
  • Square brackets ([ ]) indicate optional parameters.

The following table describes the parameters used in the syntax:

Example inputs

The following example provides the input for moving the data collectors starting with the names punWin and punLin:

movecollectors -c collectorName="punWin*,punLin" -d localhost -p 9797 -u admin -w admin12345 -t collection-station_WRG-13.bmc.com

The following example provides the input for moving multiple data collectors as per the names specified:

movecollectors -c collectorName="punWindowsEvents,punScriptOverSSH" -d localhost -p 9797 -u admin -w admin12345 -t collection-station_WRG-13.bmc.com

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*