limited ping "command" at solaris


 
Thread Tools Search this Thread
Operating Systems Solaris limited ping "command" at solaris
# 1  
Old 06-13-2006
limited ping "command" at solaris

Hi... Iam new members at this forum. and I have a little problem with "command ping"
what the "command to ping at limited time", for example
at linux
$ping -c5 10.0.0.62 and the responed as below:
64 bytes from 10.0.0.62: icmp_seq=1 ttl=128 time=0.843 ms
64 bytes from 10.0.0.62: icmp_seq=2 ttl=128 time=0.250 ms
64 bytes from 10.0.0.62: icmp_seq=3 ttl=128 time=0.245 ms
64 bytes from 10.0.0.62: icmp_seq=4 ttl=128 time=0.211 ms
64 bytes from 10.0.0.62: icmp_seq=5 ttl=128 time=0.223 ms

Responed above :5 row answer responed

BUT I don't know how to ping with limited responed (5 times answer)
at solaris/unix. (because command different)

For solution my trouble, thanks a lot.

regards,
srilinux
# 2  
Old 06-13-2006
man ping

/usr/sbin/ping -s [-l | -U] [-adlLnrRv] [-A addr_family]
[-c traffic_class] [-g gateway [ -g gateway...]] [-
F flow_label] [-I interval] [-i interface] [-P tos] [-
p port] [-t ttl] host [data_size] [npackets]


For example:

ping -s 111.222.333.444 57 5

for 5 packets (this applies to Solaris)
# 3  
Old 06-13-2006
On Solaris:
Code:
ping -s 10.0.0.62 64 5

The first argument after the IP address is the size of the ping packet the second is the number of packets to send.

On Linux:
Code:
ping -c 5 10.0.0.62

The -c argument take a number of packets to send as its value
# 4  
Old 06-13-2006
Thanks You all

Yes...
Thanks a lot of.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

3. Solaris

Printer configuration Migration from Solaris 10 "LP" to Solaris 11 "CUPS"

Need to find a way to import an LP printers.conf file to CUPS. I have some new Solaris 11.1 boxes that need to have 300 printers added. (0 Replies)
Discussion started by: os2mac
0 Replies

4. 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

5. UNIX for Dummies Questions & Answers

Unix "look" Command "File too large" Error Message

I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this: $ look "string" "/home/patrick/filename.txt" However, this gives me the following message: "look: /home/patrick/filename.txt: File too large" So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies

6. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

7. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

8. UNIX for Advanced & Expert Users

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

9. UNIX for Dummies Questions & Answers

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

10. UNIX for Advanced & Expert Users

Implementing "Time Limited, Trial" version of my program

Hello everyone, I am just looking for ideas on how I can implement a demo version of my program which will be available in unix environment (solaris and linux). So what I have in mind is to either implement a limited-time version (trial version expires after 30 days) or a limited-number... (4 Replies)
Discussion started by: the_learner
4 Replies
Login or Register to Ask a Question