Adding managed hosts to Management Server using the Auto Configure (gendeploy.pl) script

You can add an agent host to the Management Server domain with minimal user interaction. The Auto Configure (gendeploy.pl) script available on Management Server can be used to create a script that is run on the host to add the host to the domain. You can create the script either at the command prompt, or in the Veritas InfoScale Operations Manager Management Server console.

Note:

You can only add an agent host using the Auto Configure (gendeploy.pl) script. This feature is not applicable for adding agentless hosts.

You need to copy the script that is created using gendeploy.pl to all the hosts that you want to add to the domain. After you copy the script, you have to run it on each host. A host on which you run the script must have the VRTSsfmh package installed on it.

Adding many hosts to Management Server at the same time using the Auto Configure (gendeploy.pl) script can affect the performance of Management Server. It is recommended that you add no more than 50 agent hosts at a time.

To perform this task, your user group must be assigned the Admin role on the Management Server perspective. The root user can also perform this task.

To add an agent host to Management Server using the Auto Configure (gendeploy.pl) script

  1. Create the script to add an agent host using either the command prompt, or the console. Do one of the following:
    • In the Home page on the Management Server console, click Settings. Click Auto Configure. In the Auto Configure wizard, click Download. In the File Download dialog, click Save to save the script to the required location.

    • Create the script using command prompt.

      • On Linux Management Server, log on as root.

        Run the following command:

        /opt/VRTSsfmh/bin/gendeploy.pl --out filename [--domain sfm:domainname:port]

        where, filename is the name of the script that you specify. The domainname is the Management Server host name.

        For example,

        /opt/VRTSsfmh/bin/gendeploy.pl --out test.pl --domain sfm://Managementserver.domain.com:5634

        In this example, the domain name is the Management Server name, or the domain that is hosted by Management Server.

      • On Windows Management Server, log on as a user with the administrator privileges.

        To change the directory, run the following command at the command prompt:

        cd "C:\Program Files\Veritas\VRTSsfmh\bin"

        To create the script to add an agent host, run the following command:

        perl.exe gendeploy.pl --out <filename> [--domain <sfm:domainname:port>]

        where, filename is the name of the script that you specify. The domain name is the Management Server host name.

        For example, perl.exe gendeploy.pl --out test.pl[--domain sfm://Managementserver.domain.com:5634]

        In this example, the domain name is the Management Server name, or the domain that is hosted by the Management Server.

  2. Copy the script to the agent host.
  3. On the agent host, change the directory to the location where you copied the script.
  4. Do one of the following:
    • On UNIX-based hosts, run the following command to make the script executable:

      chmod +x filename

      where, filename is the name of the script.

      Run the script:

      ./filename

    • On Windows-based hosts, run the following command:

      "C:\Program Files\Veritas\VRTSsfmh\bin\perl.exe" filename

      where, filename is the name of the script.

      For the above script, the optional hostname parameter is the host as seen by the Management Server. The host is discovered by this name or IP address in Veritas InfoScale Operations Manager.

  5. In the console, verify that the agent host has been added to the Management Server domain.

More Information

Adding the managed hosts to Management Server using an agentless configuration

Adding managed hosts to Management Server using the Auto Configure (gendeploy.pl) script

Refreshing the details of the managed host

Removing managed hosts from the Management Server domain