Auto Clean Feature

About the AutoClean Feature

Auto Clean rules help you manage old and possibly stale data in Device42, automatically. Should an object (e.g. a device or an IP address) not be found by a subsequent autodiscovery job, or modified by a manual effort, it may be out of service. This is especially true of servers and other objects in public clouds, but can also apply to objects that are behind the corporate firewall.

The rules for when a particular type of object should be considered and the rules for what to do about such objects vary from organization to organization. This feature enables you to define your own rules and tell Device42 what actions should be taken.

Select Tools > Auto Clean Rules and then click Add Auto Clean Rule on the rules list page.

Auto Clean Supported CIs

Auto Clean rules can target a wide variety of CIs (Configuration Items) in Device42, including everything from Assets to users to VLANs, and everything in between. The following images list the objects supported as Auto Clean rule targets.

Creating Auto Clean Rules

Each rule specifies a type of object and a number of days. The combination of object type and number of days define the rule.  The Auto Clean add, edit, and view pages display different options depending on which Object type you select for the rule.

Auto Clean Edit Form Options

In the edit form, you can create an action that is triggered when an object of the type specified is found that was last updated more than the specified numbers of days ago. Some common options are listed below.

Delete the data: checked means the object will be deleted.
Clear all IPs: checked means all IPs will be removed from the Device; if a subnet is chosen, all IPs from that subnet will be cleared.
Clear all Connectivity: checked means all connectivity to the device will be cleared.
Change device service level to: choose a service level to set when the rule is triggered.
Send email to: send notification when the rule is triggered.
Webhook Auto Clean Endpoints: add or delete webhooks to send when the rule is triggered.

Note: The Auto Clean rules run once per day. If only an email or webhook is sent but no action is taken, the email or webhook will repeat each day until an action is taken that deletes or changes the object record.