This is my first posting here, I haven't found exactly what I'm looking for anywhere else so I'm hoping you all can help. I have a portion of script here that needs to ping two servers, then return whether they are up or down (somehow), and then echo that information. Here is what I have so far. It does echo up/down, but the information doesn't change regardless of the ping success.
Moderator's Comments:
Please use CODE tags as required by forum rules!
Last edited by RudiC; 10-07-2018 at 05:01 AM..
Reason: Added CODE tags.
can someone pls help me with the script for a files coming from one system to a particular directory and i want to write a script to move those files to another directory on different system by renaming the files...
pls someone help me on this...
thanking in anticipation.... (1 Reply)
hi ,
i have problem that i can't ping machine , machine is in running state but i can't access or ping it .. but when i restarts that machine it works fine.
can anybody have an idea abou this problem ..
thanks (1 Reply)
Hi
How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Hi all,
I would like to start developping some good scripting skills. Do you think it would be best to start with shell scripting or Perl? I already got a fundation, really basics, in perl. but I am wondering what would be best to be good at first.
Can you please help me determine which one to... (14 Replies)
Gents,
I have been working in a Solaris/Unix environment for about 9 months. I took some linux classses online before getting the job. But, I am not very good at scripting. I want to learn how to script. Do you think that I should start with Shell scripting or Perl? I wanted to continue with... (2 Replies)
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)
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)
This is the script I already have but I have problems with two arguments
the first argument -t , I want to count 200 by the last digit of the IP address for example when I run the script ./ping.sh -t 17, the output would be192.168.0.217 is upThe second arguments --up won't work. Could anybody... (1 Reply)
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
LEARN ABOUT CENTOS
unbound-streamtcp
unbound-streamtcp(1) unbound unbound-streamtcp(1)NAME
unbound-streamtcp - unbound DNS lookup utility
SYNOPSIS
unbound-streamtcp [-unsh] [-f ipaddr[@port]] name type class
DESCRIPTION
unbound-streamtcp sends a DNS Query of the given type and class for the given name to the DNS server over TCP and displays the response.
If the server to query is not given using the -f option then localhost (127.0.0.1) is used. More queries can be given on one commandline,
they are resolved in sequence.
The available options are:
name This name is resolved (looked up in the DNS).
type Specify the type of data to lookup.
class Specify the class to lookup for.
-u Use UDP instead of TCP. No retries are attempted.
-n Do not wait for the answer.
-s Use SSL.
-h Print program usage.
-f ipaddr[@port]
Specify the server to send the queries to. If not specified localhost (127.0.0.1) is used.
EXAMPLES
Some examples of use.
$ unbound-streamtcp www.example.com A IN
$ unbound-streamtcp -f 192.168.1.1 www.example.com SOA IN
$ unbound-streamtcp -f 192.168.1.1@1234 153.1.168.192.in-addr.arpa. PTR IN
EXIT CODE
The unbound-streamtcp program exits with status code 1 on error, 0 on no error.
AUTHOR
This manual page was written by Tomas Hozza <thozza@redhat.com>.
NLnet Labs Mar 21, 2013 unbound-streamtcp(1)