Maintenance Mode?

Unleash the power of System Center for vSphere and Hyper-V | Veeam Task Manager for Hyper-V

Maintenance Mode?

Veeam Logoby sameerdave » Fri Mar 26, 2010 12:33 pm

Hello,

can you please let me know how we can put the servers in Maintenance mode?
if I want to put a few ESX hosts in maintenance mode every Monday night from 1am to 2am, how could I achieve that?

Thanks
Sameer
sameerdave
Enthusiast
 
Posts: 29
Liked: never
Joined: Wed Sep 30, 2009 2:42 pm
Full Name: Sameer Dave

Re: Maintenance Mode?

Veeam Logoby arseny » Fri Mar 26, 2010 1:09 pm

Hi Sameer,

If you want to put ESX hosts into SCOM Maintenance Mode to avoid monitoring noise, I suggest to use a free tool "SCOM Remote Maintenance Mode Scheduler", and point it and nworks VMware ESX hosts group on a given schedule.

If you would like to put ESX hosts into VMware Maintenance Mode, I suggest to create a PowerShell script that would use "start-task" cmdlet with nworks "enterMaintenanceMode" task, and create a Windows Event Correlated Missing Event detection rule that would check that host was not brought back from Maintenance mode for configurable amount of time, then execute Diagnostic task "exitMaintenanceMode" to automatically bring host back... Something like that.

Cheers,
Kind regards,
Arseny
arseny
Influencer
 
Posts: 21
Liked: never
Joined: Sun Jan 01, 2006 1:01 am
Full Name: Arseny Chernov

Re: Maintenance Mode?

Veeam Logoby sameerdave » Fri Mar 26, 2010 1:48 pm

Thanks Arseny.

We do use the SCOM Remote scheduler, and that does not work for individual servers. For the group I haven't tried, but then we don't want to create a group for each ESX host, as that would not make sense. So this option does not work.

In ref to the second option, do you have any powershell script developed? Please let me know where I could find it. As these are agentless monitoring, we are not sure as how we can achieve this.

Thanks
Sameer
sameerdave
Enthusiast
 
Posts: 29
Liked: never
Joined: Wed Sep 30, 2009 2:42 pm
Full Name: Sameer Dave

Re: Maintenance Mode?

Veeam Logoby arseny » Mon Mar 29, 2010 7:52 am

Hi Sameer,

Glad to hear world's still small and people use similar tools everywhere.

What I realized is if one just simply adds the scheduled task into Windows Scheduler, it will be executed under Local System credentials, and thus PowerShell will not be able to authenticate against RMS, as needed. The workaround would be to schedule a task to create an event using EVENTCREATE, and then have the response diagnostic task Windows Eventlog rule against it, that would have a RunAs profile.

For the monitor, I believe you should look at, say, description of the event you create being equal to the ID of the monitoring target, so that the recovery task could execute.

Then, you can create another missing Windows Event Log event to bring host back from Maintenance Mode.

I'll follow-up what the script to put a host into Maintenance Mode from newly-created event should look like.

Cheers,
Kind regards,
Arseny
arseny
Influencer
 
Posts: 21
Liked: never
Joined: Sun Jan 01, 2006 1:01 am
Full Name: Arseny Chernov


Return to Veeam Management Pack for Microsoft System Center



Who is online

Users browsing this forum: No registered users and 3 guests