
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2017 04:24 PM
OK so everyon that uses lansweeper regularly knows that the dns cache of the lansweeper server can show some assets online that are not actually online, but rather dhcp has reissued that cached ip to another machine. I have actions to tell me if this is the case. I have a couple of options to work around this, one i could run a batch file on a frequent interval from task scheduler on the lansweeper server, i can select the lansweeper server asset and run this action:
cmd.exe /K {actionpath}psexec \\{computer} /c {actionpath}flushdns.bat (which works when on the lansweeper server asset page)
but I would actually like to create an action that specifically targets the lansweeper server. I've tried a few times by changing {computer} to the simple and fqdn name of the lansweeper server.
Any ideas?
cmd.exe /K {actionpath}psexec \\{computer} /c {actionpath}flushdns.bat (which works when on the lansweeper server asset page)
but I would actually like to create an action that specifically targets the lansweeper server. I've tried a few times by changing {computer} to the simple and fqdn name of the lansweeper server.
Any ideas?
Labels:
- Labels:
-
Custom Actions
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2017 03:32 PM
See these stale assets does lansweeper detect their mac addresses ?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 02:28 PM
Here's my solution.
i've created a sheduled task:
ipconfig /flushdns in a batch file
that run's every 5 minutes
solved my problem
i've created a sheduled task:
ipconfig /flushdns in a batch file
that run's every 5 minutes
solved my problem

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2017 06:19 PM
I found a workaround.
So my action looks like this: cmd.exe /K {actionpath}psexec \\lansweeperservername /c {actionpath}flushdns.cmd
my flush dns cmd is just ipconfig /flushdns
This gets me to the point of being able to flush the dns of the lansweeper server, but i'm still seeing stale db records for the ip of assets which shows them online when in fact that ip may have been reissued to another system.
So my action looks like this: cmd.exe /K {actionpath}psexec \\lansweeperservername /c {actionpath}flushdns.cmd
my flush dns cmd is just ipconfig /flushdns
This gets me to the point of being able to flush the dns of the lansweeper server, but i'm still seeing stale db records for the ip of assets which shows them online when in fact that ip may have been reissued to another system.
