Sponsored Content
Full Discussion: ping -s not working
Operating Systems Solaris ping -s not working Post 84902 by tjlst15 on Thursday 29th of September 2005 11:00:33 AM
Old 09-29-2005
ping -s not working

I have a multipath system with 2 physicals, a virtual and a failsafe. All network connectivity is working fine to and from all of the interfaces and the virtual. The one thing that is not working is 'ping -s'. From this machine, I cannot send and receive packets using ping -s. ping without the option works fine.

While the ping -s is running, I can snoop run snoop and see that the packets are leaving one interface and returning on another. Is there anyway to fix this so that ping -s works? See code below, atiems is the IP of the virtual interface:

Code:
bash-2.03#  ping -s 10.160.131.103
PING 10.160.131.103: 56 data bytes
^C
----10.160.131.103 PING Statistics----
251 packets transmitted, 1 packets received, 99% packet loss
round-trip (ms)  min/avg/max = 2147483647/0/0
bash-2.03#  ping 10.160.131.103
10.160.131.103 is alive
bash-2.03#

Code:
bash-2.03# snoop -d qfe0 host 10.160.131.103
Using device /dev/qfe (promiscuous mode)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 20)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 21)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 22)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 23)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 24)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 25)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 26)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 27)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 28)
      atiems -> 10.160.131.103 ICMP Echo request (ID: 6648 Sequence number: 29)
^Cbash-2.03# snoop -d eri0 host 10.160.131.103
Using device /dev/eri (promiscuous mode)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 37)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 38)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 39)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 40)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 41)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 42)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 43)
10.160.131.103 -> atiems       ICMP Echo reply (ID: 6648 Sequence number: 44)

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

ping by hostname not working

anyone ever seen this problem: I can ping the server by IP address but I can't by hostname. nslookup is working and dns query is ok. # nslookup mwxnsb24 Server: 10.11.49.206 Address: 10.11.49.206#53 Name: mwxnsb24 Address: 10.10.58.175 # ping... (8 Replies)
Discussion started by: linuxgeek
8 Replies

2. Shell Programming and Scripting

Animation Ping on Solaris Like Cisco Ping

Hi, I develop simple animation ping script on Solaris Platform. It is like Cisco ping. Examples and source code are below. bash-3.00$ gokcell 152.155.180.8 30 Sending 30 Ping Packets to 152.155.180.8 !!!!!!!!!!!!!.!!!!!!!!!!!!!!!. % 93.33 success... % 6.66 packet loss...... (1 Reply)
Discussion started by: gokcell
1 Replies

3. Shell Programming and Scripting

Script not working in cron but working fine manually

Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered. The script is as follow: #!/bin/sh for file in file_1.txt file_2.txt file_3.txt do awk '{ print "0" }' $file > tmp.tmp mv tmp.tmp $file done And the cron... (2 Replies)
Discussion started by: jasperux
2 Replies

4. Shell Programming and Scripting

Perl : ping for multiple IPs not working

I have written perl ping program to ping list of IPs one by one and print the status.But each and every time it is showing the status as Pass for all IPs even though the IP is wrong. multipleip.pl use Net::Ping; $p = Net::Ping->new(); $ifile="inventory.txt"; ... (2 Replies)
Discussion started by: scriptscript
2 Replies

5. Shell Programming and Scripting

How to get reason for ping failure using perls Net::Ping->new("icmp");?

Hi I am using perl to ping a list of nodes - with script below : $p = Net::Ping->new("icmp"); if ($p->ping($host,1)){ print "$host is alive.\n"; } else { print "$host is unreacheable.\n"; } $p->close();... (4 Replies)
Discussion started by: tavanagh
4 Replies

6. Red Hat

Nslookup working but ping not working at windows client

Hi Team we have created a DNS server at RHEL6.2 environment in 10.20.203.x/24 network. Everything is going well on linux client as nslookup, ping by host etc in entire subnet. We are getting problem in windows client as nslookup working as well but not ping. all the firewall is disabled and... (5 Replies)
Discussion started by: boby.kumar
5 Replies

7. Shell Programming and Scripting

Automating pbrun /bin/su not working, whenever manually it is working using putty

I am trying to automate a script where I need to use pbrun /bin/su but for some reason it is not passing thru the pbrun as my code below. . ~/.bash_profile pbrun /bin/su - content c h 1 hpsvn up file path I am executing this from an external .sh file that is pointing to this scripts file... (14 Replies)
Discussion started by: jorgejac
14 Replies

8. Programming

Ping test sends mail when ping fails

help with bash script! im am working on this script to make sure my server will stay online, so i made this script.. HOSTS="192.168.138.155" COUNT=4 pingtest(){ for myhost in "$@" do ping -c "$COUNT" "$myhost" &&return 1 done return 0 } if pingtest $HOSTS #100% failed... (4 Replies)
Discussion started by: mort3924
4 Replies

9. Shell Programming and Scripting

Working web service call not working with curl

Hello, Newbie here, I have a perfectly well working web service call I can issue from chrome (PC Windows 10) and get the results I want (a dimmer being turned on in Fibaro Home Center 2 at level 40) I am not allowed to post urls but the below works with http and :// and... (3 Replies)
Discussion started by: abigbear
3 Replies

10. Shell Programming and Scripting

Disk Space Utilization in HTML format working in one environment and not working on the other

Hi Team, I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system. df -h | awk -v host=`hostname` ' BEGIN { print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies
prtdscp(1M)						  System Administration Commands					       prtdscp(1M)

NAME
prtdscp - display DSCP IP addresses SYNOPSIS
prtdscp [-v ] prtdscp [-v ] -h prtdscp [-v ] -d prtdscp [-v ] -s DESCRIPTION
prtdscp displays the IP addresses associated with a Domain to Service Processor Communications Protocol (DSCP) link. If no arguments are specified, prtdscp displays the IP addresses on both ends of the DSCP link. The IP address of either the Service Processor or domain side can be displayed separately by the use of the -s or -d options, respectively. OPTIONS
The following options are supported: -v Verbose mode. Print additional details about the program's internal progress to stderr. -h Help. Print a brief synopsis of the program's usage and exit. All other command line arguments are ignored. -d Display only the local domain's IP address. -s Display only the remote Service Processor's IP address. EXAMPLES
Example 1 Displaying both addresses The following example displays both the local domain's IP address and the remote SP's IP address: # prtdscp Domain Address: 192.168.103.2 SP Address: 192.168.103.1 Example 2 Displaying the local IP address The following example displays the local domain's IP address: # prtdscp -d 192.168.103.2 Example 3 Displaying the remote IP address The following example display the remote SP's IP address: # prtdscp -s 192.168.103.1 ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWdscpr.u, SUNWdscpu.u | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) SunOS 5.11 25 Apr 2006 prtdscp(1M)
All times are GMT -4. The time now is 04:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy