Connecting Trend Agents to new Server Installs

As with any software, there are times when it’s necessary to uninstall, and reinstall Trend’s Worry Free Business Security suite, but does that mean you’ll need to uninstall all of the agents and push out fresh installs? While this would work, it’s not necessary.

This can be done via batch file. Once the script is written, it can ideally be put into a login script, or pushed out via Group Policy or some kind of Managed Services (Like Kaseya!)

First, you’ll need a little bit of information.

  • Browse to the ser’vers OFCSCAN folder, and open ofcscan.ini
  • Make note of the following information:
    • Master_DomainName
    • Master_DomainPort
    • Client_LocalServer_Port

The script syntax is:ipXfer.exe-s-p-m1-c

For example: \192.168.0.10ofcscanAdminUtilityIpXferipxfer.exe -s 192.168.0.10 -m 1 -p 8059 -c 18277

It’s sometimes enough to simply run this, but depending on what’s going on at the end point, it may be beneficial to stop and start all the local trend services.

The batch file that I use looks like this:

NET STOP TMLISTEN
NET STOP TMPFW
NET STOP TMPROXY
NET STOP NTRTSCAN
NET STOP TMBMSERVER
NET START TMLISTEN
NET START TMPFW
NET START TMPROXY
NET START NTRTSCAN
NET START TMBMSERVER
\192.168.0.10ofcscanAdminUtilityIpXferipxfer.exe -s 192.168.0.10 -m 1 -p 8059 -c 18277

After running this, give the software a couple of minutes to connect and such before beating on the refresh link in the WFBS console. Works every time (For me, so far!)

The Kaseya script I use, looks like this:

Script Name: trend agent reconnect
Script Description: \SERVERofcscanadminutilityipxferipxfer.exe -s server.CTA.local -p 8059 -m 1 -c 16809

IF True
THEN
Execute Shell Command
Parameter 1 : NET STOP TMLISTEN
Parameter 2 : 0
OS Type : 0
Execute Shell Command
Parameter 1 : NET STOP TMPFW
Parameter 2 : 0
OS Type : 0
Execute Shell Command
Parameter 1 : NET STOP TMPROXY
Parameter 2 : 0
OS Type : 0
Execute Shell Command
Parameter 1 : NET STOP NTRTSCAN
Parameter 2 : 0
OS Type : 0
Execute Shell Command
Parameter 1 : NET STOP TMBMSERVER
Parameter 2 : 0
OS Type : 0
Execute Shell Command
Parameter 1 : NET START TMLISTEN
Parameter 2 : 0
OS Type : 0
Execute Shell Command
Parameter 1 : NET START TMPFW
Parameter 2 : 0
OS Type : 0
Execute Shell Command
Parameter 1 : NET START TMPROXY
Parameter 2 : 0
OS Type : 0
Execute Shell Command
Parameter 1 : NET START NTRTSCAN
Parameter 2 : 0
OS Type : 0
Execute Shell Command
Parameter 1 : NET START TMBMSERVER
Parameter 2 : 0
OS Type : 0
Execute Shell Command
Parameter 1 : \SERVERofcscanadminutilityipxferipxfer.exe -s server.DOMAIN.local -p 8059 -m 1 -c 16809
Parameter 2 : 0
OS Type : 0
ELSE

Remember to edit the port numbers and server / domain information!

Advertisements

2 thoughts on “Connecting Trend Agents to new Server Installs

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s