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


    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= GATEWAY= #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?


    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 -t […]

  • Two ways to realize VBS Ping


    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”,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


    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


    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


    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


    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)


    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


    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


    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


    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 – (China) Telecom:% MS%CALL:dota2 – (China) Netcom:% MS%Echo ========================================== & & echo. Southeast Asia, SingaporeCALL:dota2 […]

  • Implementing Ping and traceroute on IOS platform


    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 // […]