A new Flexera Community experience is coming on November 25th. Click here for more information.
Anyone have an suggestions on how to do this? Have have classified labs that need to scrub the .ndi files before they can send over to the non-classified area. They want to see the ndi file as a CSV file.
‎Feb 12, 2020 03:13 PM
I would suggest to pull resolved inventory data from inventory database and save it as CVS that will quicker and better option.
Other option is to parse ndi XML to csv e.g. in the example below it is snippet of hardware class from ndi XML. you can pull in the following format in the CSV. It mean you need separate different type of evidence within the CSV that is why i am suggesting pulling from the database will be easier option.
ClassName, ClassNameValue, PropertyName, PropertyValue, Source
Win32_ComputerSystem, ABCDEFGH, Manufacturer, VMware, Inc., WMI
<Hardware Class="Win32_ComputerSystem" Name="ABCDEFGH" Evidence="WMI">
<Property Name="Manufacturer" Value="VMware, Inc."/>
<Property Name="Model" Value="VMware Virtual Platform"/>
<Property Name="Domain" Value="MY.Domain"/>
<Property Name="DomainRole" Value="3"/>
<Property Name="NumberOfProcessors" Value="2"/>
<Property Name="NumberOfLogicalProcessors" Value="2"/>
<Property Name="TotalPhysicalMemory" Value="8589463552"/>
<Property Name="Status" Value="OK"/>
</Hardware
Cheers,
Aamer
‎Feb 12, 2020 06:22 PM
The .ndi files are in XML format. There is likely some 3rd-party tools that can read/parse the XML into another format such as CSV or Excel.
‎Feb 13, 2020 06:01 AM
If you Google 'powershell convert xml to csv' you'll find many PowerShell examples...
Thanks,
‎Feb 13, 2020 07:14 AM
Hi,
You could just rename the file to .csv and you had a CSV file. But you'll probably have not much fun with the output. In order to make any sense, you would have to reserve a column for each type and attribute in the xml to make any sense.
Maybe you'll have more luck parsing the xml objects in PowerShell.
Best regards,
Markward
‎Feb 13, 2020 07:23 AM
‎Feb 18, 2020 12:52 AM