LMC Scripting (4.x)
Since the LMC is 'scriptable', there is a simple way to realize active reporting features like mailing query results from within LOGINventory.
The approach is to create analyses (info or history queries) within LOGINventory, depending on your needs, and export the results via a VB script which may run as a scheduled task.
After executing the script you get a CSV file containing the data you want to know about and you can process it. For example, you can import it to MS Excel to convert the values for a diagram or it is possible to forward it to a colleague by email.
We created two examples to show how scripting works. These examples can be downloaded from http://www.loginter.net/downloads/LOGINventory_45_Scripting_Tools.zip
The archive contains the following files:
- LOGINventory.vbs
This file contains auxiliary functions to access, enumerate and expand nodes. Usually nothing needs to be changed here.
- report_mailer.wsf
This is an example of how to export the Microsoft query from the Analyse/Sample node and send the result via email to a specified recipient. Note that Microsoft Outlook has to be installed on the computer running LOGINventory. Adjust it to your requirements.
- license_mailer.wsf
This script enumerates all the software entries within the Software node, selects and exports all software entries that are out of license and emails the result to a specific recipient. Note that Microsoft Outlook has to be installed on the computer running LOGINventory. Adjust it to your requirements.
Please have a look inside the files and adjust the relevant values. These examples do only work with Microsoft Management Console 2.0. |