Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

auto reboot managed servers, checking managed server disk spaces, auto restart application services

Created: 11 Feb 2013 • Updated: 14 Feb 2013 | 4 comments
This issue has been solved. See solution.

Hello there,

My company has been planning to to have security updates installed on Windows SERVERS exclusively by Altiris (SMP 7.1). There are certain tasks we need to perform on managed servers before and after Altirls PM deployment start time:

(1) We must do initial restart to make sure the managed severs com back up on its own before applying any security patches. Can we schedule this initial restart by Altiris, say 1 hour, before Altiris PM deployment start time?

(2) We have many cases during Altiris PM beta test that failed the patch deployment because the managed Windows servers running low or out of disk spaces. Is there a way that we can check to see if disk space is enough before Altiris PM deployment start time?

(3) For certain third party application/software that we have to manually start/restart their servcies after server reboot. Can Altiris have a way to restart those servcies after server reboot?

Thank you very much,

Charlie Tran

Comments 4 CommentsJump to latest comment

andykn101's picture

1) You can schedule a "Power Control" Task with the "reboot" option selected on any Target of machines you like.

2) Create a Filter of all machines with disk space less than nn MB. You can also create a Task of type "Gather Inventory" and set it to just do hardware inventory, you could combine it in a Job with your Power Control task above. Then make sure there's enough time after the inventory running and exclude the Filter from the patch Targets.

3) A "run script" task will do what you want with "net start" or "sc servicename start" commands. There might be a dedicated "Service Control" Task Type too.

Authorised Symantec Consultant (ASC) with Endpoint Management Limited, an Authorised Symantec Delivery Provider based in the UK.

Connect Etiquette: Please "Mark as Solution" posts that fix your problem.

Charlie D Tran's picture

Hi Andy,

I got (1) going.

For (2):

(i)  Create a Filter of all machines with disk space less than nn MB

Would you please give me a hint on how to accomplish this?

(ii)  You can also create a Task of type "Gather Inventory" and set it to just do hardware inventory.

I found how to create this task. Does this have to be performed first before (i)?

(iii) you could combine it in a Job with your Power Control task above. This would be awesome, but I don't have clue how to combine them. Please give me a kick start on this, please.

(iv) Then make sure there's enough time after the inventory running and exclude the Filter from the patch Targets. I guess you meant to manually exclude the subject Filter after (i), (ii).

For (3), I found "Run Script on Server" task that executed on Notification server. Is there a "run script" that can restart a service on managed servers?

Thanks so much, Andy, for your kind support

Charlie.

andykn101's picture

To create the filter you just right click on  Filters folder > New > Filter. Change the "Filter Definition" to "Query Mode: Query Builder", then click on "Base Query" and change the "Base Resource Type" to "Computer". Then use the "Filter Expressions" tab to query the appropriate table. You can see what table to use by looking at the Inventory of a managed PC, the "Status" tab will tell you which table to use in the Query Filter.

This Filter will update once Inventory has been recieved according tot he Resource Update Schedules set.

You create a Job the same way you create a Task, just select Client Job instead. Then you can add in your Tasks or built in ones.You can use the "Control Service State" Task type to control services on any client computer, Server or Workstation. Similarly, a "Run Script" Task will run on any client computer is is targeted at.

Authorised Symantec Consultant (ASC) with Endpoint Management Limited, an Authorised Symantec Delivery Provider based in the UK.

Connect Etiquette: Please "Mark as Solution" posts that fix your problem.

SOLUTION
Charlie D Tran's picture

Hi Andy,

I've been working on your suggestion. Everything seems coming to play very well. I highly appreicate your times and great support.

Thanks so much, Andy

Charlie Tran