简体   繁体   中英

iPhone, WMI, iis service

I am thinking about writing an application that will monitor IIS Service with iPhone, and send notification, perform resets if an IIS goes down.

I dont want to create a web service to do that but rather connect to a machine, specifying credentials and then get data from the IIS Service state.

Is it even possible?

Is it possible with iPhone?

I see your point not wanting to use web service because you want to monitor and reset IIS service, while web service is based on IIS. How about RestFul service? I have created RestFul service based on OWIN (Open Web Interface for .Net) and Kayak . Kayak may have some examples there.

The cool thing about those tools or lib is that the framework is very simple and does not rely on IIS. You can provide two URLs, one for get and one for post. The former is to get status of IIS server and post is to reset IIS. Those services can be just XML of JSON based objects and it will be up to the the OWIN service to do the job on the back end. Another great feature of this is that you can even create the service in a console app or any other ways (Windows service or Window Form in system tray) on WindowsXP or Home version. The app will provide RestFul service based on HTTP with specific port.

RestFul service is available for variety of platforms, including iPhone.

Although IIS supports remote administration I doubt there's a way to implement it on the iPhone easily.

You could write an actual Windows Server (not a web service) you could connect to with a socket which can do all the monitoring instead though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM