Page 1 of 1

Usage of Device Discovery and inventory and WMI

Posted: 10. Nov 2014, 13:16
by afl053
Hello,

We are new to empirum and want to use the Device Discovery to fill in the existing devices into empirum.
We also want to use the wmi possibility's to have at least some basic onformation about the discovered items, like the computer type, Manufacturer, model and serial number.

The thing is that i don't know how the query must be formatted. The documentation is very poor and all other information, as far as i can find, is in German which is difficult to follow using Google translate.

I have the following wmi queries which run perfectly from powershell. How must i enter this in the discovery so that the outcome is entered in Empirum ?

The variable $Data.Name contains the name of the computer.

# Query Mac Address and IP Address of computer, filter on IP Enabed = true and Default gateway is set (in case of multiple nics)
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Computer $Data.Name -ErrorAction Stop | where { ($_.IpEnabled -Match "True") -and ($_.DefaultIPGateway -ne $null) } | Select IPAddress,MACAddress

# Get Computer Manufacturer and Model
Get-WmiObject -Class win32_computersystem -Computer $Data.Name | select Manufacturer,Model

# Get Serial number
Get-WmiObject -Class win32_bios -Computer $Data.Name | Select SerialNumber

I allready tried to use the following to enter in the discovery tabs in empirum:

- Select Manufacturer,Model from win32_computersystem
- Select SerialNumber from win32_bios

But the corresponding fields aren't filled in. What else must i do ?

Re: Usage of Device Discovery and inventory and WMI

Posted: 10. Nov 2014, 22:19
by r.wiegel
Hello,

EMC\Administration\Filter "Assigned Computers" with right mouse button "Export to File"
Export Profile Properties\New
select Tables\Computer\Computername
select Tables\Computer\IP-Adress
select Tables\Computer\MAC-Adress
select Tables\WMI-Bios\SerialNumber
select Tables\WMI-Computersystem\Manufacturer
select Tables\WMI-Computersystem\Model

export to CSV-File.

Re: Usage of Device Discovery and inventory and WMI

Posted: 11. Nov 2014, 15:09
by Hendrik_Ambrosius
Device Discovery should be used to scan misc devices like routers, printers, ...
For PC you should use the standard inventory scan (e.g. by running invscan_xml.bat).
You will get way more data without the WMI hassle.

Re: Usage of Device Discovery and inventory and WMI

Posted: 25. Nov 2014, 10:28
by afl053
As i am new to Empirum, how do i run the .bat file ?
Does it need to have an input file ? or does it scan an given ip range ?

Re: Usage of Device Discovery and inventory and WMI

Posted: 25. Nov 2014, 16:06
by Hendrik_Ambrosius
Just start this batchfile on the client (e.g. via login script / GPO):
\\<your matrix42 server>\configurator$\user\invscan_xml.bat

No additional configuration required (optional).

Re: Usage of Device Discovery and inventory and WMI

Posted: 26. Nov 2014, 10:15
by afl053
Wow, this works great and really fast ... thanks for the help.

Re: Usage of Device Discovery and inventory and WMI

Posted: 02. Dec 2014, 09:24
by afl053
I have now all my computers listed as not assigned, if i double click on them or request the properties i see all data filled in, so this is really good. How can i now get them available as assigned ?
If i do "new computer" i must enter the same data again, is there a way to automate this also ?

Re: Usage of Device Discovery and inventory and WMI

Posted: 02. Dec 2014, 10:16
by Hendrik_Ambrosius
Drag&drop the computers to a configuration group (middle pane) to assign them.

New computer: There is nothing like a template but you can import computers from a CSV file including values for custom fields if you like: http://helpfiles.matrix42-web.de/2014_E ... g%7C_____6