Sponsored Content
Top Forums UNIX for Dummies Questions & Answers ping to machine and count responses Post 47290 by oombera on Friday 6th of February 2004 11:54:17 AM
Old 02-06-2004
BTW, you can do away with the loop if you have xargs:
Code:
if [ -e "$1" ]; then
  awk '$1 != "" && $1 != "#" {print $1}' "$1" | xargs -i ping -c1 {}
fi

 

10 More Discussions You Might Find Interesting

1. HP-UX

ping Port number of HPUX machine

I have 2 HPUX machines. Let say machine A and B. In HPUX machine A, I would like to ping the port number of machine B. Is there any command or any HPUX freeware available? In windows, I can use some freeware to ping port to any type of machines (e.g. HPUX, Windows and etc). See URL below. ... (1 Reply)
Discussion started by: Teh Tiack Ein
1 Replies

2. Shell Programming and Scripting

Extracting Latency, Loss and Jitter from PING responses.

I have a script that pings several hosts and stores the response in a text file (see below) Once this file is created, the intention is to populate a database with the values for 'packet loss', 'avg' and 'mdev', but first I have to extract this data. avg=latency mdev = jitter packet... (5 Replies)
Discussion started by: tony.kandaya
5 Replies

3. IP Networking

Unable to ping freebsd machine using fully qualified domain name

hi all. am unable to ping a freebsd machine using fully qualified domain name from a windows machine. i have already set the fqdn for the machine. plz advise me. thanks. (2 Replies)
Discussion started by: coolatt
2 Replies

4. Programming

Ping remote UNIX machine from a java application

Hi Friends, Can some one please guide me on how to make a script run on a remote UNIX machine from a java application. Or may if you can just tell me how do u ping to the remote UNIX machine using java code. Been looking for the solution since 5-6 hrs, didn't got any where near :( Thanks. (1 Reply)
Discussion started by: Sanjay MD
1 Replies

5. SuSE

unable to ping virtualbox machine

I current have Windows 7 running Virtualbox - OpenSUSE. From SUSE I can ping the Windows box 10.10.x.x no problems. But from the windows box I can't ping SUSE. I have tried disabling the firewall and sill no luck. Tried pinging host name and still no luck. The network gives an IP from... (2 Replies)
Discussion started by: woofie
2 Replies

6. Solaris

Not able to connect (ping & http) to windows 2003 (with IIS installed) from Solaris9 Machine(Tomcat)

hi Am trying to connect from Solaris 9 installed Sun server and having Tomcat 5.5.9 installed on top of it to Windows 2003 server with IIS installed for web application. Scenarios am facing are 1. From Sun system am able to ping and telnet ip with port 80 of windows 2000 system which is... (2 Replies)
Discussion started by: aemunathan
2 Replies

7. Solaris

not able to ping base OS from virtual machine

I have a vista on my PC . I have created a Solaris 10 server on it using VM ware . I have selected bridge mode to connect my PC and virtual machine together .I have alloted ip 192.168.1.2 to my virtual machine and 192.168.1.11 to my PC . I am able to ping the virtual machine from the base machine... (1 Reply)
Discussion started by: asalman.qazi
1 Replies

8. Shell Programming and Scripting

Count time min/max/average for ping

I am redirecting my ping output to a file. The sample output is like this: 64 bytes from xx.xx.xx.167: icmp_seq=4490 ttl=116 3.75 ms 2011Jul12- 15 40 16 64 bytes from xx.xx.xx.167: icmp_seq=4491 ttl=116 5.29 ms 2011Jul12- 15 40 17 64 bytes from xx.xx.xx.167: icmp_seq=4492 ttl=116 4.88 ms... (6 Replies)
Discussion started by: zorrox
6 Replies

9. Red Hat

Total HDD size and count on Linux machine

Hi... I am trying to grab two information 1. Total size of HDD 2. Total number of HDD (if possible alongwith names) can someone suggest me how can we do that in linux machine.. though small scripts and commands like fdisk. (3 Replies)
Discussion started by: omkar.jadhav
3 Replies

10. IP Networking

Cant ping Linux machine from Windows

Hi I have established LAN with the help of D-Link router. I am having 2 desktops ethernet connection managed by this D-Link router. One PC is with Windows 7 OS Second PC is with Redhat Linux 6.1 Both the PCs now stands connected to internet via this D-Link router. I could ping windows PC... (12 Replies)
Discussion started by: videsh77
12 Replies
RMCPING(8)						      System Manager Commands							RMCPING(8)

NAME
rmcpping - send RMCP Ping to network hosts SYNOPSIS
rmcpping [OPTION...] destination DESCRIPTION
rmcpping uses the RMCP Ping request datagram to elicit an RMCP Pong response from a remote host. The utility can be used to verify if a remote host supports RMCP or IPMI. The initial starting sequence number will be randomized. rmcpping will return 0 to the environment if it receives atleast 1 response from the remote host. Otherwise, it exits with a value of 1. OPTIONS
The following options are available -h Output help menu. -V Output version. -c count Stop after sending count packets. -i interval Wait interval seconds between sending each packet. The default is to wait for one second between each packet. -I interface address Set source address to specified interface address. Argument may be numeric IP address or name of device. -t timeout Time to wait for a response, in seconds. Default is five seconds. -v Verbose output. -s num Specify an initial starting sequence number. The default is to use a random initial sequence number. -d Turn on debugging. KNOWN ISSUES
It has been observed that some remote BMCs can get "confused" and delay packet responses if duplicate packets (with duplicate sequence num- bers) are sent in succession very quickly. There is no known way to cleanly deal with a "confused" BMC other than the wait awhile. Unlike ping(8), local network devicess (e.g. 127.0.0.1) cannot be "pinged". REPORTING BUGS
Report bugs to <freeipmi-users@gnu.org> or <freeipmi-devel@gnu.org>. COPYRIGHT
Copyright (C) 2007-2012 Lawrence Livermore National Security, LLC. Copyright (C) 2003-2007 The Regents of the University of California. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. ORIGIN
Command and manpage based off ping(8). SEE ALSO
freeipmi(7), ping(8), ipmiping(8) http://www.gnu.org/software/freeipmi/ rmcpping 1.1.5 2012-06-15 RMCPING(8)
All times are GMT -4. The time now is 08:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy