Virtual machines are often created quickly to fill a temporary need, leading to a proliferation of devices with little regard for asset management and policy structure. This can be particularly annoying when virtual machines are managed alongside physical machines in Enterprise Console -- you may never know which computers are roaming users and which were temporary virtual machines that are no longer in use.
This article explains how you can set up Sophos Enterprise Console to automatically delete machines after a safe period of time.
Applies to the following Sophos product(s) and version(s) Sophos Anti-Virus for Windows 2000+Enterprise Console 4.0.0
Warning: If you choose to use PurgeDB, you must ensure that the database is backed up frequently so that you can restore your data should you mistakenly delete details that you still need access to.
Various attributes can be purged using this tool. In the example we outline below, the desired outcome is to delete computers that meet the following conditions:
This simple command line deletes computers that are over a certain age, in this case 30 days.
PurgeDB.exe -action=delete -category=computers -HistoryLengthInDays=30
The program will return the following information: PurgeDB [-action=<action>] [-category=<category>] [-HistoryLengthInDays=<LengthInDays>] [-type=<type>] [-code=<code>] [-help]
Command line switches
You can find more details on how to manage cloned machine provisioning in Best Practice for running Sophos on virtual systems.
If you need to manage duplicate computer names across multiple virtual infrastructures, see Enterprise Console: changing the description of virtual machine names to aid management
Every comment submitted here is read (by a human) but we do not reply to specific technical questions. If you need technical support please post a question to our community. Alternatively for licensed products open a support ticket.