How to remove device and change its group using platform API

(imported topic written by SystemAdmin)

I’m trying to find APIs for below two functions:

  1. Remove device after deprovision it

  2. Change some device’s computer group.

I’ve read through the platform API reference guide, but still do not figure out the right APIs for them. Could the platform API support the two functions? Is there any example? Thanks in advance.

(imported comment written by SystemAdmin)

You can download the Computer Remover command line tool which should let you remove the device from the database. As for the computer group, if it’s a manual group I’m not sure that can be changed from the COM API, but if it’s automatic you can update the relevance for the computer group to change it’s members.

The computer remover tool is located at:

https://www.ibm.com/developerworks/mydeveloperworks/wikis/home?lang=en#/wiki/Tivoli%20Endpoint%20Manager/page/TEM%20Utilities

(imported comment written by SystemAdmin)

Ben, Thanks for your reply.

I tried the Computer Remover command line tool to remove some existing device from TEM, but not successful, maybe I’m not using it correctly,please help advice. Below is the command I use to delete a device named “ldap’s MI-ONE Plus” from TEM database and the error I got.

D:>BESComputerRemover-3.0.1.123.exe -N “ldap’s MI-ONE Plus”

No time specified for deletion of Expired Computers, defaulting to 30 days.

No time specified for deletion of Deleted Computers, defaulting to 90 days.

ERROR: Can’t open file ldap’s MI-ONE Plus. No such file or directory

(imported comment written by mcalvi91)

Did you ever get an answer on this? We have the same use case (remove a specific host or IP (s) based on a de-provision request)