03-11-2009
You can check it with netstat -a and search for either port name associated with /etc/services or just the portnumber if it is not listed in /etc/services.
You can see stati like ESTABLISHED and others.
To check remote if a port is available or not, you can use nmap. It doesn't say if this port is currently being used though. Just have a loot at it as additional info
10 More Discussions You Might Find Interesting
1. IP Networking
Hello
i have application that using ports , how can i check if the port im using is not captured by any applications? (1 Reply)
Discussion started by: umen
1 Replies
2. IP Networking
Hello Mentors!
I am a new here in the furom, i hope somebody can understand my problem.
Basically we have an application here called unigraphics and being installed per station and the setup is look like this.
1. installed unigraphics UGNX3 version on every station
2. some are installed in... (1 Reply)
Discussion started by: eykyn17
1 Replies
3. Solaris
Q1: can anyone tell me how cfgadm keeps track of the device even if the device is disconnected ,
when we disconnect a device using cfgadm
cfgadm -ys disconnect <ap_id>
then the device disappears from the lshal o/p. HAL uses libdevinfo for the device list. if the device is not there in the... (2 Replies)
Discussion started by: narendra.pant
2 Replies
4. Shell Programming and Scripting
Hi,
I need to create a script which checks the availability of a particular service on a particular Port on HP-Unix. Is there any command in unix wherein we can check if any port is accepting the connections now.
Thanks,
Vihang. (5 Replies)
Discussion started by: vikings.svnit
5 Replies
5. Shell Programming and Scripting
is there a better way to check if a port is active on linux and sunos systems?
this is currently what I'm using in my script:
netstat -an | egrep -i "$PORT"
i know this isn't the best way as there could be numbers in that output that has my port number in it but isn't necessarily a... (0 Replies)
Discussion started by: SkySmart
0 Replies
6. Shell Programming and Scripting
hi everybody;
my code is cheking if a port is an actif or not with the cmd netstat -ln,I want first to enter the number of the port which I want to check it but I think that the value of $con in the second "if" is always "0" so the code give me always that the port is not used!!!
... (5 Replies)
Discussion started by: bassma
5 Replies
7. Shell Programming and Scripting
We have open port UDP port 31011, how to verify if port were working or traffic were receive. (2 Replies)
Discussion started by: avtalan
2 Replies
8. Red Hat
I have RHEL 5.8 in our production environment. We are using SSL, my query is how to find the port used for SSL. In /etc/services, it shows 443 but when I give
netstat -tulpn | grep 443
Or
netstat -tulp | grep https
I do not get any output.
I hope, my question is clear of how to find... (4 Replies)
Discussion started by: RHCE
4 Replies
9. Shell Programming and Scripting
Hi,
How to check empty port using netstat please help
Thanks
Ashfaque (3 Replies)
Discussion started by: ashfaque
3 Replies
10. Shell Programming and Scripting
I have my firewall process running
# ps -ef | grep firewall
root 21169 1 0 08:50 ? 00:00:00 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
I wish to know what ip : port number it is using. Can you please tell me how can i find out ?
I tried the below command... (4 Replies)
Discussion started by: mohtashims
4 Replies
LEARN ABOUT CENTOS
checkrad
CHECKRAD(5) File Formats Manual CHECKRAD(5)
NAME
checkrad -- See if a user is (still) logged in on a certain port.
SYNOPSIS
checkrad [-d] nas-type nas-ip nas-port login session-id
DESCRIPTION
Checkrad is used by the radius server to check if its idea of a user logged in on a certain port/NAS is correct if a double login is
detected.
Returns: 0 = no duplicate, 1 = duplicate, >1 = error.
OPTIONS
-d Enable printing of debugging informations.
nas-type
Type of port/NAS. Can be one of:
o ascend
o bay
o cisco
o cisco_l2tp
o computone
o cvx
o digitro
o dot1x
o livingston
o max40xx
o mikrotik
o mikrotik_snmp
o multitech
o netserver
o other
o pathras
o patton
o portslave
o pr3000
o pr4000
o redback
o tc
o usrhiper
o versanet
The "other" type cause checkrad to skip any check and always returns 1.
nas-ip IP address of the NAS to check.
nas-port
The NAS port to check (may be ignored by some nas-type).
login The login name to check.
session-id
Session to check. (actually ignored by all nas-type)
SEE ALSO
radiusd(8)
AUTHOR
Written by Miquel van Smoorenburg, miquels@cistron.nl.
This manual page was written by Marco Nenciarini <mnencia@debian.org> for the Debian project (but may be used by others).
13 January 2006 CHECKRAD(5)