ping

Run multiple test-connection for one gridview output

风格不统一 提交于 2019-12-25 08:26:06
问题 How can I use multiple Test-Connection cmdlets and put them all in one Out-GridView , or is there another solution to what I'm trying to do here? The point is to be able to ping multiple adresses after one another and have it all appear in the same window. 回答1: Feed your list of IP addresses (or hostnames) into a ForEach-Object loop running Test-Connection for each address, then pipe the result into Out-GridView : $addr = '192.168.1.13', '192.168.23.42', ... $addr | ForEach-Object { Test

Separate IP from text in ping output?

痴心易碎 提交于 2019-12-25 02:14:11
问题 I'd like to be able to run a single batch file that would find the IP address of every device connected to my router, and then find their hostnames from it. What I have so far is below: @echo off set /a n=0 :repeat set /a n+=1 echo 192.168.1.%n% ping -n 1 -w 500 192.168.1.%n% | FIND /i "Reply">>devices.txt if %n% lss 254 goto repeat type devices.txt goto :hostname This finds all the possible addresses and writes them to a text file, devices.txt. However, I now end up with the following: Reply

Kubernetes 路由问题&网络问题

元气小坏坏 提交于 2019-12-24 23:41:59
error 信息: kubectl 获取node的host地址 kubectl get pods -n $namespace -o wide    或者在Kubernetes的service中进行查看 kubectl describe service $serviceName -n $nameSpace    进入其他的node,其curl有问题的service 查看路由 ipconfig /all 确认IP地址,确认网关,DNS、子网掩码 是否正确 有一项出现0.0.0.0,标识路由器没有连接到外网 ping命令, 判断两个接点在网络层的连通性 最常用的一个命令就是“ping”,这个命令的作用是 检测 ,你正在使用的电脑连接到你要上的网页的网络延迟 电脑发了三次数据,延迟是3MS,这种情况就是网络正常的。如果延迟那里是100ms以上,就是网络比较慢了, 如果是网络不通,它会显示超时或找不到主机。那就要检查一下网线、网卡或光猫问题了。 检查与某一机器是否网络通过,没有丢包的现象 检验本机的IP地址是否正确, 输入:ping + 本机IP 可以ping127.0.0.1,也可以使用ipconfig/all查看本机网卡地址 如果不通,请检查本地网络链接 如果网络不通,就是网络TCP/IP协议出了问题。 判断是否网卡驱动有问题:重启计算机=》重装网卡驱动 查看网卡驱动是否已经正确安装

getting client to automatically send data to server

老子叫甜甜 提交于 2019-12-24 22:18:02
问题 i am running a server side application which receives data of ping done from client side to certain ip addresses. Currently a person goes to these clients and does the ping manually. Can i automate this process of client running the ping program through javascript or any client side language ? I want to make the client automatically ping a few ip addresses, then extract the data from the ping request and then feed this data to the server so it can be recorded. Is this possible ? 回答1: i want

Importing ping module in RestrictedPython script in Plone

霸气de小男生 提交于 2019-12-24 20:12:17
问题 I would like to check internet connexion from my plone site. I tried a ping in a python script ## Script (Python) "pwreset_action.cpy" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##title=Reset a user's password ##parameters=randomstring, userid=None, password=None, password2=None from Products.CMFCore.utils import getToolByName from Products.PasswordResetTool.PasswordResetTool import InvalidRequestError,

Enable a Service Fabric Service to send PING to an external host (C#)

偶尔善良 提交于 2019-12-24 19:08:15
问题 I have a method in a Service Fabric Stateless Service (not an API) that sends a PING request to an external host. It works on my Local Service Fabric Cluster, but not on the actual cluster on Azure. I RDP'd to the cluster and pinged hosts, all of them resulted to "Request timed out". Anyone tried this before? I'm playing around the cluster's Firewall. 回答1: ICMP is blocked inside Azure. You can use PSPing to check connectivity though. More info here. Because the ICMP protocol is not permitted

Quickest way to determine if a remote PC is online

岁酱吖の 提交于 2019-12-24 17:42:37
问题 I tend to run a lot of commands against remote PCs, but I always check to make sure they are online first. I currently use this code: If objFSO.FolderExists("\\" & strHost & "\c$") Then 'The PC is online so do your thing However, when the remote PC is not online, it takes my laptop ~45 seconds before it times out and resolves to FALSE . Is there a way to hasten the timeout? Or is there another easily implementable solution to determine if a PC is online? 回答1: You could use WMI to ping it.

c# - ping exceeds timeout but reports success

不问归期 提交于 2019-12-24 16:39:03
问题 Problem: in my code, I set a timeout of a ping to 100ms new Ping().Send(item._deviceIP, 100, new byte[1]) which pings correctly and replies correctly, but the IPStatus.TimeExceeded is "faulty" and reports a success after the RTT is > 100ms What should happen: when recieving a pingreply, if the IPStatus is a: TimeExceeded (>100ms), _devicePing should have a color set to Red Success(<=100ms), _devicePing should have a color set to green any other, appropriate color is set. What happens: Any

Mac network ping source code compile error

蹲街弑〆低调 提交于 2019-12-24 11:34:33
问题 I download the Mac OS network ping source code from Apple: http://www.opensource.apple.com/tarballs/network_cmds/network_cmds-356.8.tar.gz and compile it in xcode, but get errors in both 10.7 and 10.6, 'IP_NO_IFT_CELLULAR' undeclared (first use in this function) 'SO_TRAFFIC_CLASS' undeclared (first use in this function) 'SO_RECV_TRAFFIC_CLASS' undeclared (first use in this function) 'SO_TRAFFIC_CLASS' undeclared (first use in this function) Did I miss something? 回答1: I thought it was possible

Run multiple subprocesses in parallel - python 2.7

天涯浪子 提交于 2019-12-24 10:11:08
问题 The script shown below is my attempt at pinging multiple network namespaces using python 2.7 running on Linux (Fedora) OS. Current status and problem : When I run this file; the ping from elem1 (namespace) gets stored in a file called results.txt. But, I can't seem to get the loop to come back around and ping elem2, elem3, ... elemN Attempted Fixes : I tried killing the process using "kill -9 p.pid" (as shown) in the hope that this would kill the process and then a new process could be