Sponsored Content
Full Discussion: pinging IP's in a file
Operating Systems AIX pinging IP's in a file Post 75717 by jhansrod on Tuesday 21st of June 2005 03:12:39 PM
Old 06-21-2005
A simple solution would be to use a for loop :-
for x in `pg file`
do
ping -options $x
done

Hope this helps...
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Server stopped pinging (in and out)

hi All my Redhat Linux server stopped responding to pings all together. and am also not able to ping out of the box. There are however no issues with internet connectivity and my application is working fine. When I tried to ping another machine (Win98) i could see the pings coming from my... (2 Replies)
Discussion started by: skotapal
2 Replies

2. Shell Programming and Scripting

pinging an ip

Hi, How to ping an ip from an unix machine. Can you please let me know the exact command. I used and i got the below error ping 171.18.17.2 bash: ping: command not found Thanks n regards Ammu (1 Reply)
Discussion started by: ammu
1 Replies

3. UNIX for Advanced & Expert Users

Alternate to pinging boxes

Hello, We have boxes on a WAN network I guess you would call it, pretty much they are hooked up via DSL in different locations in the US and we connect to them via SSH for a secure connection. Some of the boxes won't return a ping request like they are down, I am guessing is because the router... (5 Replies)
Discussion started by: benefactr
5 Replies

4. Shell Programming and Scripting

Forking and Pinging

Keep in mind that I haven't done Perl scripting for a LONG time, so I'm quite rusty. This is what I would like to do: - using fork, create 3 or 4 processes to read 3 or 4 different text documents containing server names or IP addresses - in each of those processes, Perl will ping each of those... (7 Replies)
Discussion started by: kooshi
7 Replies

5. Solaris

Server Pinging Problem

Dear all, I face some problem as below. I have a sun fire 280r server in a network. From that server i am able to ping any system in any network. But i am facing the problem when i try to ping the server from outside netwok. Once i give ping command in the server then only i try to... (1 Reply)
Discussion started by: sudhansu
1 Replies

6. Shell Programming and Scripting

Pinging a domain

how can you ping a domain and store the ip? like given a url in a variable $url how can i ping it? also how can i find the local server's ip address on a cpanel server? (i have multiple servers and didnt want to hard code it in) (basically i want to check the domain accounts on the server,... (11 Replies)
Discussion started by: vanessafan99
11 Replies

7. IP Networking

Pinging IP located on another interface

Hi, I have a rather strange IP question... Here's my problem: I have a Linux box (call it "turing") with 2 NICs. One network interface (eth0) has an IP assigned, say 192.168.42.50. The other interface (eth1) is up, but has no IP yet. My question: is it possible to determine from... (3 Replies)
Discussion started by: NH2
3 Replies

8. UNIX Desktop Questions & Answers

Pinging Host

I need to ping websites and I need to see which one has the highest delay. My problem is I need to extract the name Facebook and the time=74.0 ms using awk. I need help doing this please... PING facebook.com (173.252.90.36) 56(84) bytes of data. 64 bytes from... (5 Replies)
Discussion started by: 5sku5
5 Replies

9. Emergency UNIX and Linux Support

Script for pinging continuously

Hi, I need to set up a script that would write the results of the ping command from one AIX server to another file may be every minute. Like this I need to gather the data for a period of 24 hours. Can someone please help me with this? G (5 Replies)
Discussion started by: ggayathri
5 Replies

10. Shell Programming and Scripting

Pinging 5 hosts once every hour

Hello folks; I'm trying to write a shell script to ping 5 hosts i have once every 1 hour and if it receives any failure from any of those hosts, it sends an email alert with the results from this failing ping. Any help would be greatly appreciated (1 Reply)
Discussion started by: Katkota
1 Replies
sonar(6x)							XScreenSaver manual							 sonar(6x)

NAME
sonar - display a sonar scope SYNOPSIS
sonar [-ping hosts-or-subnets] [-ping-timeout int] [-delay usecs] [-speed ratio] [-sweep-size ratio] [-font-size points] [-team-a-name string] [-team-b-name string] [-team-a-count int] [-team-b-count int] [-no-dns] [-no-times] [-no-wobble] [-debug] [-fps] DESCRIPTION
This draws a sonar screen that pings (get it?) the hosts on your local network, and plots their distance (response time) from you. The three rings represent ping times of approximately 2.5, 70 and 2,000 milliseconds respectively. Alternately, it can run a simulation that doesn't involve hosts. OPTIONS
sonar understands the following options: -ping hosts-or-subnets The list of things to ping, separated by commas or spaces. Elements of this list may be: simulation Run in simulation mode instead of pinging real hosts. hostname Ping the given host. A.B.C.D Ping the given IP address. subnet Ping the local class C subnet (the nearest 255 addresses). subnet/NN Ping a different-sized local subnet: e.g., subnet/28 would ping a 4-bit subnet (the nearest 15 addresses). A.B.C.D/NN Ping an arbitrary other subnet. The IP address specifies the base address, and the part after the slash is how wide the subnet is. Typical values are /24 (for 255 addresses) and /28 (for 15 addresses). filename Ping the hosts listed in the given file. This file can be in the format used by /etc/hosts, or it can be any file that has host names as the first or second element on each line. If you use ssh, try this: sonar -ping $HOME/.ssh/known_hosts -ping-timeout int The amount of time in milliseconds the program will wait for an answer to a ping. -delay int Delay between frames, in microseconds. Default 20000. -speed ratio Less than 1 for slower, greater than 1 for faster. Default 1. -sweep-size ratio How big the glowing sweep area should be. Default 0.3. -font-size points How large the text should be. Default 10 points. -no-wobble Keep the display stationary instead of very slowly wobbling back and forth. -no-dns Do not attempt to resolve IP addresses to hostnames. -no-times Do not display ping times beneath the host names. -team-a-name string In simulation mode, the name of team A. -team-b-name string In simulation mode, the name of team B. -team-a-count int In simulation mode, the number of bogies on team A. -team-b-count int In simulation mode, the number of bogies on team B. -fps Display the current frame rate, polygon count, and CPU load. NOTES
On most Unix systems, this program must be installed as setuid root in order to ping hosts. This is because root privileges are needed to create an ICMP RAW socket. Privileges are disavowed shortly after startup (just after connecting to the X server) so this is believed to be safe: chown root:root sonar chmod u+s sonar It is not necessary to make it setuid on MacOS systems, because on MacOS, unprivileged programs can ping by using ICMP DGRAM sockets instead of ICMP RAW. In ping-mode, the display is a logarithmic scale, calibrated so that the three rings represent ping times of approximately 2.5, 70 and 2,000 milliseconds respectively. This means that if any the hosts you are pinging take longer than 2 seconds to respond, they won't show up; and if you are pinging several hosts with very fast response times, they will all appear close to the center of the screen (making their names hard to read.) SEE ALSO
X(1), xscreensaver(1), ping(8) COPYRIGHT
Copyright (C) 2000-2008 by Jamie Zawinski <jwz@jwz.org> Copyright (C) 1998 by Stephen Martin. <smartin@canada.com> Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in sup- porting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. AUTHORS
Stephen Martin <smartin@canada.com>, 3-nov-1998. Subnet support, etc. added by Jamie Zawinski, 17-Jul-2000. Rewritten using OpenGL instead of X11 by Jamie Zawinski, 12-Aug-2008. X Version 11 5.15 (28-Sep-2011) sonar(6x)
All times are GMT -4. The time now is 06:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy