运行ping作业 [英] to run a ping job

查看:52
本文介绍了运行ping作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了一个脚本,可以ping网络中的设备并告诉状态,因为我们有很多机器可以跨越许多网络和名称,所以它几乎是不可能通过IP地址识别它们,所以任何人都可以帮我修改这个小块的
代码,可以告诉我设备的名称而不是ip地址,并自由地为我分配名称。提前感谢。

i found a script that pings equipment in a network and tells the status, since we have many machines that spans through many networks and names so it is almost impossible to identify them by ip address, so can anybody help me to modify this little piece of code that can tell me the name of the equipment rather than the ip address, with the liberty to assign me the names for them. THANKS IN ADVANCE.

我将提供以下代码........

I am giving the code below........

推荐答案

在为任务编写脚本之前,您必须找到一个可以在给定IP地址时计算出计算机名称的命令。也许nbtstat.exe会为你完成这项工作。
Before you can script the task you must find a command that can work out a computer's name when given an IP address. Perhaps nbtstat.exe will do the job for you.


这篇关于运行ping作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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