iPhone、WMI、iis 服务

发布于 2024-10-15 15:34:28 字数 349 浏览 2 评论 0原文

我正在考虑编写一个应用程序,该应用程序将使用 iPhone 监视 IIS 服务,并在 IIS 出现故障时发送通知、执行重置。

我不想创建一个 Web 服务来执行此操作,而是连接到计算机,指定凭据,然后从 IIS 服务状态获取数据。

有可能吗?

iPhone 可以吗?

我需要使这个应用程序足够通用,以便人们可以使用他们的托管网站并监控他们的健康状况,并能够重置它和/或回收应用程序池。我无法为任何托管环境实施服务。我需要能够让 iPhone 用户能够连接到他们的主机,一旦连接到机器并经过身份验证以执行 WMI,手机用户就可以干扰 iis。是否可以?

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 need to make this app generic enough for people to use with their hosted web sites and monitor their health and being able to reset it and/or recycle AppPools. I cant implement a service for any hosted environment. I need to be able to give the iPhone users an ability to connect to their host and once you are connected to the machine and authenticated to perform WMIs the phone users can mess with the iis. Is it possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦断已成空 2024-10-22 15:34:28

我明白你不想使用Web服务的观点,因为你想监视和重置IIS服务,而Web服务是基于IIS的。 RestFul服务怎么样?我创建了基于 OWIN (Open Web Interface for .Net) 和 皮划艇。 Kayak 可能有一些例子。

这些工具或库的最酷之处在于框架非常简单并且不依赖于 IIS。您可以提供两个 URL,一个用于 get,一个用于 post。前者是获取IIS服务器的状态,后者是重置IIS。这些服务可以只是基于 JSON 的对象的 XML,并且将由 OWIN 服务在后端完成这项工作。另一个很棒的功能是,您甚至可以在 WindowsXP 或 Home 版本上通过控制台应用程序或任何其他方式(Windows 服务或系统托盘中的窗口窗体)创建服务。该应用程序将提供基于HTTP和特定端口的RestFul服务。

RestFul 服务适用于多种平台,包括 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.

莫相离 2024-10-22 15:34:28

虽然 IIS 支持远程管理,但我怀疑是否有一种方法可以在 iPhone 上轻松实现它。

您可以编写一个实际的 Windows Server(不是 Web 服务),您可以使用套接字连接到该服务器,但该套接字可以执行所有监视。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文