AIX

AIX

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


#Power
 View Only
  • 1.  Closing an Open TCP port on running lpar.

    Posted Thu January 04, 2007 03:20 PM

    Originally posted by: Wieckowski


    Hello, Could someone tell me how I can close an open port on AIX?
    Below is example of port I want to shutdown from listening. Thanks in advance;

    1. netstat -af inet |grep 4038
    tcp4 0 0 *.4038 . LISTEN
    #
    #AIX-Forum


  • 2.  Re: Closing an Open TCP port on running lpar.

    Posted Thu January 04, 2007 03:41 PM

    Originally posted by: orphy


    Port 4038 is an unassigned port in /etc/services so you'll need to
    find out what application got it opened. You'll need to stop the app
    to free the port. If you don't know which app, try "ps -ef" and go through
    the list.
    Orphy
    #AIX-Forum


  • 3.  Re: Closing an Open TCP port on running lpar.

    Posted Thu January 04, 2007 03:50 PM

    Originally posted by: Wieckowski


    Thanks for the reply. Yes, I know /etc/services has this port as unasigned.
    I decided to use lsof -i |grep on 4038 to see the open processes. Then will proceed as you stated, and have developer kill off the processes. Thanks
    #AIX-Forum