Skip to content

Ping issues

February 29, 2012

 

TechNote: Problems With ‘ping -s‘ in Solaris

There is an interesting ‘feature’ with the ping command in Solaris that may throw some people off when doing network troubleshooting. The -s flag, which does a continuous ping and prints each result does not work when the system’s DNS servers are not available. Interestingly enough, ping without the -s flag will work and report the target is alive (assuming the target is alive). In order to get the -s flag to work, it is necessary to also use the -n flag, which tells the system not to do DNS lookups.

This may seem like an extremely obscure issue, however, if you are trying to troubleshoot why you can’t do DNS lookups in the first place, finding that you can’t ping may set you off down the wrong path with troubleshooting the issue. Hopefully this note will save people a little bit of time and frustration if they are ever in this situation.

mgracdev01:/opt/oracle: ping -s -n mgracdev02
PING mgracdev02 (147.141.200.7): 56 data bytes
64 bytes from 147.141.200.7: icmp_seq=0. time=0.399 ms
64 bytes from 147.141.200.7: icmp_seq=1. time=0.299 ms
64 bytes from 147.141.200.7: icmp_seq=2. time=0.268 ms

Advertisements

From → OS, Unix

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: