12-12-2022 11:01 AM - edited 08-08-2023 10:54 AM
This page explains how to copy your Lansweeper scanning server configuration from a source to a destination scanning server by using a database script.
Copying your Lansweeper server configuration manually from one scanning server to another can be straightforward but results in the source server being removed. This article introduces a more accessible method that achieves the same result by running a database script. The advantage of this script is that the source server will not be removed.
The script copies the configuration (threads, cleanup settings, and active scanning options) from the source server to the destination server. Your scanning server configuration can be found in the Configuration > Server options menu.
For this script to work correctly, the destination server's service must have started successfully at least once.
Use Lansweeperdb
UPDATE tsysASServers
SET
[Listenport] = existing.listenport,
[ConcurrentThreads] = existing.[ConcurrentThreads],
[IPscanThreads] = existing.[IPscanThreads],
[RMADCOMP] = existing.[RMADCOMP],
[NAADCOMP] = existing.[NAADCOMP],
[RMADUSER] = existing.[RMADUSER],
[MAKEACTIVE] = existing.[MAKEACTIVE],
[DELHIST] = existing.[DELHIST],
[DELHISTDAYS] = existing.[DELHISTDAYS],
[DELCOMP] = existing.[DELCOMP],
[DELCOMPDAYS] = existing.[DELCOMPDAYS],
[NACOMP] = existing.[NACOMP],
[NACOMPDAYS] = existing.[NACOMPDAYS],
[DELEVENTDAYS] = existing.[DELEVENTDAYS],
[DELSYSLOGDAYS] = existing.[DELSYSLOGDAYS],
[REFRADCOMP] = existing.[REFRADCOMP],
[REFRADUSERS] = existing.[REFRADUSERS],
[RMDIUSER] = existing.[RMDIUSER],
[RMDICOMP] = existing.[RMDICOMP],
[NADICOMP] = existing.[NADICOMP],
[Scanuser] = existing.[Scanuser],
[EVinfo] = existing.[EVinfo],
[EVsuccess] = existing.[EVsuccess],
[DELUptimeDays] = existing.[DELUptimeDays],
[EVwarning] = existing.[EVwarning],
[EVfailure] = existing.[EVfailure],
[DELLOGONINFO] = existing.[DELLOGONINFO],
[renamedComputerDetection] = existing.[renamedComputerDetection],
[MaxDeploymentThreads] = existing.[MaxDeploymentThreads],
[DELDEPLOYMENTLOGDAYS] = existing.[DELDEPLOYMENTLOGDAYS],
[ScanHistoryDays] = existing.[ScanHistoryDays],
[ActiveScanningMaxRescanTime] = existing.[ActiveScanningMaxRescanTime],
[ActiveScanningMinRescanTime] = existing.[ActiveScanningMinRescanTime],
[ActiveScanningInterval] = existing.[ActiveScanningInterval],
[Delconfigurationlogdays] = existing.[Delconfigurationlogdays],
[Delloginlogdays] = existing.[Delloginlogdays],
[DoFallbackScanning] = existing.[DoFallbackScanning],
DelPerformanceCounterDays = existing.[DelPerformanceCounterDays]
FROM tsysasservers
INNER JOIN tsysasservers existing ON existing.servername = 'sourceserver'
WHERE tsysasservers.servername = 'destinationserver';
Was this post helpful? Select Yes or No below!
Did you have a similar issue and a different solution? Or did you not find the information you needed? Create a post in our Community Forum for your fellow IT Heroes!
More questions? Browse our Quick Tech Solutions.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try NowExperience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now