Notification

Icon
Error

Create a custom asset within a widget

Posted: Thursday, December 10, 2015 11:31:22 AM(UTC)
INNO-IT

INNO-IT

Member Alpha Tester Original PosterPosts: 9
0
Like
This issue has been solved! Click here to view the solution
Hi,

we want to develop a widget which is generating a hostname. After this the widget should create an asset in the lansweeper database with the generated hostname.
After deploying the computer with this hostname, the remaining details should be scanned.

How can we create an asset manually in the lansweeper database without using the lansweeper GUI? Is it possible to create an asset by using SQL-Syntax. Which informations are neccessary to create an asset?

Thank you.
Susan.A
#1Susan.A Member Administration Posts: 1,536  
posted: 12/10/2015 9:54:37 PM(UTC)
If your Lansweeper database is hosted in SQL Server, it is fully open to external interfaces and you can insert data directly into the database. We can't really provide instructions or support for this, but this forum thread discusses the required asset fields. Database connection details can be found in Program Files (x86)\Lansweeper\Service\Lansweeperservice.exe.config.

If these assets will be scanned at some point, you'll need to ensure that you submit all of the information we use to uniquely identify assets. Otherwise, new assets will be generated. More info on how Lansweeper uniquely identifies assets can be found here.

Active Discussions

Lansweeper Report showing only Wi-Fi Devices and MAC addresses
by  Andy.S   Go to last post Go to first unread
Last post: Today at 2:23:24 PM(UTC)
Lansweeper Modifying Purchase Date / Yearly Refresh Report
by  Cripple.Zero   Go to last post Go to first unread
Last post: 5/7/2021 7:06:47 PM(UTC)
Lansweeper Tweak LanSweepers Bios Version Audit to show Last Seen
by  Tyler M.  
Go to last post Go to first unread
Last post: 5/6/2021 8:22:40 PM(UTC)
Lansweeper Patch Volume Across Fleet
by  darren.kimber  
Go to last post Go to first unread
Last post: 5/5/2021 11:29:33 PM(UTC)
Lansweeper Show Date Without Time
by  nhouse24   Go to last post Go to first unread
Last post: 5/4/2021 10:39:43 PM(UTC)
Lansweeper Report of list of assets
by  Carlos Montes  
Go to last post Go to first unread
Last post: 5/4/2021 2:52:15 PM(UTC)