Skip Ribbon Commands
Skip to main content

Robin | zevenseas | SharePoint Blog

:

The zevenseas Community > Blogs > Robin | zevenseas | SharePoint Blog > Posts > zevenseas LCM.. it’s finally here!
February 06
zevenseas LCM.. it’s finally here!

After blogging about a year ago Site Life Cycle Management V2 .. Why V2- I’ve finally come around and make it ‘BETA’ –able enough to put it on CodePlex for you to try out (and hopefully use ;)

So what does it do?

  • Captures sitedeletions and makes a backup first before deleting the site or web.
  • Gathers sites that are unused (using the Usage info, Last Content Modified Date and Last Security Modified Date)
  • Actions can be taken on this "unused" sites, such actions are
    • Mail the siteowner and informing them that their site is being unused
    • Lock the site after a given period of time
    • Delete the site after a given period time

Please review and test this application properly. Do not just install this application on your production environment. This solution is still in beta phase

Installation

Just click on setup.exe and make sure it installs onto your Central Administration Web Application. After the installation go to “Manage farm features” in the “Operations” tab and activate the following features
• Lifecycle Management Delete Capture Stapling
• Lifecycle Management UI
The first feature ensures that the feature receiver that captures the deletion of a web or a site is stapled onto all the existing out-of-the-box site templates. Please note: all your existing sites don’t have the feature receiver attached yet. This must be done using the admin UI. Which brings us to the second feature that is there to make all the administration links appear in the “LifeCycle Management” in the “Application Management” tab like so :

 

Configuration

Site deletion Capture Settings

deletioncapture.png
  • First select the Web Application which you want to configure.
  • Next you can install the event handler on the selected Web Application so that all the existing sites will get the capture functionality as well. Alternatively you can check whether the event handler is installed already.
  • Next you can define the path where to backup up to when a site or web gets deleted
    • You can check whether or not to include a datetime stamp within the filename
    • You can check to create a subfolder per sitecollection
    • You can check to create a subfolder per web ((and if the above checkbox is checked) per sitecollection)
    • You can check to log all the deletions in SharePoint (please note: this only works when the LCM site is created using the “Timerjob configuration” administration page)

Timerjob Configuration

timerjobconfiguration.png
  • Choose the Web Application which you want to configure
  • Define when a site should be marked as unused, by default this is set to 90 days. You have to option to check on three different kind of date that are tracked by SharePoint
    • Last Content Modified Date, this is the date when for the last time a particular content item (listitem, document, etc) was modified.
    • Last Security Modified Date, this is the date when for the last time something has changed in the security settings.
    • Last Usage Date, this is the date when an user for the last time has visited the site. (Please note : this is only available if you have “Analysis Processing” option enabled. And won’t go back further then one month)
  • The first “Action” to do something about those unused sites is to mail the siteowner of that particular site. Check “Mail siteowner before locking/deleting” to make this happen.
    • Define how many days the system must wait to advance to the next ‘Action’ level (eg, locking or deletion of the site)
    • Define the subject of the mail that is send
    • Define the body of the mail that is send
  • The second “Action” is locking the site. The type of locked that is used in this version is the ‘writelock’. This lock prevents the user to add or modify anything on the site.
    • Define how many days the system must wait to advance to the next ‘Action’ level (eg. deletion of the site or do nothing at all)
  • The third “Action” is the deletion of the site. I guess this action speaks for itself ;)

Timerjob Scheduling

timerjobscheduling.png
After all the configuration you can choose to schedule a timerjob that will loop through all the sites at a given day and time.
We have two different timerjobs :
  • Statistics Gathering Timer Job Schedule , this timerjob is responsible for gathering all the data about the sites
  • Maintenance Timer Job Schedule, this timerjob is responsible for taking the actions on the gathered sites that are configured in the previous page

Important! As can be read in the page, it’s very wise to schedule this timerjobs at off-peak hours. Since it can impact the performance of your farm.

Unused Sites Overview

overunusedsites.png
This page is also known as the ‘Manual’ LifeCycleManagement page, meaning that you can do the ‘automated’ by hand ;)
  • Mail, the selected site owner will be mailed using the mail template that is configured for the given Web Application. (Please note: this option is only available if you have a mail server are configured in your farm)
  • Lock, the selected site will be write locked.
  • Delete, the selected site will be deleted (Please note : make sure that the WebApplication is configured for capturing the deletion since this action is not responsible for creating a backup first)
  • Gather, an one-time scheduled timerjob will be initiated and all the sites of the given WebApplication will be checked and marked as unused as how the Web Application is configured)
  • Action, also an one-time scheduled timerjob will be initiated to perform the configured actions.

Deleted Sites Overview

A simple overview page that shows you all the captured sites. This page is not really worth a picture ;)

 

Wishlist

My current wishlist/todo list is as follows:

  • Support for gathering webs and not only sitecollections. The code is already there but I have to create some UI and logic around it.
  • Add variables for the emails
  • Better reports about what is going on with the timerjobs

 

So there you have it again.. please let me know what you think of it. And please remember this is still a beta product so don’t put in production straightaway :)

Oh yeah.. almost forgot, get it here : http://www.codeplex.com/zsLCM

Comments

Neil Hodgkinson

Love this stuff. Can you keep the development going so it overtakes - http://www.codeplex.com/governance/Release/ProjectReleases.aspx?ReleaseId=4622 please.
System Account on 09/02/2009 15:54

Robin

Hi Neil,

yeah that was/is the plan ;) Got any feature requests?
System Account on 10/02/2009 22:52

Gilbert Berkers

Hi Robin,

"Support for gathering webs and not only sitecollections. The code is already there but I have to create some UI and logic around it. "

I was wondering if you have any plans to implement this in the near future, (I would gladly volunteer as a beta-tester) it would make my work so much easier :) 
System Account on 29/04/2009 04:15

Robin

Hi Gilbert,

I'm planning this, though I'm a bit worried on where to store all the data from the subwebs.

Additionaly I would love to hear your thoughts about not being able to first lock a subweb before deleting it (if you are interested in the automated subweb deletion)

Let me know! ;)
System Account on 04/05/2009 00:51

Gilbert

Hi Robin,

My first concern is not the locking or deleting of subwebs, but to get an overview of the usage (or lack of it).

We've been using MOSS 2007 for two years now, and the number of subsites (teamsites) has grown rapidly, but a lot of them have been unused for many months now. But we don't know why, so locking/deleting them might be a bit drastic.
In this stage of our Sharepoint deployment we would like to contact the owners of unused sites personally.


System Account on 08/05/2009 00:59

Robin

Ok, no problem.

Getting an overview is relatively simple and getting the siteowners as well. The locking and deleting is not that you HAVE to configure and implement, it's just an option ;)

Mail me so we can keep each other up to date!

System Account on 10/05/2009 12:38

N8

Excellent work! It's almost exactly what I was looking for. The subwebs addition would complete the bill. An option to exclude sites would be good.

This is the closest solution I found for  automating Workspace LCM. We would like to give our employees the accessibility to create Document and Meeting workspaces, but without the overhead of mantaining unmanaged sprawl. Please keep us updated on the addition of subwebs! 
System Account on 12/05/2009 12:49

Robin

Hi N8,

will do.. I'm just figuring out what the best way to store and retrieve all those webs and then how to interact with them (manually or automatically)..

Will keep you guys posted! ;)
System Account on 13/05/2009 11:14

Gilbert

Hi Robin,

You asked me to mail you, but I couldn't find your e-mail adress (and I don't have an account on Linkedin or anything like that). If you have an update/question, could you mail met at gilbert.berkers(at)politieacademie.nl ?

Thanks, Gilbert 
System Account on 14/05/2009 02:30
 

 Statistics

 
Views: 2368
Comments: 9
Tags:
Published:1593 Days Ago