
dsalter asked a question.
We need to run zero-touch inventory on our Citrix VDI parents and unique VDIs to support proper Citrix inventory and license entitlement mappings.
See:How-to-Inventory-Citrix-XenDesktop-and-XenApp-using-FlexNet
The problem is specifying inventory targets is a very manual process. It also expects your machines fit into nice groups like by name or subnet (which isn't realistic) or you need to specify each individual machine by name.
We have hundreds of VDI parents or unique machines which change frequently. Keeping the list of machines up to date in the inventory target list is not sustainable.
Has anyone had success populating inventory target via automation?
I would like to build a database script, batch process, or use the business adapter studio to remove and regenerate the inventory target list.
Looking for pointers on others who may be doing this or have ideas on how to accomplish this.
Thanks
=Damon
I have attached an example of a business adapter which populates an inventory target from an excel spreadsheet containing a list of server names.
The business adapter process
1. Clears the existing target list
2. Populates a staging table from the spreadsheet contents
3. Repopulates the target from the spreadsheet list of servers
I am using this automation to support the need to remotely inventory XenDesktop parents which is a pain to keep maintained for an organization our size.
You can reuse this for different purposes just remember I hardcoded the insert to the BeaconTargetDiscoveredDeviceMapping_MT table columns TenantID and Include to value of 1. This may need to be updated for your purposes. Any other changes needed for the business adapter xml are in <> brackets.
Please don't critique my work too much I didn't spend much time on this. It does work nice though.
Inventory_Target_Update_Automation