This is quite a broad subject and a lot depends on client's environment. In our case we had to take a different approach than default one. Anyway, I'd recommend starting from reading ServiceNow Integration with FlexNet Manager Suite
section of Inventory Adapters and Connectors Reference document