Hi,
Using Linux 5 . A change in the script which will take a input file which has servername,port. As telnet was not going into the next item in the file, i used curl instead of telnet. This works. However i am not able to get the output of the script write into the log file properly. I will have to see if i can get the output which only displays in the console be printed in the output.log file.
Input to the file is : serverlist.txt
Script is :trytelnet.sh -->
Execution is :
Moderator's Comments:
Please use CODE tags consistently as required by forum rules!
Last edited by RudiC; 07-09-2018 at 06:06 PM..
Reason: Added missing CODE tags.
Hello All,
Can somebody help me with this script. I have an output file with a list of servers ips and ports. I need to be able to run this script to list all the server ips in the outfile and find out if the port is open or not.
#!/bin/sh
IFS=#;for i in $(cat portTest);
do
# check... (2 Replies)
Hi all - i currently run a domain strifex.net. This domain has a dedicated IP address and in having that, should be able to run a ventrilo VoIP server from it. I uploaded all the needed files etc... and am able to connect to it, if and only if i enable DMZ to my local machine - then i am able to... (1 Reply)
Hi All,
I've been using this to verify if ports is open on a server. For example I would like to check port 5887, "telnet ip.of.server 5887" using on dos. If there's response on it then I can say it's open, if not then it's close.
Is that assumption accurate?
Thanks for any comments you... (4 Replies)
I have a ftp server on ssl talking on port 21, i would like to allow another port to acess the same server. I am not sure if its possible or not and if its how can i do that? (2 Replies)
Hi All,
I have a problem with auto telnet script, but I want to tell u something
a) I am only a member access on the server, so not able to access 'root' account
b) not able to install any software on server
3) On server, there is not install 'except'
I have to write a script, which is ran... (0 Replies)
Alright... this question comes from the fact that I'm trying to setup postfix to relay messages to Office 365 SMTP but its giving me connection refused... I read that if you have doubts if your port is open or not you should telnet to them so thats what I did.
This is a Red Hat 6.3 box.
My... (4 Replies)
I have a server with 6 Ethernet ports. 4 are the the motherboard based 1 GBE ports and 2 are 10 GBE ports on NICs.
I have set these all up with static IP addresses and use the standard /etc/nsswitch.files. My IP addresses are
net0 192.168.1.82
net1 192.168.2.82
and so on till
net5... (4 Replies)
I wish to grep for an entry in a file if it contains and does not start with #, Listen 443 or Listen 9443
Below is what helped me get Listen 443 but how can I tweak the below command to also include Listen 9443 port ?
Note: Listen 8443 or Listen 4438 should fail in the grep.
... (2 Replies)
Discussion started by: mohtashims
2 Replies
LEARN ABOUT CENTOS
trace-cmd-listen
TRACE-CMD-LISTEN(1)TRACE-CMD-LISTEN(1)NAME
trace-cmd-listen - listen for incoming connection to record tracing.
SYNOPSIS
trace-cmd listen -p port [OPTIONS]
DESCRIPTION
The trace-cmd(1) listen sets up a port to listen to waiting for connections from other hosts that run trace-cmd-record(1) with the -N
option. When a connection is made, and the remote host sends data, it will create a file called trace.HOST:PORT.dat. Where HOST is the name
of the remote host, and PORT is the port that the remote host used to connect with.
OPTIONS -p port
This option will specify the port to listen to.
-D
This options causes trace-cmd listen to go into a daemon mode and run in the background.
-d dir
This option specifies a directory to write the data files into.
-o filename
This option overrides the default trace in the trace.HOST:PORT.dat that is created when a remote host connects.
-l filename
This option writes the output messages to a log file instead of standard output.
SEE ALSO trace-cmd(1), trace-cmd-record(1), trace-cmd-report(1), trace-cmd-start(1), trace-cmd-stop(1), trace-cmd-extract(1), trace-cmd-reset(1),
trace-cmd-split(1), trace-cmd-list(1)AUTHOR
Written by Steven Rostedt, <rostedt@goodmis.org[1]>
RESOURCES
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git
COPYING
Copyright (C) 2010 Red Hat, Inc. Free use of this software is granted under the terms of the GNU Public License (GPL).
NOTES
1. rostedt@goodmis.org
mailto:rostedt@goodmis.org
06/11/2014 TRACE-CMD-LISTEN(1)