10 More Discussions You Might Find Interesting
1. Programming
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
2. Shell Programming and Scripting
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
3. IP Networking
I am unable to ping my remote server.My server is unable to ping the same. both are able to ping the gateway. both the ip's are on same network.i use a proxy tunnel on my remote server.Help if any clues. (6 Replies)
Discussion started by: oslbhavana
6 Replies
4. Shell Programming and Scripting
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
5. Linux
Hi All,
Need your help one more time.
I am trying to ping a linux machine which is not responding to ping.
However traceroute can reach the machine and I can log in to it by ssh. I have checked /proc/sys/net/ipv4/icmp_echo_ignore_all it is already set as "0".
It is not happening in the... (1 Reply)
Discussion started by: ailnilanjan
1 Replies
6. IP Networking
hi,
I m trying to ping ip on the network . The machine is started but i can't access and can't ping it .. But when i restarts that machine that works fine..... can anybody have an idea about this problem ??
if then reply ..
thanks (2 Replies)
Discussion started by: tahir23
2 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
I have one system installed on Linux Red Hat 3.0. I have ip of system 3.156.168.*** and i want to ping some port that is on this IP which command i can do this?
sam70 (1 Reply)
Discussion started by: sam70
1 Replies
8. AIX
We can ping out but the return never comes back even to localhost
ping localhost
PING loopback: (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0 ms
it just sits there....
any ideas, any files to check (1 Reply)
Discussion started by: csaunders
1 Replies
9. UNIX for Dummies Questions & Answers
Hi there hope list can help
I'm looking for a command that does the following
lets say i ping a server 00.00.000.00
and this server is up and running how do i get the ping command to return a UP or a Down
meaning
if the command is true do this
if the command is False do this
... (2 Replies)
Discussion started by: nemex
2 Replies
10. IP Networking
Hi,
When I pinged a machin, I got to be seen a different kind of
reply from that machine.
This is as below : "Reply from 136.128.11.116: Source quench received." Which I felt like an un-usual message.
So what does this mean.
Regards & Thanks in advance.
Vishwa. (4 Replies)
Discussion started by: S.Vishwanath
4 Replies
ROUTE(8) System Manager's Manual ROUTE(8)
NAME
route - manually manipulate the routing tables
SYNOPSIS
/sbin/route [ -f ] [ -n ] [ command args ]
DESCRIPTION
Route is a program used to manually manipulate the network routing tables. It normally is not needed, as the system routing table manage-
ment daemon, routed(8), should tend to this task.
Route accepts two commands: add, to add a route, and delete, to delete a route.
All commands have the following syntax:
/sbin/route command [ net | host ] destination gateway [ metric ]
where destination is the destination host or network, gateway is the next-hop gateway to which packets should be addressed, and metric is a
count indicating the number of hops to the destination. The metric is required for add commands; it must be zero if the destination is on
a directly-attached network, and nonzero if the route utilizes one or more gateways. If adding a route with metric 0, the gateway given is
the address of this host on the common network, indicating the interface to be used for transmission. Routes to a particular host are dis-
tinguished from those to a network by interpreting the Internet address associated with destination. The optional keywords net and host
force the destination to be interpreted as a network or a host, respectively. Otherwise, if the destination has a ``local address part''
of INADDR_ANY, or if the destination is the symbolic name of a network, then the route is assumed to be to a network; otherwise, it is pre-
sumed to be a route to a host. If the route is to a destination connected via a gateway, the metric should be greater than 0. All sym-
bolic names specified for a destination or gateway are looked up first as a host name using gethostbyname(3N). If this lookup fails, get-
netbyname(3N) is then used to interpret the name as that of a network.
Route uses a raw socket and the SIOCADDRT and SIOCDELRT ioctl's to do its work. As such, only the super-user may modify the routing
tables.
If the -f option is specified, route will ``flush'' the routing tables of all gateway entries. If this is used in conjunction with one of
the commands described above, the tables are flushed prior to the command's application.
The -n option prevents attempts to print host and network names symbolically when reporting actions.
DIAGNOSTICS
``add [ host | network ] %s: gateway %s flags %x''
The specified route is being added to the tables. The values printed are from the routing table entry supplied in the ioctl call. If the
gateway address used was not the primary address of the gateway (the first one returned by gethostbyname), the gateway address is printed
numerically as well as symbolically.
``delete [ host | network ] %s: gateway %s flags %x''
As above, but when deleting an entry.
``%s %s done''
When the -f flag is specified, each routing table entry deleted is indicated with a message of this form.
``Network is unreachable''
An attempt to add a route failed because the gateway listed was not on a directly-connected network. The next-hop gateway must be given.
``not in table''
A delete operation was attempted for an entry which wasn't present in the tables.
``routing table overflow''
An add operation was attempted, but the system was low on resources and was unable to allocate memory to create the new entry.
SEE ALSO
intro(4N), routed(8), XNSrouted(8)
4.2 Berkeley Distribution November 16, 1996 ROUTE(8)