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.10\ofcscan\Admin\Utility\IpXfer\ipxfer.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.10\ofcscan\Admin\Utility\IpXfer\ipxfer.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: \\SERVER\ofcscan\admin\utility\ipxfer\ipxfer.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 : \\SERVER\ofcscan\admin\utility\ipxfer\ipxfer.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!
No comments:
Post a Comment