We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

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

umesh4exp
umesh4exp asked
on
Medium Priority
3,397 Views
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?
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2007
Commented:
you may try

netstat -ap (if supported)

OR

lsof -i:1158

http://www.hmug.org/man/8/LSOF.php

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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
how to use netstat -ap
lsof is not installed or present
CERTIFIED EXPERT
Top Expert 2007

Commented:
can you show output of netstat -ap ?
CERTIFIED EXPERT
Most Valuable Expert 2013
Top Expert 2013
Commented:
lsof for AIX is here:

http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/download.html

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.

wmp





CERTIFIED EXPERT
Most Valuable Expert 2013
Top Expert 2013

Commented:
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.

wmp



Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.