Is there any documentation on what commands LS performs over SSH when it scans a mac? If we can figure out what is gathered there, we could theoretically have a script (or even a launchd or cron job) that puts the file into the same XML format that lspush creates, and then treat it in the same way for delivery.
It would be very helpful to see some documentation for the Mac SSH, and the lspush XML format, either publicly or privately. I could see this being a great thing we could contribute back to Lansweeper, or do some type of open-source documentation if we need to figure it all out on our own (though not my preference).
Back to your post, are you trying to make something that you can get back into lansweeper, or for some other local purpose?