Finding service based on port number


 
Thread Tools Search this Thread
Operating Systems AIX Finding service based on port number
# 1  
Old 01-11-2010
Question Finding service based on port number

is it possible to find out which Service is running on the basis of port no which is open/listening?

Regards

Manoj
# 2  
Old 01-11-2010
If you have lsof installed you can run it as root and grep for LISTEN. E.g.

Code:
root@lcrmdb1:/root >lsof | grep ":ssh (LISTEN)"
lsof: WARNING: compiled for AIX version 5.2.0.0; this is 5.3.0.0.
sshd      209002     root    3u  IPv4  0xf100020000632398                0t0        TCP *:ssh (LISTEN)

# 3  
Old 01-11-2010
If you don't have lsof already installed you can choose this option.
Run the command netstat as root and grep it.

Code:
root@test/# netstat -an | grep LISTEN
tcp4       0      0  *.22                   *.*                    LISTEN
tcp4       0      0  *.25                   *.*                    LISTEN
tcp4       0      0  *.111                  *.*                    LISTEN
tcp4       0      0  *.199                  *.*                    LISTEN
tcp        0      0  *.657                  *.*                    LISTEN
tcp4       0      0  10.20.224.100.1801     *.*                    LISTEN
tcp4       0      0  10.20.224.100.1802     *.*                    LISTEN
tcp4       0      0  10.20.224.100.1858     *.*                    LISTEN
tcp4       0      0  10.20.224.100.1859     *.*                    LISTEN
tcp4       0      0  *.1334                 *.*                    LISTEN
tcp4       0      0  *.5555                 *.*                    LISTEN
tcp        0      0  10.20.224.100.6600     *.*                    LISTEN
tcp4       0      0  *.6000                 *.*                    LISTEN
tcp6       0      0  *.6000                 *.*                    LISTEN
tcp        0      0  *.6604                 *.*                    LISTEN
tcp        0      0  *.6605                 *.*                    LISTEN
tcp        0      0  *.6606                 *.*                    LISTEN
tcp        0      0  *.6607                 *.*                    LISTEN
tcp4       0      0  *.32768                *.*                    LISTEN
tcp4       0      0  *.32769                *.*                    LISTEN
tcp4       0      0  *.32774                *.*                    LISTEN
tcp4       0      0  *.32775                *.*                    LISTEN
tcp4       0      0  *.10000                *.*                    LISTEN
tcp        0      0  127.0.0.1.6600         *.*                    LISTEN
tcp4       0      0  127.0.0.1.33605        *.*                    LISTEN
tcp4       0      0  *.63672                *.*                    LISTEN
tcp4       0      0  127.0.0.1.36516        *.*                    LISTEN
tcp4       0      0  127.0.0.1.36559        *.*                    LISTEN
tcp4       0      0  *.44678                *.*                    LISTEN
tcp4       0      0  127.0.0.1.44299        *.*                    LISTEN

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

NAGIOS Service not able to open port on AIX 7.1

I have an AIX 7.1 LPAR where Nagios agent was installed for monitoring. The issue is that when I start the nagios service (ncpa_listener), it starts but does not open the 5693 port it requires for communication. On all other LPARs the service opens the port and is listening. I tried reinstalling... (4 Replies)
Discussion started by: wibhore
4 Replies

2. UNIX for Beginners Questions & Answers

Ping the service with out port number

I got the service status through nc on remote network but 2 services doesn't have port number.how to get the other 2 services status with out port number .pls provide the solution to me. (1 Reply)
Discussion started by: userexperience
1 Replies

3. Shell Programming and Scripting

Ping the service with out port number on remote network

I got the service status through nc on remote network but 2 services doesn't have port number.how to get the other 2 services status with out port number .pls provide the solution to me. I need to develop with is in a script (2 Replies)
Discussion started by: kannansoft1985
2 Replies

4. Solaris

How to find port number wwn of particular port on dual port HBA,?

please find the below o/p for your reference bash-3.00# fcinfo hba-port HBA Port WWN: 21000024ff295a34 OS Device Name: /dev/cfg/c2 Manufacturer: QLogic Corp. Model: 375-3356-02 Firmware Version: 05.03.02 FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies

5. Solaris

Cabling and adapters to communicate to service processor serial port from Windows PC with USB port.

Hello, I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build. The first part is what confuses me -the cabling. I am coming from a Windows machine (w/appropriate... (5 Replies)
Discussion started by: joboy
5 Replies

6. Programming

Using Different port for Daytime Service

Hi all, is it possible to use a different port number for daytime service. By default the port number of daytime service is 13, so what if I want to get the time from a different port number e.g say 9000 (or any other port). I guess this would remain the same on the server side !... (2 Replies)
Discussion started by: manisum
2 Replies

7. UNIX for Dummies Questions & Answers

Finding service status on windows from Linux

Hi all, Please advise how do i find services status running on windows machines from Linux. =-===================== Some one developed a script use rsh command to find the status but it stopped working. rsh <Some IIS server Name> service -S < Windows Server name where service running>... (1 Reply)
Discussion started by: ashish_uiit
1 Replies

8. Solaris

list service with port number

Hi all, I want to list all service is running now with the specific port number (5 Replies)
Discussion started by: sharkux
5 Replies

9. Solaris

Finding port number !!

Hi all , I want know the port no on which a particular application is running. How to find that? Thanks in anticipation (11 Replies)
Discussion started by: kumarmani
11 Replies

10. IP Networking

finding port numbers

hither! whatz the command to find which process is using a specific port number? for example, port 8082? (3 Replies)
Discussion started by: darkcastle
3 Replies
Login or Register to Ask a Question