I've set up port forwarding over ssh so I can securely connect to a web console.
Hi,
I want to create a script that will check the connectivity to a IP address & port using nc command & if there is a connectivity issue, it will send a SMS alert.
I have written a basic script which has IP address & port hard coded in it & it is working fine.
I want to read IP address & port from a text file so that every half an hour the script checks connectivity to m
Hello EveryOne,
I am new to *ix.
I am facing is that to check the port number of the server is opened or not. DOnt know how to check it and also gone via various hp pdf's with no go. Like in cisco if we want to check whether the server is able to hear at some specific port then we run the command telnet ip port-number (enter). it will give us the prompt whether the window is open on that port number or not. Please respond back
Hello guys
I am experiencing a very strange behavior on one of our AIX servers. We have an application with several processes that listen on several port numbers. Sometimes we receive complains that people cannot connect to the server on a specific port that is used by one the application processes.
Hi all,
I search an efficient way to restrict ssh connections to only run a specific command. It is intended to be used automaticaly. Say the user name is "check" and the command is "ps", and used by a remote monitoring host.
I have written a shell script to scan the ports of system using nmap.
I am searching for some port number like 515 which is used by the Line Printer Daemon—print service and if it is there means I can say it is a printer as printer only have this daemon.
I don't know whether this port can be used by any other process.If yes kindly tell me about this whether it is possible to use the well known p
I wrote a small init script for proftpd (latest stable version, compiled myself) and am noticing that the executable exits with status 0 even if server fails to start (in my case, for example, due to SSH port conflict).
Shouldn’t it exit with > 0? Or,
How can a script detect whether startup was successful short of sleeping for arbitrary time and checking for PID?
# ./proftpd
# echo $?
Consider this snippet:
stop () {
echo "${1}" 1>&2
exit 1
}
func () {
if false; then
echo "foo"
else
stop "something went wrong"
fi
}
Normally when func is called it will cause the script to terminate, which is the intended behaviour. However, if it's executed in a sub-shell, such as in
result=`func`
it will not exit the script.