Join David M. Franklyn for an in-depth discussion in this video Configuring Site Maintenance tasks, part of Microsoft System Center Configuration Manager Essential Training.
- [Instructor] In this demonstration, we'll go ahead and configure site maintenance tasks. The first thing we want to do is verify the default settings for our maintenance tasks. So in the configuration manager console, we're going to go to administration workspace, and then go to site configuration. Let's close cloud services. Site configuration and sites. And in sites, we're going to go to our CAS site, our Central Administration Site here.
We can either right-click it and do this from the context menu, or use the ribbon where it says site maintenance. So you see the ribbon up here, site maintenance, or you could right-click on it and say site maintenance. Either one will work. And this shows all the different site maintenance tasks that we talked about. The ones I said were too many to list. So not enabled is one of the most important ones, the back-up the site server, but the rest then, we'll run after a period of time. Now, we've really only been around as a site for a few days since we created this in an earlier chapter in the course.
So we're not going to have much in the way of aged data, but let's go ahead and see how we can configure some of the settings on some of this data. Let's go to the delete aged client operations. We can double-click that. As you can see, it deletes data that's been inactive for seven days, and it runs every night between 12:00 a.m. and 5:00 a.m. So we could change this. We could set it up to delete things, leave them in longer, by changing this to two week schedule, or changing the time so it doesn't run as long.
Maybe until only 3:00 A.M. From midnight to 3:00 A.M. Click okay on that. We can also look at aged log data. So the issue with aged log data is, the logs are where stuff is kept, and they accumulate. They just get bigger and bigger over a period of time. So after a while, we don't want to keep that information, at least currently. We could back them up, and then have access to them through the backups, but other than that, we want to eventually delete some of that data, or we'll run out of disk space.
In a modern system, with very large hard drives, that's less likely to occur, but you can see it's set to delete every 30 days, and we could change this, for example, to something sooner. Or even something later 'cause we have plenty of disk space. That would be up to you and the requirements that you have and the infrastructure that you have in your organization. I'm going to click okay to that. Now we're going to set up the site backup task, and let it say okay.
Before we go into that here, let's go ahead and check couple of things. So one thing we want to look at is our disk space, so in file explorer, if we go to this PC, we can just roughly see how much space is left on our disk. Now, the D drive includes our configuration manager database, and this is the consolidated database in the central administration site, so it still hasn't used a lot. But by and by, this will grow larger and larger. So wherever you place to actual backup file needs to be able to store the entire database, or the majority of the contents of this drive.
And usually, that's going to be on another server, or using some backup utility after we place it there. But in our case, we're simply going to use a location on the C drive, which we have space, on a new folder we're going to call backup. So we're going to create that now. Again, this is for demonstration purposes only. And now we're going back to the configuration manager console, and we'll go ahead and set that up.
So back to site maintenance, for our central administration site. And we're going to the backup site server. We'll double-click that. And notice, the first thing we need to do is enable the task. Once it's enabled, we want to go ahead and set the path. Where we're putting this data. So in this case, again, normally it would be some kind of network path, but we're going to use a local drive here. And we're just going to browse to the place we just created this, which is C backup. Select that folder and say okay.
And now we can specify also the time that we're going to schedule to do this backup. So as you see, it's scheduled to run every night between two and five a.m. We can also turn on the enable alerts for backup task failures, which is a good idea. It will let you know if you have operations manager running, it could even let you know by text message or email messages. In this case, because we're doing a demonstration, we actually want it to start really soon. So let's go ahead and say, roughly, I'm going to do this two minutes from now, and we'll let it finish up, let's say, at the top of the hour.
We don't have much data to save at this point, and it is just a demonstration. There we go, I don't want it to take that long. So now we see that it is enabled, and we're going to say okay. And we're going to trigger the backup the site. By now going to our server manager and in server manager, we want to go to services, and in services, we're going to go to the SMS site backup service, and kick it off. So the SMS site backup.
You see, it's set for manual. We're going to start it at this time, and then we can close this window. And now we're going to navigate to the file explorer. And we're going to look in our logs. In the logs, we want to go to, from the C drive, to program files, to Microsoft Configuration Manager and then logs. And specifically, the log we're looking for is the SMS BKUP log. So SMS BKUP log, double-click that.
Now we're coming up in CM trace. And we can see that it's starting to log, and now we got to successfully send change notification. And let's see. As I said before, we won't have much to backup, since it's a pretty clean site. We're looking for status message, though, of 5035. So status message of 5035 to tell us that it's finished. There's 5056, so when it's finished, we should see a 5035.
And backup completed on that. Another thing we can do while we're waiting is to go to the root of C and check the backup folder. And here we have the CAS backup, and we have data that's actually being put in here. So we have the site DB server, and as we see, we have the database file. Certain size, and a log file. And going up one to the site server, in site server, we have the SMS server folder.
And in it, we have logs. And within that, we should have all of our logs. Including the one we're actually looking at, but it's a backup copy of it, SMS backup. And let's go ahead and get out of this and go back to the trace tool for the log. And see if we're got our stat message 5035 yet. We don't, but it's still continuing to back things up. So this is good. Now notice things are being sent to the SMS_SITE_BACKUP.
You can see, we're just about done. Here's 5040, oh, here we go. Right up here, what I was looking for. Stat message 5035. And that means that we've completed the task, so we can close the log, and go back to configuration manager console, and in the configuration manager console, we can go to the monitoring workspace, and from the monitoring workspace now, we're going to go to our component status. So in component status, we are looking for the SMS site backup component.
And let's put these in order. So SMS site backup, and here are the components for central for that. We can go ahead and show the message, and then all messages. And for the past day. And we should see where it finished, 5035 site backup completed successfully with zero errors. It says there could be some warnings, so if we double-click that message, it really doesn't give us much more information.
We go back up the tree and look at the next one. Okay, it didn't find the command file afterbackup.bat at its location. We've never run a backup before, so it shouldn't find one anyways. So, it's completed successfully, and this completes this demonstration.
- Planning and deploying a standalone primary site
- Ensuring domain and site server prerequisites
- Planning and expanding a standalone primary site
- Planning and deploying a multiple-site hierarchy
- Planning resource discovery and client deployment
- Managing content and replicating data in Configuration Manager
- Configuring Internet and cloud-based client management
- Advanced monitoring
- Upgrading to Configuration Manager current branch