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.
Note: Adding a managed host to multiple management servers is not supported.
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
-
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
where,
filename is the name of the script that you specify.
For example, ````/opt/VRTSsfmh/bin/gendeploy.pl --out example.pl``- 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>where,filenameis the name of the script that you specify.
For example,
perl.exe gendeploy.pl --out example.pl1. Copy the script generated bygendeploy.plto the agent host.
-
On the agent host, change the directory to the location where you copied the script.
-
Do one of the following:
-
On UNIX-based hosts, run the following command to make the script executable:
chmod +x filenamewhere,filenameis 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" filenamewhere,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.
-
In the console, verify that the agent host has been added to the Management Server domain.
More Information
Related information