MACHINE=10.0.0.1 # Change to what ever you need
PORT=23
exec 3>/dev/tcp/${MACHINE}/${PORT}
if [ $? -eq 0 ]
then
echo "server accepting connections on $PORT port"
else
echo "server connections not possible $PORT port"
fi
Hi All,
I am new to perl and have been trying to write a short script to check a process.Though i havent reached to the stage where i can match the output.
I am trying to pass a variable x with value /opt/RGw/csbp-base/CSBP_BAT.01.00.05/csbp_BAT.01.00.05.jar
and then pass another variable... (2 Replies)
How can I tell, in a shell script, if a certain service is running? I know how to do this on the command line, but not in a script. Is an error thrown somehow that I can check?
Thanks. (6 Replies)
I've one Netra 240
After changing main board and system configuration card reader, Network is not accessible any more, Network interfaces are always UP and Running even when there is no cable connected to Network interfaces.
I tried to restart and plumb/unplumb with no luck.
ifconfig -a... (7 Replies)
Hi,
I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help..
i am using below command to run script
nohup system_traps.sh &
but in some... (9 Replies)
I am using blow script :--
#!/bin/bash
FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not
if
then
# echo "process found"
exit 0;
else
echo "process not found"
exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
May i please know
1) How to check if FIFO process is down?
2) How to bring FIFO up and running?
we are using redhat Linux OS and bash shell
Thank you. (1 Reply)
Hi all,
As per the topic goes,
q1) how do i check remotely (over ssh) - how many physical network interfaces I really have ? -- if an interface exists before and it got plug out, it must not be show again.
-- i tried dladm show-link and ifconfig -a, but it seems to show a previously... (4 Replies)
Hi,
For audit reasons, I need to stop the web server service in some Solaris servers.
The port that is listening for this service is port 10000.
This is the output that shows the port 10000 is open in the server :
# netstat -an | grep 10000
10.70.21.144.10000 10.70.21.133.58130 49640... (6 Replies)
Hi
I have created a PowerShell script which successfully checks whether windows service pgsql-9.2 is running.
I have tried to call that PowerShell script with a shell/bash script within a LINUX machine but have been unsuccessful.
Is there a way of a shell/Perl script to check whether a... (5 Replies)
Discussion started by: simpsa27
5 Replies
LEARN ABOUT DEBIAN
xr
XR(1) Man Page XR(1)NAME
xr - Crossroads Load Balancer & Fail Over Utility
SYNOPSIS
xr [--verbose] [--web-interface XRSERVER:PORT] --server tcp:XRSERVER:PORT --backend BACKEND:PORT [--backend BACKEND:PORT] ...
DESCRIPTION
This manual page briefly documents XR, the Crossroads Load Balancer & Fail Over Utility.
XR is an open source load balancer and fail over utility for TCP based services. It is a dae mon running in user space, and features exten-
sive configurability, polling of back ends using wake up calls, status reporting, many algorithms to select the 'right' back end for a
reques t (and user-defined algorithms for very special cases), and much more.
XR is service-independent: it is usable for any TCP service, such as HTTP(S), SSH, SMTP, dat abase connections. In the case of HTTP balanc-
ing, XR handles multiple host balancing, and can provide session stickiness for back end processes that need sessions, but aren't session-
awa re of other back ends.
XR furthermore features a management web interface and can be run as a stand-alone daemon, or via inetd.
Execute 'xr -h' to get a complete list of available command-line parameters.
EXAMPLE
xr --verbose --server tcp:0:80 --backend 10.1.1.1:80 --backend 10.1.1.2:80 --backend 10.1.1. 3:80 --web-interface 0:8001
This instructs XR to listen to port 80 and to dispatch traffic to the servers 10.1.1.1, 10.1.1.2 and 10.1.1.2, port 80. A web interface for
the balancer is started on port 8001.
Direct your browser to the server running XR. You will see the pages served by one of the three back ends. The console where XR is started,
will show what's going on (due to the presence of --verbose).
Direct your browser to the server running XR, but port 8001. You will see the web interface, which shows the status, and where you can
alter some settings.
SEE ALSO xrctl(1)AUTHOR
XR was written by Karel Kubat <karel@kubat.nl>. Web page: http://crossroads.e-tunity.com
This man page was written by Frederik Dannemare <frederik@dannemare.net>.
Crossroads Nov 6, 2008 XR(1)