netstat -na|grep 9950

Posted on 2006-04-16
Last Modified: 2013-11-17
The port is being used by a process(9950)
netstat -na|grep 9950

Gives me the output that  it is being used ,listened and Established .
I want to use this port for my weblogic port(http).and I want to know who, which process is using it so that I will
allocate a different port to this and Free my Port.
Is there any way I can find who is using this port.

Please advice????

Question by:ballioballi
    LVL 9

    Expert Comment

    "netstat -ltnp | grep 9950"

    This will give the process associated with that port.
    LVL 14

    Accepted Solution

    Find the tool called "lsof" on the web and install it and then use it.

    Author Comment

    Where I have to Install this tool ?? on the Server??
    or Locally?? I am not a System Admin but DBA.
    Your advice will be highly appreciated!!

    Author Comment

    netstat -ltnp | grep 9950"

    $ netstat -ltnp | grep 10550
    netstat: Not a recognized flag: l
    LVL 3

    Assisted Solution

    Install lsof in the server you want to monitor all of open TCP/IP connection by the specific process.

    Once you have lsof installed, then you can do

    lsof | grep 9950 | grep TCP

    For example, I search for all of TCP/IP connection with process ID 311356, then I ran 'lsof | grep 311356 | grep TCP'

     > lsof | egrep "311356" | egrep "TCP"
    lsof: WARNING: compiled for AIX version; this is
    lsof: WARNING: /home/kiman/.lsof_ptatx029 was updated.
    GWTDOMAIN   311356 kiman    4u  IPv4  0xf10000f32c67cb58                0t0                                                   TCP ptatx029:3461 (LISTEN)
    GWTDOMAIN   311356 kiman   10u  IPv4  0xf10000f3d06e0b58                0t0                                                   TCP ptatx029:3461->ptatx029:56977 (ESTABLISHED)

    Expert Comment

    1, -bash-2.05b# netstat -Aa | grep ESTABLISHED
    f10006000199d398 tcp4 0 0 tivp5clp2.15204 tivp5clp2.44462 ESTABLISHED --> for example
    f10006000183cb98 tcp4 0 0 tivp5clp2.44462 tivp5clp2.15204 ESTABLISHED
    f1000600002e4b98 tcp4 0 0 tivp5clp2.44394 tivp5clp2.44459 ESTABLISHED
    2, -bash-2.05b# echo "sockinfo f10006000199d398 tcpcb"| kdb | grep proc
    F100070F00000000 F100070F10000000 pvproc+000000
    proc/fd: 292/146
    proc/fd: fd: 146
    pvproc+049000 292*java ACTIVE 01240A2 0000001 00000000EA97F400 0 0032
    3, -bash-2.05b# echo "hcal 01240A2" | kdb | grep Value
    Value hexa: 001240A2 Value decimal: 1196194
    4, -bash-2.05b# ps -fp 1196194
    root 1196194 1 0 10:31:46 - 1:11 /opt/IBM/ITM/aix533/iw/java/bin/java -Dosgi.install.area=/op

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    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…
    FreeBSD on EC2 FreeBSD ( is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
    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…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now