如何使用C#重新启动路由器 [英] How to power cycle a router using C#

查看:113
本文介绍了如何使用C#重新启动路由器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我是一个有问题的初级程序员,创建了一个程序来ping通路由器,并在路由器可达的情况下返回答复,现在我陷入了如何在路由器不可达的情况下重启路由器的问题(例如,切断路由器的电源,基本上将其关闭然后再打开即可)感谢您的任何帮助

Wes

Hi all, im a junior programmer with a problem ive created a program to ping the router and return a reply if its reachable, now im stuck on how to power cycle the router if its unreachable (ie Kill power to the router, basically switch it off and on without been near it) any help would be appreciated thanks

Wes

推荐答案

您有机会通过简单网络管理来做到这一点协议(SNMP) [^ ].您是否必须获取制造商的详细信息,以及如何使用您的特定设备.您可能想通过添加一些有关所使用路由器的品牌和版本的详细信息来改善"您的问题.

某些设备还具有相当简单的HTTP接口,可让您在需要时重新启动它.同样,您需要从制造商的手册中获取此信息.

问候,

—曼弗雷德(Manfred)
There is a chance you can do this via Simple Network Management Protocol (SNMP)[^]. You''d have to get the manufacturer''s details if and how this is possible with your specific device. You might want to "improve" your question by adding some details as to what make and version of router you are using.

Some devices also have a rather simple HTTP interface that will let you reboot it when needed. Again you''ll need to get this from the manufacurer''s manuals.

Regards,

— Manfred


这篇关于如何使用C#重新启动路由器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆