* You are viewing Posts Tagged ‘LOGINventory Samples’

LOGINventory 5.8.0.5400

Features:

  • LMC: Access Control: Root node can be set for local users also if LOGINventory computer is no domain member
  • LOGINfo: MAC address table can now be retrieved from some more switches
  • LOGINfo: Detecting ORACLE database and/or client version (9.x or above)
  • Tools/PowerShell: Additional sample scripts added
  • Manual/Install Guide: Some supplements

Bug Fixes:

  • LOGINquiry: Order value of ranges got lost opening scan store
  • LMC: Changing Comment/Category bug fixed

Known Incompatibility:

  • LOGINfoR: Net-SNMP 5.6.0 or later is not compatible with LOGINventory5. Please use Net-SNMP 5.5.x instead.

Get the new version from http://www.loginventory.com/download
Have fun using LOGINventory5. Any comments and improvement suggestions are welcome

Substitute for GetDate()-function

Currently, LOGINventory5 MMC-Application does not support the GetDate()-function in quiries like LOGINventory 4. If you want to get all assets with a scandate 30 days ago you can now use the Windows PowerShell. You just have to execute following script:

ScandateBefore30Days.ps1:

# Read all LOGINventory CmdLets from Registry and add them to the current session
cd HKLM:\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns
Get-ChildItem | where {$_.Name -like “*Login.Ventory.*”} | select Name | foreach {add-pssnapin $_.Name.SubString($_.Name.LastIndexOf(‘\’)+1)}

# Create LOGINventory Drive change location
$d = new-psdrive -scope global -name LI -PSProvider LOGINventory -root “”

cd LI:\Assets

# perhaps you have to set the correct culture information for the Convert.ToDateTime-function of .NET
$CULTURE = New-Object System.Globalization.CultureInfo(“de-DE”)
function … Continue Reading

Scripted Query Export

You want to do a scheduled export of your query results? Look here…

You have just to save the following script and the txt-file below. The text file contains the path of the query node from the LMC application and the target file separated with a “|”-character.
Sample:
Analyse\myQuery|C:\myResult.csv

ATTENTION: To use this simple script the query names in the LMC have to contain only “normal” characters ([a-z],[A-Z],[0-9])! Spaces are allowed but you have to replace them with a “_”-character in the “Queries.txt” (See the example)!

ExportQueries.ps1:

# Read Query-File-List
param([string]$file)
$queries = Get-Content $file

# Read all LOGINventory CmdLets from Registry and add them to the current … Continue Reading