Client Management-How to automatically delete devices-INCLUDES VIDEO
Knowledge Article
Client Management-How to automatically delete devices-INCLUDES VIDEO
This article covers the steps to delete the devices from BCM which helps in release the licenses as well.
BMC Client Management
BMC Client Management
All versions of BCM
<12.1 with the steps provided on communities
How to delete the devices in BCM? How to delete devices that are no longer in production and automate this process so that the licenses will be released? How to deprecate devices offline devices ?
A. For any version >= 12.1: 1. Go to Queries > Out Of the Box > BMC Client Management Architecture: Lost Devices - 30 days.
2.Right Click on the query>Create Device Group. This creates the dynamic group for the devices that are not reported for more than 30 days.
3. Create an operational Rule and add the step "Device Clean-up". Select the the group of devices that need to be deleted.
Check the other options as required.
Delete Subgroup members: Check this box if the device group contains subgroups and those also needs to be deleted.
Deprecate Devices: Check this box to deprecate the devices instead of deleting
Delete Assigned Devices : Check this box to delete devices from this device group even if they are assigned to any objects. Ex, operational rules, package deployment path groups/jobs etc.
Allow Partial Execution: If this box is checked, the step executes successfully even if some devices could not be deleted. To find which devices could not be deleted, check operationalrule.log file on the master server.
Windows Master: ../Program Files/BMC Software/Client Management/Master/log Linux Master: /usr/local/bmc-software/client-management/master/log Or /opt/bmc/bmc-software/client management/master/log
Administrator: Select the Administrator that has access to assign the rules to the master server and also the capabilities to view and delete the devices .It is recommended to use "admin" or a Super Administrator
4. Assign this operational rule to the master, and set the schedule to run every week, or even once a month only.
This is the default query which is configured to list the client devices that are not reported for more than 30 days. The number of days can be modified as per the requirement. If the requirement is to to list client devices that are not reported for more than 90 days, then clone the default query with below steps and modify it. (It is recommended not to modify the Out of the box objects. If required clone them)
>Right click on the query>Copy
>Paste it under Queries node or in any folder.
>Rename this new query to "Lost devices - 90 days" and modify the criteria as below:
And then follow the same steps from point 2 to point 4.
B. For BCM versions >=12.0: Follow the steps in this article: https://community.bmc.com/s/question/0D53n00007aEci8CAC/obsolete-deletedevicefromgroupzip
Warning:Beware as if the query is not correctly set or if criterion is changed and if it populates devices that should not be deleted, they will be deleted.