shell-to determine the current online host in the network

Source: Internet
Author: User

Tag: Indicates the return value of the CTR online packet host Images network SRC

Determine which hosts are online in the current network (the ping return value is true, indicating that the host is online)

The trap instruction is used to perform the action that will be taken after the command signal is received, and the common use is to complete the cleanup when the script is interrupted. The main use here is to interrupt the program after pressing CTRL + C.

-W Specifies the time-out in seconds.

The ping command is required to send packets continuously until a count of requests is issued and accepted.

shell-to determine the current online host in the network

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.