We’re delighted to welcome Lior Armiev. Lior is a cloud monitoring and automation specialist, who works as a Technical Manager at Cloud Valley. Cloud Valley are a Managed Service Provider in Israel and they’re a Cloud Partner of Microsoft Israel. Through his work with monitoring solutions, Lior has written a helpful blog on managing very remote services with SCOM. Read on to find out more. As always, we encourage you to check out his blog and original post.
We all know that SCOM agents are installed on almost all the servers in the organization, right?
And if you need to restart a service on a remote server what do you do? And if its behind a Firewall in a DMZ?
In old days you used to open VMM/vSphere and connect to the server console or use MSTSC to the remote server to restart/start a service.
Connect no more!
If you have SCOM we can use the fact that SCOM can run remote tasks without any network constraints.
I created a website API that can be used in SquaredUp (A must if you have SCOM) or as a standalone website in order to admin your services.
What does it do?
What do you need to do in order to get it:
Download from Squaredup the PowerShell community management pack – it’s a must anyway.
Go to my Dropbox link and download the zip file.
It holds one XML file – it’s the management pack holding 3 tasks
The other is a folder, it’s the website, – extract it and add to your IIS, use separate application pool set to classic and ApplicationPoolIdentity
in the configure your IIS website to use Windows Authentication and check that in the webconfig the impersonate is set to true and voila it’s done
one more thing to configure is the User Roles, the API is checking if the user logged in is having the permission to run Tasks in SCOM. so you will need to add the user to an existing Role or to create one and add the tasks you want the user to be able to run.
A little bit about the syntax:
the web API must have the ID= or DisplayName= as an input of the Server/Computer you want to get.
You can also add filters like by Start type and Running Status to filter unwanted data.
http://<ServerName>/<Website>/Services.aspx?Id=<ObjectIdinSCOM>&Include=automation&Status=Stopped – will get you all of the services in StartType Automatic that are Stopped
For SquaredUp users:
object Id is coming as an input when you use Web Content Tile.
Under the hood in the IIS you can make changes to the WebConfig file and change some parameters:
Have fun and enjoy my addon – many more are about to come.