Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How do you check whether a port currently being used? Post 302296635 by vbe on Wednesday 11th of March 2009 01:36:37 PM
Old 03-11-2009
lsof isnt a unix command... but a opensource utility that might not be installed...
 

10 More Discussions You Might Find Interesting

1. IP Networking

how can i check if port is busy or if someone is using it ?

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

How can I check what port addresses used the application

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

How to check that a device is attached on a port

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

How to check if a Port is accepting connections.

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

Script to check if Port is Active

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

Perl- check the port used

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

How to check UDP port example = 31011?

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

How to check port used for SSL?

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

How to check empty port using netstat?

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

How to check the IP:PORT firewall uses?

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
semanage_port(3)					   Libsemanage API documentation					  semanage_port(3)

NAME
semanage_port - SELinux Network Ports Management API SYNOPSIS
#include <semanage/port_record.h> #include <semanage/ports_policy.h> #include <semanage/ports_local.h> This object contains properties associated with a range of network ports. For details on a specific function, see its manual page. Record API Overview semanage_port_create(3)- create a port range semanage_port_free(3)- release resources for this port range semanage_port_key_create(3)- create a key, which can be used to identify a port range semanage_port_key_free(3)- release resources for this port range key semanage_port_key_extract(3)- create a key matching this port range semanage_port_clone(3)- create an identical port range (deep-copy clone) semanage_port_compare(3)- compare this port range to the provided key semanage_port_compare2(3)- compare this port range to another Properties API Overview semanage_port_get_proto(3)- return the protocol for this port range semanage_port_get_proto_str(3)- return a string representation of the given port protocol semanage_port_set_proto(3)- set the protocol for this port range semanage_port_get_low(3)- return the low port number for this port range semanage_port_get_high(3)- return the high port number for this port range semanage_port_set_port(3)- set the port number (same low and high) for this port range semanage_port_set_range(3)- set the low and high port number for this port range semanage_port_get_con(3)- return the SELinux context for this port range semanage_port_set_con(3)- set the SELinux context for this port range Record Store API Overview semanage_port_modify_local(3)- add or update a port range in the local store semanage_port_del_local(3)- delete a port range from the local store semanage_port_exists(3)- check if a port range is defined in the persistent policy semanage_port_exists_local(3)- check if a port range is defined in the local store semanage_port_query(3)- query a port range in the persistent policy semanage_port_query_local(3)- query a port range in the local store semanage_port_count(3)- count the number of port ranges defined in the persistent policy semanage_port_count_local(3)- count the number of port ranges defined in the local store semanage_port_iterate(3)- execute a callback for each port range in the persistent policy semanage_port_iterate_local(3)- execute a callback for each port range in the local store semanage_port_list(3)- return an array containing all port ranges in the persistent policy semanage_port_list_local(3)- return an array containing all port ranges in the local store ivg2@cornell.edu 16 March 2006 semanage_port(3)
All times are GMT -4. The time now is 06:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy