ping

Ping request time out although web browser works on same computer

核能气质少年 提交于 2019-12-23 07:55:47
问题 I'm on the World Wide Web right now, as evidenced by posting on StackOverflow. However, if I try to ping stackoverflow.com from the command line, the ping times out. What do I need to do for ping to work? > ping stackoverflow.com Pinging stackoverflow.com [198.252.206.140] with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Ping statistics for 198.252.206.140: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), Edit, try tracert > tracert

Batch ping results to CSV

僤鯓⒐⒋嵵緔 提交于 2019-12-23 06:01:29
问题 I'm trying to create a script that will let me ping a list of computers from a text file and output whether they respond or not to a CSV file. When testing the commands using a single machine I receive the correct errorlevel responses, but when I try it using a FOR statement every result is listed as errorlevel 0. for /f %%g in (computers.txt) do ( ping -n 1 %%g | findstr "TTL" if errorlevel equ 0 ( echo %%g,success >> results.csv ) else ( echo %%g,fail >> results.csv ) ) What am I doing

Batch script with nested loops to ping range of IP's

雨燕双飞 提交于 2019-12-23 04:51:37
问题 Working 1 loop code: for /l %i in (1,1,254) do @ping 131.212.30.%i -n 1 -w 100 | find "Reply" Not running code where I try to use a counter so every time the ping gets a reply we add 1 to online: SET online=0 for /L %i in (1,1,254) do for /L %j in (1,1,255) do @ping 131.212.%i.%j -n 1 -w 100 | find "Reply" SET /A online=online+1 Thanks a lot. 回答1: Reply from 146.57.239.18: Destination host unreachable The destination is not reachable, so your local host (146.57.239.18) replies with

vb.net pinging on multiple threads

别来无恙 提交于 2019-12-23 04:30:50
问题 I have around 13 computers in my house, and I want to be able to monitor them all by pinging them by their local IPs. I have a program set up to add ping targets to a dictionary and that dictionary is displayed in a listview. Now, when I go to ping an IP, using: Dim MyPing As New System.Net.NetworkInformation.Ping Dim Myreply As System.Net.NetworkInformation.PingReply = MyPing.Send("192.168.1.10") MsgBox(Myreply.RoundtripTime) It lags the program until it gets a response from the IP, or until

Es学习第十课,ElasticSearch集群搭建

我的未来我决定 提交于 2019-12-23 04:25:38
前面几课我们已经把ES的基本概念和查询了解了,大家知道ES的核心优势就是天生支持分布式,所以,这课我们专门讲讲怎么搭建实现ES的集群部署。 ES分布式原理 1、es分布式概念 主分片(Primary shard) 索引的子集,索引可以切分成多个分片,分布到不同的集群节点上。分片对应的是 Lucene 中的索引。默认是根据id进行hash分片的。 副本分片(Replica shard)每个主分片可以有一个或者多个副本。 Mapping 相当于数据库中的schema,用来约束字段的类型,不过 Elasticsearch 的 mapping 可以自动根据数据创建。 分配(Allocation) 将分片分配给某个节点的过程,包括分配主分片或者副本。如果是副本,还包含从主分片复制数据的过程。 在一个分布式系统里面,可以通过多个elasticsearch运行实例组成一个集群,这个集群里面有一个节点叫做主节点(master),elasticsearch是去中心化的,所以这里的主节点是动态选举出来的,不存在单点故障。es在外部看来elasticsearch就是一个整体。 在同一个子网内,只需要在每个节点上设置相同的集群名,elasticsearch就会自动的把这些集群名相同的节点组成一个集群。节点和节点之间通讯以及节点之间的数据分配和平衡全部由elasticsearch自动管理。 2、客户端请求

Is it possible to measure bandwidth using ping?

痴心易碎 提交于 2019-12-22 17:09:53
问题 Can we find the internet bandwidth from the time it takes to ping a server if yes how is it done 回答1: No, ping tells you nothing about the bandwidth, it just measures latency. Measuring bandwidth is best done by a dedicated test, i.e. transferring a bunch of bits and measuring how long time it takes. You might want to consider that the bandwidth can vary dramatically with many factors, such as: Direction; A to B might be faster than B to A, or vice versa Time of day; depending on general load

Is it possible to measure bandwidth using ping?

帅比萌擦擦* 提交于 2019-12-22 17:09:14
问题 Can we find the internet bandwidth from the time it takes to ping a server if yes how is it done 回答1: No, ping tells you nothing about the bandwidth, it just measures latency. Measuring bandwidth is best done by a dedicated test, i.e. transferring a bunch of bits and measuring how long time it takes. You might want to consider that the bandwidth can vary dramatically with many factors, such as: Direction; A to B might be faster than B to A, or vice versa Time of day; depending on general load

Ping to APNS not returning

删除回忆录丶 提交于 2019-12-22 12:44:52
问题 I am trying to connect to Apple's Push Notification servers and push some notifications. All connections attempts are timing out. Tried pinging the server gateway.sandbox.push.apple.com and gateway.push.apple.com and they are not reachable. Are these servers alive and reachable? Can any body validate that they are reachable? Is it a regional problem? 回答1: I posted this question on the Apple forums but did not get any response. But, I figured it out myself after lot of experiments. Any

EC2 instances not responding to internal ping

岁酱吖の 提交于 2019-12-22 12:22:41
问题 I did a script that launch several amazon instances with the same security group which is the default one, with ICMP and all the TCP/UDP connection allowed... so no firewall problem. I am running an ubuntu 11.4 64 bits ami working fine. Usually in the bunch of machine I launch some do not respond to any ping or telnet connection. They can ping other machines but cannot be pinged. The other machines can ping each other in two directions without any problem, but usually one or two just don't

Is the host localhost always available for the own system?

∥☆過路亽.° 提交于 2019-12-22 09:57:45
问题 Is it always possible to ping localhost and it resolves to 127.0.0.1? I know Windows Vista, XP, Ubuntu and Debian do it but does everyone do it? 回答1: Any correct implementation of TCP/IP will reserve the address 127.0.0.1 to refer to the local machine. However, the mapping of the name "localhost" to that address is generally dependent on the system hosts file. If you were to remove the localhost entry from hosts , then the localhost name may no longer resolve properly at all. 回答2: 127.0.0.1