To import a new VCS agent types file, follow the steps below.
1. install the new agent on all nodes in the cluster
2. import the new agent types file to the running cluster. There are two ways to import the new agent types file: use VCS Java gui (hagui) or command lines.
To import a new agent types file using VCS Java gui, run hagui. From Cluster Explorer
1. On the File menu, click Import Types.
2. In the Import Types dialog box:
- Click the file from which to import the resource type. The dialog box displays the files on the system that Cluster Manager is connected to.
- Click Import.
To import a new agent types file using command line, to the followings.
1. make cluster configuration writeable by running the command below.
#haconf -makerw
2. edit main.cf to add a new line to include the new types file.
3. run the command below to import the new agent types to running had
#sh /etc/VRTSvcs/conf/config/main.cmd
If main.cmd file does not exist, run the commands below to generate it.
#cd /etc/VRTSvcs/conf/config
#hacf -cftocmd /. -dest .
The -cftocmd option is used to generate a main.cmd file from the main.cf file. The main.cmd file contains all the ha* commands based on main.cf configuration. Once the new agent types definition is imported, run "haconf -dump -makero" to close the VCS configuration.