What are the alternatives for checking open ports, besides telnet?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
we can use the following in order to test telnet VIA port
as the following example we test port 6667
[root@kafka03 ~]# telnet kafka02 6667
Trying 103.64.35.86...
Connected to kafka02.
Escape character is '^]'.
^CConnection closed by foreign host
since on some machines we cant use telnet , from internal reasons
then we want know what are the alternative to check post as telnet
linux rhel curl telnet
add a comment |Â
up vote
2
down vote
favorite
we can use the following in order to test telnet VIA port
as the following example we test port 6667
[root@kafka03 ~]# telnet kafka02 6667
Trying 103.64.35.86...
Connected to kafka02.
Escape character is '^]'.
^CConnection closed by foreign host
since on some machines we cant use telnet , from internal reasons
then we want know what are the alternative to check post as telnet
linux rhel curl telnet
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
we can use the following in order to test telnet VIA port
as the following example we test port 6667
[root@kafka03 ~]# telnet kafka02 6667
Trying 103.64.35.86...
Connected to kafka02.
Escape character is '^]'.
^CConnection closed by foreign host
since on some machines we cant use telnet , from internal reasons
then we want know what are the alternative to check post as telnet
linux rhel curl telnet
we can use the following in order to test telnet VIA port
as the following example we test port 6667
[root@kafka03 ~]# telnet kafka02 6667
Trying 103.64.35.86...
Connected to kafka02.
Escape character is '^]'.
^CConnection closed by foreign host
since on some machines we cant use telnet , from internal reasons
then we want know what are the alternative to check post as telnet
linux rhel curl telnet
linux rhel curl telnet
edited 9 mins ago


steve
13.4k22251
13.4k22251
asked 4 hours ago
yael
2,1511650
2,1511650
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
netcat is one option.
nc -zv kafka02 6667
-z
= sets nc to simply scan for listening daemons, without actually sending any data to them-v
= enables verbose mode
is it possible to get standard output from the nc ? because I want to write in in my bash script
– yael
4 hours ago
Read the documentation! Without optionsnc
behaves a lot liketelnet
.
– Henrik
3 hours ago
yes I read the docs but -w flag not works as timeout
– yael
3 hours ago
example - c -v -w 1 kafka01 6667 ( we not get timeout )
– yael
3 hours ago
nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
– yael
3 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
netcat is one option.
nc -zv kafka02 6667
-z
= sets nc to simply scan for listening daemons, without actually sending any data to them-v
= enables verbose mode
is it possible to get standard output from the nc ? because I want to write in in my bash script
– yael
4 hours ago
Read the documentation! Without optionsnc
behaves a lot liketelnet
.
– Henrik
3 hours ago
yes I read the docs but -w flag not works as timeout
– yael
3 hours ago
example - c -v -w 1 kafka01 6667 ( we not get timeout )
– yael
3 hours ago
nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
– yael
3 hours ago
add a comment |Â
up vote
4
down vote
netcat is one option.
nc -zv kafka02 6667
-z
= sets nc to simply scan for listening daemons, without actually sending any data to them-v
= enables verbose mode
is it possible to get standard output from the nc ? because I want to write in in my bash script
– yael
4 hours ago
Read the documentation! Without optionsnc
behaves a lot liketelnet
.
– Henrik
3 hours ago
yes I read the docs but -w flag not works as timeout
– yael
3 hours ago
example - c -v -w 1 kafka01 6667 ( we not get timeout )
– yael
3 hours ago
nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
– yael
3 hours ago
add a comment |Â
up vote
4
down vote
up vote
4
down vote
netcat is one option.
nc -zv kafka02 6667
-z
= sets nc to simply scan for listening daemons, without actually sending any data to them-v
= enables verbose mode
netcat is one option.
nc -zv kafka02 6667
-z
= sets nc to simply scan for listening daemons, without actually sending any data to them-v
= enables verbose mode
answered 4 hours ago


steve
13.4k22251
13.4k22251
is it possible to get standard output from the nc ? because I want to write in in my bash script
– yael
4 hours ago
Read the documentation! Without optionsnc
behaves a lot liketelnet
.
– Henrik
3 hours ago
yes I read the docs but -w flag not works as timeout
– yael
3 hours ago
example - c -v -w 1 kafka01 6667 ( we not get timeout )
– yael
3 hours ago
nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
– yael
3 hours ago
add a comment |Â
is it possible to get standard output from the nc ? because I want to write in in my bash script
– yael
4 hours ago
Read the documentation! Without optionsnc
behaves a lot liketelnet
.
– Henrik
3 hours ago
yes I read the docs but -w flag not works as timeout
– yael
3 hours ago
example - c -v -w 1 kafka01 6667 ( we not get timeout )
– yael
3 hours ago
nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
– yael
3 hours ago
is it possible to get standard output from the nc ? because I want to write in in my bash script
– yael
4 hours ago
is it possible to get standard output from the nc ? because I want to write in in my bash script
– yael
4 hours ago
Read the documentation! Without options
nc
behaves a lot like telnet
.– Henrik
3 hours ago
Read the documentation! Without options
nc
behaves a lot like telnet
.– Henrik
3 hours ago
yes I read the docs but -w flag not works as timeout
– yael
3 hours ago
yes I read the docs but -w flag not works as timeout
– yael
3 hours ago
example - c -v -w 1 kafka01 6667 ( we not get timeout )
– yael
3 hours ago
example - c -v -w 1 kafka01 6667 ( we not get timeout )
– yael
3 hours ago
nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
– yael
3 hours ago
nc -v -w 3 kafka01 6667 Ncat: Version 6.40 ( nmap.org/ncat ) Ncat: Connected to 10.164.235.85:6667. ( this still hang )
– yael
3 hours ago
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479710%2fwhat-are-the-alternatives-for-checking-open-ports-besides-telnet%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password