Installing and managing the Windows MSI connector
Install or upgrade the Windows MSI connector to collect data from Windows-based application log files and Windows events.
The Windows MSI connector simplifies connector deployment on Windows, supports silent and UI-based installation, and improves the service registration and uninstallation processes.
Before you begin
- Make sure that you are downloading and installing the connector on a Windows Server Standard Edition, version 2012 or later.
- Make sure that you have the privileges to execute a batch file and install an application as a service.
- Make sure no other Windows connector is installed. If you have installed the BMC Helix Log Analytics Windows connector, uninstall it.
- Make sure that the 24444 port is available on the Windows server from where logs will be collected.
To download the connector
- Log in to BMC Helix Log Analytics.
- From the Collection menu, select Connectors.
- On the Connectors page, click Create.
- In the Connector Name field, enter a unique connector name.
- From the Select Connector Type list, select Windows MSI Connector.
- In the Description field, enter the connector description.
- In the Download Connector step, click Download.
The connector is downloaded in a .msi file with the name tdc-connector-winmsi-<build_number>.msi. - In the Tags step, add tags (in the form of key-value pairs) to identify the connector; for example, name-windows, location-Pune, and so on.
- Click + to add the tag.
- In the Download Install Script step, click Download.
The format of the .bat file name is install-connector-<connector name>.bat. For example, if you entered the connector name as my-bmc, the .bat filename is install-connector-my-bmc.bat
To install the connector by using the user interface
- Ensure that the install script that you downloaded and the MSI package are present in the same directory, and the directory name does not contain spaces.
- On the Windows server where the logs will be collected, create a folder and copy the downloaded .msi and .bat files.
Make sure that the folder name does not contain any spaces. - Double-click the MSI package to launch the installer.
- Click Next.
- In the Enter Hostname field, add the hostname. You can use a Fully Qualified Domain Name (FQDN) for the hostname.
- Click Next and then click Finish to install the MSI connector.
To install the connector by using the command-line interface
- Open the command prompt with administrator privileges and navigate to the directory where you have downloaded .msi and .bat files.
- Run the following command:
start /wait msiexec /i tdc-connector-winmsi-<random_number>.msi /qn HOSTNAME='<server_hostname>' /l*v install.log
In this command, instead of <server_hostname>, use the hostname of the computer where you want to install the connector.
When you run the command, the install.log file is created. You can use this file to troubleshoot any installation failures.
To communicate with the connector through a proxy
The connector can communicate with the proxy over the HTTP protocol only.
- Go to System Properties > Environment Variables.
- In the System variable section, click New.
- Enter Variable name as HTTP_PROXY and Variable value as http://<proxy-host>:<proxy-port> (example: http://proxyserver:8080).
- Save the variable and restart the connector service.
To verify the connector installation
To verify the connector installation, go to the Collection menu and click Connectors, and look for the installed connector on the page. Connectors will be available in one of the following status:
- Created: The connector was installed successfully, but has not started sending heartbeats.
- Active: The connector is sending heartbeats.
- Suspended: The connector has not sent heartbeats for a preconfigured time. You can delete a connector only in this status.
To start a connector service
- From the service console:
- Go to the Task Manager.
- Click the Services tab.
- Search and select the connector name that you entered.
- Click Start.
- From the command prompt:
- Open the command prompt.
- Run the following command:
sc start <service_name>
The following details apply to the Windows MSI connector service:
- Name: BHLAConnector
- Display name: BMC Helix Log Analytics connector
To stop a connector service
Stop a connector service by using one of the following options:
- From the service console:
- Go to the Task Manager.
- Click the Services tab.
- Search and select the connector name that you entered.
- Click Stop.
- From the command prompt:
- Open the command prompt.
- Run the following command:
sc stop <service_name>
After you stop the connector, it might take up to 10 minutes to change the connector status to Suspended.
To upgrade a connector by using the user interface
- Log in to BMC Helix Log Analytics.
- From the Collection menu, select Connectors.
- Click the Action
menu of the Windows connector that you want to upgrade and click Upgrade.
- (Optional) In the Description field, enter the connector description.
- In the Download Connector field, click Download.
The connector is downloaded in a .msi file with the name tdc-connector-winmsi-<build_number>.msi. - (Optional) In the Tags field, add tags to identify the connector.
Click + to add more tags. - In the Download Install Script field, click Download.
The script is downloaded as a .bat file with the name upgrade-msiconnector-<connector_name>.bat. - Click Save.
- Place the .bat file in the existing connector installation folder.
Make sure to have only one .bat file present in the folder. - Double-click the MSI package to launch the installer.
- Click Next and follow the wizard instructions.
- Click Next and then click Finish to install the MSI connector.
To upgrade a connector by using the command-line interface
- Log in to BMC Helix Log Analytics.
- From the Collection menu, select Connectors.
- Click the Action
menu of the Windows connector that you want to upgrade and click Upgrade.
- (Optional) In the Description field, enter the connector description.
- In the Download Connector field, click Download.
The connector is downloaded in a .msi file with the name tdc-connector-winmsi-<build_number>.msi. - (Optional) In the Tags field, add tags to identify the connector.
Click + to add more tags. - In the Download Install Script field, click Download.
The script is downloaded as a .bat file with the name upgrade-connector-<connector name>.bat. - Click Save.
- Place the .bat file in the existing connector installation folder.
Make sure to have only one .bat file present in the folder. - Open the command prompt with administrator privileges and navigate to the directory where you have downloaded .msi and .bat files.
- Run the following command:
start /wait msiexec /i tdc-connector-winmsi-<random_number>.msi /qn HOSTNAME='<server_hostname>' /l*v install.log
In this command, replace the <server_hostname> with the host name of the computer where you want to install the connector.
Running the command creates the upgrade.log file that helps troubleshoot upgrade failures.
To uninstall a connector service
- Make sure that the connector is not associated with a collection policy.
- Stop the connector service.
- Delete the connector service by running the following command:
sc delete <service_name> - To verify that the connector service is deleted:
sc query <service_name> - Delete the folder where you unzipped the downloaded connector file.
To uninstall the connector by using the Control Panel
- On the computer where the connector is installed, open the Control Panel.
- Right-click BMC Helix Log Analytics Connector and click Uninstall.
- Accept the confirmation messages to uninstall the connector.
To uninstall the connector by using the MSI package
- On the computer where the connector is installed, start the MSI package.
- Click Next.
- Select Remove and click Next.
- Select the checkbox if you want to delete the installation folder and files in the BMC-DevTools folder.
- Click Remove to uninstall the connector and delete the installation folder and files.
To uninstall the connector by using the command-line interface
- Open the command prompt with administrator privileges and navigate to the directory where you have downloaded .zip and .bat files.
- Execute the following command:
start /wait msiexec /x tdc-connector-winmsi-<random_number>.msi /qn DELETE_BMC_DEVTOOLS=1 /l*v uninstall.log
In this command, instead of server_hostname>, use the host name of the computer where you have installed the connector.
When you run the command, the uninstall.log file is created. You can use this file to troubleshoot any installation failures.
To delete the connector
- Make sure that the connector is not associated with a collection policy.
- Stop the connector and wait for 5 minutes.
When you stop the connector, its status changes to Suspended. - On the Connector page, for the required connector, click the Actions menu and select Delete.
- Confirm deletion by clicking Yes.
Where to go from here