This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cartridge for Deleting Stale objects

Hello Team , 

 

 I am looking for a cartridge which can help me in deleting the Stale objects, I understand the same can be done by the Script , But it would be more easier if there are any cartridge so that we can come to know how many objects are stale  and what need to be removed.

 

Regards

Sriram S

  • With newer Foglight versions you can configure (without scripts) to remove stale VMware objects. I D K about other objects
    See solution 2 and 3 --> support.software.dell.com/.../146510
  • No cartridge. However you can go to the Object Cleanup Dashboard in Data-Management. This would allow you to see objects numbers and you can add types to this dashboard with a groovy script.
  • Hello,

    The rule will help me to remove only VMWare objects, where in i am looking for removing objects for .net, Database, and so on. Currently i am using a script to perform the same .
  • Hello Le.Mandel,

    Thanks for your reply.

    I would like to know if you can share any scripts which can be used here, I would like to get all topology Objects which is older than 15 days to be listed there or to be deleted automatically.
  • Hi sriram_sivakumar,

    You can do this in the Manage Monitored Instances dashboard as shown in the screenshot below. You can add any objects and automatically delete them after they have been inactive after a certain period. This is from a 5.6.10 FMS.

    Hope that helps,

    Kris

  • Hi Kris,

    We are currently using Foglight 5.7.5.1 and I dont see the dashboard what you have specified, Instead i do have a dashboard which says Object Cleanup but there is no option to Addtype. Please refer the attached shreenshot.

  • OK, so it has been updated in a newer version, however the principle is the same. Le.Mandel pointed you towards this dashboard yesterday.
    I can't help further as I don't have this version. I suggest you read the manual: documents.software.dell.com/.../data-management
    Regards,
    Kris
  • Hi Sriram,

    There is no option or button found to Add a Topology Type to manage its instance count in the Stale Object Dashboard.

    To add a Topology Type to manage its instance count on the Stale Objects Object Dashboard, add a scoped registry value with the intended Topology Type to the registry variable server.topology.objectExpiryDaysStale.

    Performing this step, will have the intended topology type appear in the Management Server | Servers | Object Cleanup dashboard. This will also enable the new objects to be deleted during nightly maintenance operations.

    Instructions: ( Adding Topology Type to Stale Objects Object Dashboard (Investigate Objects for Cleanup dashboard)

    Editing Registry Variable server.topology.objectExpiryDaysStale

    1. Navigate to Dashboards | Administration | Rules and Notifications | Manage Registry Variables Dashboard
    2. Filter in the input box by server.topology.objectExpiryDays
    3. Click on the server.topology.objectExpiryDays Variable Name
    4. Select View and Edit Details
    5. On the Edit Registry Variable: server.topology.objectExpiryDays dashboard, under the Registry Values table and Click +Add button
    6. Registry Value Wizard is Displayed, Select a Topology Type from the list, or filter by using the SearchBox the required Topology Type.

    Note: Only those topology objects of the topology types specifically configured for participation in this staleness detection/deletion are included
    7. Select one Topology Type from the list
    8. Click Next button
    9. Select objects of the desired type or all, by default All Objects is selected.
    10. Configure the Value. Select Static Value, On the Enter desired value, valid values are: (0, -1)

    Enter 0 for option 30 days later, exists (To be monitored after 30 days for stale obj., manual cleanup req.)
    Enter -1 for option 30 days later, deleted (Scheduled autocleanup after 30 days, if it is stale)

    11. Click Finish.

    To verify, access the Management Server | Servers | Object Cleanup dashboard (Investigate Objects for Cleanup dashboard)