Sponsored Content
Top Forums Shell Programming and Scripting How to get reason for ping failure using perls Net::Ping->new("icmp");? Post 302821059 by tavanagh on Friday 14th of June 2013 02:45:48 AM
Old 06-14-2013
I have tried same script using system ping for list of hosts I want to ping - for some of the hosts I am getting unknown hosts for others I am getting Host unreacheable. Do I need to do something like nslookup to check if host is in dns on the failed nodes - I was hoping I could do all with ping.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perls "Referance" question

ok im on chap19 (cgi programming) of learning perl 2nd edition. I am just not understanding how the referances to a class work. i understand the following example: @array1=qw( 1 2 3 4); $aref = \@array1; @array2=qw(5 6 7 8); $aref=\@array2; $# of $aref is now 1 print $aref; #... (2 Replies)
Discussion started by: Optimus_P
2 Replies

2. Solaris

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... (3 Replies)
Discussion started by: srilinux
3 Replies

3. IP Networking

Ping ICMP

Hi All, How to disable ICMP time stamp request and time stamp reply of a machine? How to test this feature from remote machine? Please reply back Vasanth (2 Replies)
Discussion started by: vasanthan
2 Replies

4. SuSE

VMDB Failure" followed by "Unable to open snapshot file"

keep getting an error when I try to revert to a snapshot: "VMDB Failure" followed by "Unable to open snapshot file" Im using vmware server 1.0.4, host OS is windows xp and guest OS is SLES. Is there anything I can do to recover the snapshot or am I in trouble!?!?! (0 Replies)
Discussion started by: s_linux
0 Replies

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

6. Cybersecurity

"authentication failure" then "session opened". Why?

Ssh connections using shared public keys issue “authentication failure” messages, then succeed with “session opened”. I have found a few other threads with similar issue, but no solutions offered. :wall: How can I eliminate the failure messages? Environment: $ uname -a Linux... (0 Replies)
Discussion started by: KennyCason
0 Replies

7. AIX

Ping Failure!!

Hi, Am trying to ping between AIX and FreeBSD7.4/i386 by IPv6 address.. It is unable, I configured all files like /etc/rc.conf at freebsd and /etc/hosts and etc/netsvc.conf and restarted the IPv6 network at AIX.. Please help me where I have missed the procedure.. (1 Reply)
Discussion started by: Priya Amaresh
1 Replies

8. Shell Programming and Scripting

Perl failure with "main::$fn" used only once:" in error logs

Hi all, Can anyone guess why this is happening? I am new to Perl, so please help me to fix this error: - I have a static html file which calls the cgi-perl script. HTML Code: <html> <head> <title> Hey Dude! </title> </head> <body> <form method="POST"... (3 Replies)
Discussion started by: bashily
3 Replies

9. Shell Programming and Scripting

Failure: if grep "$Var" "$line" inside while read line loop

Hi everybody, I am new at Unix/Bourne shell scripting and with my youngest experiences, I will not become very old with it :o My code: #!/bin/sh set -e set -u export IFS= optl="Optl" LOCSTORCLI="/opt/lsi/storcli/storcli" ($LOCSTORCLI /c0 /vall show | grep RAID | cut -d " "... (5 Replies)
Discussion started by: Subsonic66
5 Replies
Sonar(1)						      General Commands Manual							  Sonar(1)

NAME
sonar - display a sonar scope SYNOPSIS
sonar [-ping hosts-or-subnets] [-background color] [-sweep-color color] [-low-color color] [-scope-color color] [-grid-color color] [-text-color color] [-ttl integer] [-font font] [-ping-timeout int] [-team-a-name string] [-team-b-name string] [-team-a-count int] [-team- b-count int] [-debug] DESCRIPTION
The sonar program displays a sonar scope on the computer's screen. This scope polls a sensor as the sweep goes around the scope and dis- plays what it finds as bogies on the screen. The program is designed to support different modes representing different types of sensors. Currently the only implemented sensors are a simulator, and a network ping function that pings hosts and plots the results on the scope. OPTIONS
sonar understands the following options: -background Color The background Color of the screen not covered by the scope. -sweep-color Color The color of the brightest part of the sweep. -scope-color Color The color of the circular part of the scope. -grid-color Color The color to the grid lines overlaying the scope. -text-color Color The color of the text identifying bogies on the scope. -ttl integer "Time to live": visible time of a Bogie. Try values between 10 (very short) and 100. -font font The font used to display text on the scope. Default "fixed". -ping-timeout int The amount of time in milliseconds the program will wait for an answer to a ping. -ping hosts-or-subnets The list of things to ping, separated by commas or spaces. Elements of this list may be: simulation to run in simulation mode, instead of pinging real hosts (this is the default if the program is not installed setuid); hostname to ping the given host; A.B.C.D to ping the given IP address; subnet to ping the local class C subnet (the nearest 255 addresses); subnet/NN to 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 to 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 to 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 element on each line. If you use ssh, try this: sonar -ping $HOME/.ssh/known_hosts -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. RESOURCES
Configuration of the targets to ping is best done by setting X Resources. background (Color) See option -background, above; default value is black. sweepColor (Color) See option -sweep-color, above; default value is #00ff00. scopeColor (Color) See option -scope-color, above; default value is #003300. gridColor (Color) See option -grid-color, above; default value is #00aa00. textColor (Color) See option -text-color, above; default value is #ffff00. ttl (integer) See option -ttl, above; default value is 90 or one sweep. ping (string) See option -ping, above. If set to default, it will ping the contents of /etc/hosts if possible, otherwise, will run in simula- tion-mode. font (font) See option -font, above; default value is fixed. pingTimeout (Integer) See option -pingtimeout, above; default value is 3000. teamAName string See option -team-a-name, above. Default value is F18. teamBName string See option -teamBName, above. Default value is MIG. teamACount int See option -teamACount, above. Default value is 4. teamBCount int See option -teamBCount, above. Default value is 4. NOTES
In order to use the ping sensor, this program must be installed as setuid root, so that it can create an ICMP socket. Root privileges are disavowed shortly after startup (just after connecting to the X server and reading the resource database) so this is believed to be a safe thing to do, but it is usually recommended that you have as few setuid programs around as possible, on general principles. chown root.root sonar chmod u+s sonar SEE ALSO
X(1), xscreensaver(1), ping(8) COPYRIGHT
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-98. Thanks to Tom Kelly for suggesting a modular approach to the sensor amoung other things. Thomas Bahls <thommy@cs.tu-berlin.de> hacked the "ttl" option, 12-jul-98. Better subnet support and command-line processing by Jamie Zawinski, 17-Jul-00. X Version 11 3-Nov-98 Sonar(1)
All times are GMT -4. The time now is 05:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy