dcim invmgmt code samples