[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


How to Kill the port that is being used in IBM-AIX?

Posted on 2009-02-14
Medium Priority
Last Modified: 2013-11-17
1.How to Kill the port that is being used in IBM-AIX?
2.How to identify the application that is using some port say for example 1158?
Question by:umesh4exp
  • 2
  • 2
LVL 40

Accepted Solution

omarfarid earned 1600 total points
ID: 23643958
you may try

netstat -ap (if supported)


lsof -i:1158


this will give you pid that you can use kill -9 pid to terminate

Author Comment

ID: 23643987
how to use netstat -ap
lsof is not installed or present
LVL 40

Expert Comment

ID: 23643995
can you show output of netstat -ap ?
LVL 68

Assisted Solution

woolmilkporc earned 400 total points
ID: 23644369
lsof for AIX is here:


netstat -ap is not supported in AIX in a way that it will show PIDs. It is used to filter the output by protocol.

You will have to rely on lsof, as omarfarid wrote, in the format 'lsof-i:[port]'

In the first column you will find the command, in the second column the PID.
You could then use 'kill [pid]' to terminate the process.


LVL 68

Expert Comment

ID: 23644393
Installing lsof:

Goto the link I mentioned, klick 'Sorted download -> alphabetically', search for lsof. The version '4.6' found there will run under AIX 5.2 and 5.3 (at least up to TL 4).

Download the package and install it by using 'rpm -i [package]'

lsof is now ready for use.



Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question