AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Remove unnnecessary ports

    Posted Wed August 24, 2011 08:32 AM

    Originally posted by: ora_fad


    Friends,
    On an AIX 6 platforma I'm trying to install an application
    which wants some ports free.
    One of them is 1833.
    netstat -Aan | grep 1833 give me

    f1000700011833b0 tcp6 0 0 ::1.51751
    . LISTEN

    then I grep f1000700011833b0 and kill the process by "kill -9 process_id"
    but after that
    netstat -Aan | grep 1833 give me
    gives again the same result.

    Can somebody hint me how to free the port?
    #AIX-Forum


  • 2.  Re: Remove unnnecessary ports

    Posted Wed August 24, 2011 11:04 AM

    Originally posted by: MarkTaylor


    erm ...

    Your grep is returning "1833" from the tcpcb address, and not port 1833 .. so, not sure what your issue is here ..

    Also, to get the PID you should use kdb sockinfo or rmsock command using the tcpcb address from netstat -Aan ala

    rmsock f1000700011833b0 tcpcb .. etc ..

    HTH
    Mark Taylor
    #AIX-Forum


  • 3.  Re: Remove unnnecessary ports

    Posted Thu August 25, 2011 12:42 AM

    Originally posted by: ora_fad


    What I'm trying to do is to get the pid of the process which is using the given port.
    How can I achieve this?
    #AIX-Forum


  • 4.  Re: Remove unnnecessary ports

    Posted Thu August 25, 2011 02:28 AM

    Originally posted by: ostost


    Here you'll find how to do it:

    https://www-304.ibm.com/support/docview.wss?uid=isg3T1000491
    #AIX-Forum


  • 5.  Re: Remove unnnecessary ports

    Posted Thu August 25, 2011 04:57 AM

    Originally posted by: ora_fad


    I did like mentioned in the link.
    But when I rmsock ........ tcpcb it says its not a socket.
    Any ideas? PLease hint/
    #AIX-Forum


  • 6.  Re: Remove unnnecessary ports

    Posted Sat August 27, 2011 03:53 AM

    Originally posted by: DjRobin69


    lsof -i :Port number will tell you all processes using that port, you cannot remove a port with active processes, and you probably got the syntax wrong if it is saying it doesn't exist
    #AIX-Forum