Probing Remote Hosts With the ping Command (2024)

Probing Remote Hosts With the ping Command

You can use the ping command to determine the status of a remotehost. When you run ping, the ICMP protocol sends a datagram to thehost that you specify, asking for a response. ICMP is the protocol responsiblefor error handling on a TCP/IP network. When you use ping, you canfind out whether an IP connection exists for the specified remote host.

The following is the basic syntax of ping:

/usr/sbin/ping host [timeout]

In this syntax, host is the name of the remote host. Theoptional timeout argument indicates the time in seconds for the ping command tocontinue trying to reach the remote host. The default is 20 seconds. Foradditional syntax and options, refer to the ping(1M) man page.

How to Determine if a Remote Host Is Running

  • Type the following form of the ping command:
    $ ping hostname

    If host hostname is accepting ICMP transmissions, this message is displayed:

    hostname is alive

    This message indicates that hostname responded to the ICMP request. However, if hostnameis down or cannot receive the ICMP packets, you receive the following responsefrom the ping command:

    no answer from hostname

How to Determine if a Host Is Dropping Packets

Use the -s option of the ping command to determine if a remotehost is running but nevertheless losing packets.

  • Type the following form of the ping command:
    $ ping -s hostname

Example5-9 ping Output for Detecting Packet Dropping

The ping -s hostname command continually sends packets to the specified host until yousend an interrupt character or a time out occurs. The responses on yourscreen resemble the following:

& ping -s host1.domain8PING host1.domain8 : 56 data bytes64 bytes from host1.domain8.COM (172.16.83.64): icmp_seq=0. time=1.67 ms64 bytes from host1.domain8.COM (172.16.83.64): icmp_seq=1. time=1.02 ms64 bytes from host1.domain8.COM (172.16.83.64): icmp_seq=2. time=0.986 ms64 bytes from host1.domain8.COM (172.16.83.64): icmp_seq=3. time=0.921 ms64 bytes from host1.domain8.COM (172.16.83.64): icmp_seq=4. time=1.16 ms64 bytes from host1.domain8.COM (172.16.83.64): icmp_seq=5. time=1.00 ms64 bytes from host1.domain8.COM (172.16.83.64): icmp_seq=5. time=1.980 ms^C----host1.domain8 PING Statistics----7 packets transmitted, 7 packets received, 0% packet lossround-trip (ms) min/avg/max/stddev = 0.921/1.11/1.67/0.26

The packet-loss statistic indicates whether the host has dropped packets. If ping fails,check the status of the network that is reported by the ipadm andnetstat commands. Refer to Monitoring IP Interfaces and Addresses in Oracle Solaris Administration: Network Interfaces and Network Virtualization and Monitoring Network Status With the netstat Command.

Copyright © 1999, 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices

Probing Remote Hosts With the ping Command (1)Probing Remote Hosts With the ping Command (2)
Probing Remote Hosts With the ping Command (2024)
Top Articles
Security Freeze Fees - Credit Report Security Freeze | Equifax®
Błędy programu Windows Media Player
Kreme Delite Menu
Yi Asian Chinese Union
Craigslist Cars And Trucks Buffalo Ny
Draconic Treatise On Mining
Fire Rescue 1 Login
Uvalde Topic
How to Store Boiled Sweets
Erskine Plus Portal
Panorama Charter Portal
Imagetrend Inc, 20855 Kensington Blvd, Lakeville, MN 55044, US - MapQuest
Parent Resources - Padua Franciscan High School
Silive Obituary
Full Standard Operating Guideline Manual | Springfield, MO
Indiana Wesleyan Transcripts
Closest Bj Near Me
Georgia Cash 3 Midday-Lottery Results & Winning Numbers
Magic Seaweed Daytona
Rogue Lineage Uber Titles
Amelia Chase Bank Murder
CohhCarnage - Twitch Streamer Profile & Bio - TopTwitchStreamers
101 Lewman Way Jeffersonville In
Rainfall Map Oklahoma
Robert A McDougal: XPP Tutorial
Fedex Walgreens Pickup Times
Colin Donnell Lpsg
Help with your flower delivery - Don's Florist & Gift Inc.
Timothy Kremchek Net Worth
Jefferson Parish Dump Wall Blvd
Hindilinks4U Bollywood Action Movies
“Los nuevos desafíos socioculturales” Identidad, Educación, Mujeres Científicas, Política y Sustentabilidad
Captain Billy's Whiz Bang, Vol 1, No. 11, August, 1920
America's Magazine of Wit, Humor and Filosophy
Prior Authorization Requirements for Health Insurance Marketplace
Gateway Bible Passage Lookup
Lovein Funeral Obits
Andrew Lee Torres
Devon Lannigan Obituary
Shell Gas Stations Prices
2Nd Corinthians 5 Nlt
Portal Pacjenta LUX MED
Nimbleaf Evolution
Tommy Bahama Restaurant Bar & Store The Woodlands Menu
Sara Carter Fox News Photos
Zipformsonline Plus Login
Secrets Exposed: How to Test for Mold Exposure in Your Blood!
The Quiet Girl Showtimes Near Landmark Plaza Frontenac
Christie Ileto Wedding
North Park Produce Poway Weekly Ad
Unbiased Thrive Cat Food Review In 2024 - Cats.com
Latest Posts
Article information

Author: Delena Feil

Last Updated:

Views: 5609

Rating: 4.4 / 5 (45 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Delena Feil

Birthday: 1998-08-29

Address: 747 Lubowitz Run, Sidmouth, HI 90646-5543

Phone: +99513241752844

Job: Design Supervisor

Hobby: Digital arts, Lacemaking, Air sports, Running, Scouting, Shooting, Puzzles

Introduction: My name is Delena Feil, I am a clean, splendid, calm, fancy, jolly, bright, faithful person who loves writing and wants to share my knowledge and understanding with you.