Tag:ping

  • Shell script writing Ping package and ARP monitoring and sending SMS function

    Time:2020-11-16

    Let’s share shell script, write ping package and ARP monitoring and sending SMS function. The specific code is as follows: #!/bin/bash NOW=”`date +%Y%m%d-%H:%M:%S`” PHONES=15134567893 IP=10.100.8.78 GATEWAY=10.100.30.1 #Message content of Ping error content1=”host is failed” #Short message content of ARP host gateway error content2=”GW is failed” #Ping log path LogFile=”/tmp/ping`date “+%Y%m%d-%H-%M-%S”`.log” #Ping 100 packets of the […]

  • How to output the result of ping command to TXT text?

    Time:2020-8-19

    The ping command is most commonly used in network debugging. In order to save the results to the txt file for easy review, the method is as follows: 1、win+RGroup open run, or search from the search bar“function”, inputCMD open doc window, enter. 2. As usualPing192.168.0.1, output to disk D ping.txt File. Input command:ping 192.168.0.1 -t […]

  • Two ways to realize VBS Ping

    Time:2020-8-9

    There are two ways to realize Ping in VBS 1. Call the system ping command; 2. Use WMI to query the pingstate class for processing. 1. Call the system ping command Set wshell = CreateObject(“WScript.Shell”) wshell.run(“ping 182.183.101.1”,0.true) For the above calls, if you want to filter them, you can consider redirecting the running results to […]

  • Java determines whether the host can ping the code instance

    Time:2020-8-7

    This article mainly introduces java to determine whether the host can ping code examples, the article through the example code is very detailed, for everyone’s study or work has a certain reference learning value, need friends can refer to The code implementation is as follows: import java.io.IOException; import java.net.InetAddress; import java.net.UnknownHostException; /** * Created by […]

  • Solution of unable to Ping VM CentOS system under win

    Time:2020-8-1

    Event description: when the company moves to a new address, after the computer takes it, it always fails to connect to the CentOS system of VM with xshell. Then, considering the situation of the company moving to the new address, I first suspect that it is the IP problem. Then I execute ifconfig in VM […]

  • Explain the usage of Ping and arping commands in Linux system

    Time:2020-6-5

    pingThe ping program uses the forced echo request datagram of ICMP Protocol to make the host or gateway send an echo response of ICMP. Echo request datagram (“pings”) contains an IP and ICMP header followed by a ` ` time value keyword and then an arbitrary length of filled bytes to keep the packet length […]

  • The method of simple ping process with go language

    Time:2020-5-11

    1、 Preparations Install the latest go 1. If there is no VPN due to Google being blocked, download it here: http://www.golangtc.com/download 2. Using any text editor or liteide will make compilation and debugging easier 2、 Coding Package to use: import ( “bytes” “container/list” “encoding/binary” “fmt” “net” “os” “time” ) 1. Using the related functions in […]

  • Batch implementation of network patrol script (Ping and port scanning)

    Time:2020-3-21

    Check.bat content (script content may be due to typesetting problem, which can not be directly copied, pasted and run, and can be modified by yourself): Copy codeThe code is as follows: @echo off The fields of REM checklist.csv are: IP, name, description, TCP application port, UDP application portIn rem checklist.csv, please use, @, replace,, and […]

  • Commonly used Ping list of WordPress

    Time:2020-3-14

    The Ping list of WordPress can be modified through “option” – “writing” – “Update Services” in the background. I searched the Internet and found that many of the current Ping lists are compiled by foreigners, many of which are useless for Chinese blogs. Here’s how I organized the Ping list of WordPress. These addresses are […]

  • A method of parallel Ping of hosts in golang

    Time:2019-12-1

    Using the good support of golang for high concurrency, write one IP line to pinglist.txt file in the same directory In fact, this function can be done with one command of Linux: cat pinglist.txt | xargs -P 10 -I {} ping -fc 100 {} package main import ( “bufio” “bytes” “fmt” “io” “io/ioutil” “log” “os” […]

  • Dota2 server Ping test script sharing

    Time:2019-11-12

    Copy codeThe code is as follows: @ECHO offREM Dota 2 Ping Tester edited by FranzMeister (original code from PlanetSide 2 Ping Tester by Sh4rkill3rSG)Echo dota2 server Ping test franzmeister editEcho ================================================= & & echo. China National ServiceCALL:dota2 183.136.230.1Echo – (China) Telecom:% MS%CALL:dota2 61.182.135.1Echo – (China) Netcom:% MS%Echo ========================================== & & echo. Southeast Asia, SingaporeCALL:dota2 103.28.54.1Echo […]

  • Implementing Ping and traceroute on IOS platform

    Time:2019-11-4

    Ping command PingIn order to test whether another host is reachable, it has become a common network state checking tool. Common Ping commands: /****Number of fixed packets sent to target pursuit****/ Ping – C 3 www.baidu.com // Ping Baidu sends 3 packets /****Set the waiting time between two contracts****/ Ping – I 5 www.baidu.com // […]