cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
LCadmin
Engaged Sweeper
We have a number of switches that where replaced by newer models.
The old switches have the status Non-active (stock) now. Some pc clients are now attached to the new switch as to the old switch according to the overview.
Is there a possibility to clear all the ports of a switch in LanSweeper?

We don’t want to remove the devices completely from LanSweeper.

We have tried the option “Remove Disconnected Devices”, this only removes the non-connected devices and some devices where still active in LanSweeper on the moment we removed the switches physically from the network.


1 ACCEPTED SOLUTION
Bruce_B
Lansweeper Alumni
The remove disconnected devices button will remove all port connections that are older than the last seen date of the switch. If you've decommissioned the switch, it is indeed possible that some connections are not getting purged when you hit the button if they were scanned the last time the switch was scanned.

The connections listed on asset pages have a visible date though, and are ordered from newest to oldest. The top one should be the currently active switch connection in almost all cases.

It is theoretically possible to purge all device connections for the disconnected switch in question though, using a database script. If you want to take that path, please send a mail into support@lansweeper.com and reference the forum post, we'll be able to provide you with a sample script.

View solution in original post

2 REPLIES 2
LCadmin
Engaged Sweeper
In our case the switch has the same “Last Date Seen” as the Ports.

Therefor we would like the purge script.

I will send you an email, for the script.
Bruce_B
Lansweeper Alumni
The remove disconnected devices button will remove all port connections that are older than the last seen date of the switch. If you've decommissioned the switch, it is indeed possible that some connections are not getting purged when you hit the button if they were scanned the last time the switch was scanned.

The connections listed on asset pages have a visible date though, and are ordered from newest to oldest. The top one should be the currently active switch connection in almost all cases.

It is theoretically possible to purge all device connections for the disconnected switch in question though, using a database script. If you want to take that path, please send a mail into support@lansweeper.com and reference the forum post, we'll be able to provide you with a sample script.