How to find what port is used by a process ?

a) How can we find out if a port, say, '1525', is used by a process ?
How can we find out the process ID ?
b) Given a process ID, can we find out what port(s) it is currrently
using ?
Any Unix commands in 2.5.1-->8 ?
thanks.

Hi
The best bet for doing this is "lsof" utility that is a freeware which
can be downloaded from http://www.sunfreeware.com.
You can map ports to process like this...
<PRE>
./lsof -i tcp:23
COMMAND PID USER FD TYPE DEVICE SIZE/OFF INODE NAME
inetd 152 root 5u inet 0xf596f638 0t0 TCP *:telnet (LISTEN)
in.telnet 13164 root 0u inet 0xf605cc70 0t139 TCP collard:telnet->awe185-130.junk.COM:34412 (ESTABLISHED)
in.telnet 13164 root 1u inet 0xf605cc70 0t139 TCP collard:telnet->awe185-130.junk.COM:34412 (ESTABLISHED)
in.telnet 13164 root 2u inet 0xf605cc70 0t139 TCP collard:telnet->awe185-130.junk.COM:34412 (ESTABLISHED)
</PRE>
HTH
Shridhar

Similar Messages

  • How to find service port oracle use.. for http... ftp.. ?

    Can any one tell me how to find what services ports does oracel uses for services like HTTP and FTP... ?
    Is there any commad that I can execute on SQL*PLUS console to find that ???

    Depends on the version of Oracle.
    If Oracle XE, or you are using XDB capability, you use
    SELECT dbms_xdb.gethttpport(), dbms_xdb.getftpport() from dual;
    and verify using lsnrctl status
    Otherwise you look at the Apache config files in $ORACLE_HOME/Apache/Apache/conf/httpd.*

  • How to find what provider is used to for cipher in a SSL socket's handshake

    Hi,
    I have few security providers loaded with Mozilla-JSS provider above the SunJSSE provider.
    SSLContext is provided by SunJSSE. If I get an instance of Cipher seperately, it says it is provided by Mozilla-JSS.
    How do I know what provider is used inside the socket's handshake method to get the cipher in the following code. Will it be SunJSSE or Mozilla-JSS
    SSLContext sc = SSLContext.getInstance("TLSv1");
    sc.init(null, new TrustManager[] { new SSLTrustManager()}, secRand);
    SSLSocketFactory socketFactory = sc.getSocketFactory();     
    javax.net.ssl.SSLSocket socket = (javax.net.ssl.SSLSocket)socketFactory.createSocket();     
    InetSocketAddress address = new InetSocketAddress(ip, port);
    socket.connect(address, 5 * 1000);
    socket.setSoTimeout(30 * 1000);
    socket.setEnabledCipherSuites(SSL_CIPHER_SUITES);
    socket.setEnabledProtocols(new String[] {"TLSv1"});
    javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance("DESede/CBC/NoPadding");
    System.out.println("provider for cipher == " + cipher.getProvider().getName() ); -> Mozilla-JSS
    System.out.println("provider for SSL Context is == " + sc.getProvider().getName()); ---> SunJSSE
    Thanks,
    Sreedhar

    I could not get anything extra from the debug option.
    We have a requirement to use FIPS compliant provider. Mozilla-JSS provider is FIPS compliant and SunJSSE is not.
    SSLContext code is not part of the Mozilla-JSS provider API. So, I wanted to use SunJSSE for SSLContext and I would be fine if I am sure that Cipher used inside the SSLSocket handshake comes from Mozilla-JSS.

  • How to find what port the admin server is running

    how can I find out what port the admin server is running on a server?
    thanks,

    Hi
    Go to your domain root folder/config and open config.xml file in any editor. Search for the name of the admin server which is typically like AdminServer and under this tag see if you have a tag by name <listen-port>. If yes, then you should see the port number. If not, it means it is running at default port of 7001.
    If you have admin access, i hope when you login you will be giving url like http://adminhost:adminport/console. Now this adminport is the port on which admin server is running. If not, then check config.xml file.
    Thanks
    Ravi Jegga

  • What port is used by Groupware connector to communicate with SAP CRM?

    Hi!
    I've been trying to find what port is used by groupware connector when it is communicating with SAP CRM, but all I've found is that is uses SOAP over HTTP.
    Our security team only wants to open the relevant port and I haven't found the port....
    Does anybody know what port is used?
    Thanks!
    rollo

    What gives you an impression that a seperate program is called to write file at OS level.....it could be the program running behind the F110.....try checking the same...and look for GUI_DOWNLOAD in the program.

  • How do i find what ports are being used.

    I need to know how to tell what ports are being used and by what. I recently bought Apple Remote Desktop and have been pretty impressed but I have one computer here that won't let me Observe or Control. I think it is because the G4 in question has a program using port 5900. I need to confirm this is there any way that I can see if this port is being used?
    Thanks
    Moderith

    Hi Moderith--
    Welcome to the Apple Discussions.
    Look in your Utilities folder for the Network Utility program. Open it, and choose "Port Scan" from the row of tabs in its window. If you're not running Network Utility on the problematic G4, use the G4's IP address. But if you're actually on the G4, use "localhost".
    Note that if you check the open ports on the G4 from another computer, you won't see as many as if you check it from the G4 itself. That's because some ports are only local. For example, I have enabled the mail server on my Macs, but only to deliver mail, not relay it. So if I do a port scan using "localhost", I see port 25 open, but it's not open from another computer.
    charlie

  • HT1338 Can anyone tell me how to find what OS I'm using on the Mac? Tiger or Leopard? Also, how do I update from 10.6.8 to the latest version?

    Can anyone tell me how to find what OS I'm using on the Mac?
    Tiger or Leopard?
    Also, how do I update from 10.6.8 to the latest version?

    Go to the Apple menu and select "About This Mac". You will get a window similar to this one -
    You current OS X version number will be shown as I've marked.
    OS X 10.4.x is Tiger, 10.5.x is Leopard, 10.6.x is Snow Leopard, 10.7.x is Lion, and 10.8.x is Mountain Lion.
    Whether or not you can go to the latest OS X version depends upon your hardware -
    You will need to purchase the retail set for the OS X version you want; there is no pint in getting and installing any intermediate versions. Once the retail version has been installed, you can update it to the latest release for that version via download updater.

  • How to knoew what apps ara using more memory? aamnd how to find em?

    my computer seem to be using alot of space and i think is mostly junk i need to no how to find outn wht is using it anh how to dlete it permantly?

    Hello miukreb!
    Please make at least a spell check before asking questions in the internet. Your text is difficult to understand.
    You have a program called "Activity Monitor", which is showing everything you asked for (I think): you find it in the folder Applications > Utilities. This program shows you the memory used and the CPU.
    If you meant your disk usage of your files you need an other program; for example "Disk Inventory X" or "WhatSize"
    Best wishes for the New Year 2012!
    marek

  • How to Find what are tables and "Table Name" in particular "Data File"

    hi Team,
    I have one database that database 300 gb size , this database having 6 ndf files ,
    here How to Find  what are the tables and  "Table Name"  in particular "Data File"[.ndf]

    Hi,
    In addition to Prashanth’s suggestion, you can also use the following Transact-SQL statements to get more detailed information including  all objects and indexes per Filegroup / Partition and allocated data size of databases.
    The script can work with Microsoft SQL Server 2005 and higher version in all Editions. For more details, please review this article:
    List all Objects and Indexes per Filegroup / Partition.
    -- List all Objects and Indexes
    -- per Filegroup / Partition and Allocation Type
    -- including the allocated data size
    SELECT DS.name AS DataSpaceName
    ,AU.type_desc AS AllocationDesc
    ,AU.total_pages / 128 AS TotalSizeMB
    ,AU.used_pages / 128 AS UsedSizeMB
    ,AU.data_pages / 128 AS DataSizeMB
    ,SCH.name AS SchemaName
    ,OBJ.type_desc AS ObjectType
    ,OBJ.name AS ObjectName
    ,IDX.type_desc AS IndexType
    ,IDX.name AS IndexName
    FROM sys.data_spaces AS DS
    INNER JOIN sys.allocation_units AS AU
    ON DS.data_space_id = AU.data_space_id
    INNER JOIN sys.partitions AS PA
    ON (AU.type IN (1, 3)
    AND AU.container_id = PA.hobt_id)
    OR
    (AU.type = 2
    AND AU.container_id = PA.partition_id)
    INNER JOIN sys.objects AS OBJ
    ON PA.object_id = OBJ.object_id
    INNER JOIN sys.schemas AS SCH
    ON OBJ.schema_id = SCH.schema_id
    LEFT JOIN sys.indexes AS IDX
    ON PA.object_id = IDX.object_id
    AND PA.index_id = IDX.index_id
    WHERE OBJ.type_desc='USER_TABLE'-- add this WHERE clause to display the information of user tables
    ORDER BY DS.name
    ,SCH.name
    ,OBJ.name
    ,IDX.name
    Thanks,
    Lydia Zhang

  • How to findout vnc port no. used by the each guest vm

    hi,
    i am using OVM 2.2.0
    how to findout vnc port no. used by the each guest vm using command line on the VM server
    thanks in advance..

    hi Avi,
    Thanks for your reply
    i tried but still no success & iam getting the following error
    [root@OVM-SERVER-1 ~]# xm list
    Name ID Mem VCPUs State Time(s)
    Domain-0 0 543 2 r----- 459.1
    test 1 300 1 r----- 13.0
    [root@OVM-SERVER-1 ~]# virsh dumpxml
    error: command 'dumpxml' requires <domain> option
    [root@OVM-SERVER-1 ~]# virsh dumpxml 1
    libvir: Remote error : No such file or directory
    libvir: warning : Failed to find the network: Is the daemon running ?
    libvir: Xen Daemon error : internal error domain information incomplete, missing kernel & bootloader
    [root@OVM-SERVER-1 ~]# virsh dumpxml test
    libvir: Remote error : No such file or directory
    libvir: warning : Failed to find the network: Is the daemon running ?
    libvir: Xen Daemon error : internal error domain information incomplete, missing kernel & bootloader

  • How to find out the Transactions used per month & the USER who used that

    Hi,
    1)How to find out the Transactions used per month & the USER who used that?
    2)and can i get the above same for minimum 20 month?
    System : SAP- Enterprise Core Component.

    You can use my program...
    *& Report  Z_ABAP_TCODE_MONITOR
    *****&  Program Type          : Report                                 *
    *****&  Title                 : Z_ABAP_TCODE_MONITOR                   *
    *****&  Transaction code      : ZTCODE_USAGE                           *
    *****&  Developer name        : Shailendra Kolakaluri                  *
    *****&  Deveopment start date : 26 th Dec 2011                         *
    *****&  Development Package   : ZDEV                                   *
    *****&  Transport No          : DEVK906086                                       *
    *****&  Program Description   : This program is to display
    *List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    *& Modification history
    REPORT  Z_ABAP_TCODE_MONITOR.
    *& List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    TYPE-POOLS : slis.
    DATA: ind TYPE i,
          fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          layout TYPE slis_layout_alv,
          variant TYPE disvariant,
          events  TYPE slis_t_event WITH HEADER LINE,
          heading TYPE slis_t_listheader WITH HEADER LINE.
    *REPORT  z_report_usage.
    TYPES: BEGIN OF zusertcode,
      date   TYPE swncdatum,
      user   TYPE swncuname,
      mandt     TYPE swncmandt,
      tcode     TYPE swnctcode,
      report TYPE swncreportname,
      count     TYPE swncshcnt,
    END OF zusertcode.
    *data   : date type n.
    DATA: t_usertcode  TYPE swnc_t_aggusertcode,
          wa_usertcode TYPE swncaggusertcode,
          wa           TYPE zusertcode,
          t_ut         TYPE STANDARD TABLE OF zusertcode,
          wa_result    TYPE zusertcode,
          t_result     TYPE STANDARD TABLE OF zusertcode.
    PARAMETER: month TYPE dats DEFAULT sy-datum.
    *PARAMETER: date TYPE dats.
    *select-options : username for wa_usertcode-account.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM get_fieldcatalog.
      PERFORM set_layout.
    PERFORM get_event.
    PERFORM get_comment.
      PERFORM display_data.
    FORM get_data .
    *date = sy-datum - 2 .
    After start-of-selection add this line (parameter Month required 01 as day).
      concatenate month+0(6) '01' into month.
      CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
        EXPORTING
          component     = 'TOTAL'
          ASSIGNDSYS    = 'DEV'
          periodtype    = 'M'
          periodstrt    = month
        TABLES
          usertcode     = t_usertcode
        EXCEPTIONS
          no_data_found = 1
          OTHERS        = 2.
      wa-date  = month.
    *wa-date  = date.
      wa-mandt = sy-mandt.
    wa_usertcode-account = username.
      LOOP AT t_usertcode INTO wa_usertcode.
        wa-user = wa_usertcode-account.
        IF wa_usertcode-entry_id+72 = 'T'.
          wa-tcode  = wa_usertcode-entry_id.
          wa-report = space.
        ELSE.
          wa-tcode  = space.
          wa-report = wa_usertcode-entry_id.
        ENDIF.
        COLLECT wa INTO t_ut.
      ENDLOOP.
      SORT t_ut BY report ASCENDING.
      CLEAR: wa, wa_result.
    endform.
    FORM get_fieldcatalog .
    fcat-tabname     = 't_ut'.
    fcat-fieldname   = 'DATE'.
    fcat-seltext_l   = 'Date'.
    fcat-key         = 'X'.
    APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'MANDT'.
      fcat-seltext_l   = 'Client'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'USER'.
      fcat-seltext_l   = 'User Name'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'TCODE'.
      fcat-seltext_l   = 'Transaction Code'.
      fcat-key         = 'X'.
      APPEND fcat.
    ENDFORM.
    *&      Form  SET_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM set_layout .
      layout-colwidth_optimize = 'X'.
    ENDFORM.                    " SET_LAYOUT
    *&      Form  GET_EVENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_event .
    events-name = slis_ev_top_of_page.
    events-form = 'TOP_OF_PAGE'.
    APPEND events.
    *ENDFORM.                    " GET_EVENT
    **&      Form  GET_COMMENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_comment .
    DATA: text(30).
    text = 'Billing Report'.
    heading-typ = 'H'.
    heading-info = text.
    APPEND heading.
    *ENDFORM.                    " GET_COMMENT
    **&      Form  top_of_page
          text
    -->  p1        text
    <--  p2        text
    *FORM top_of_page .
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
         it_list_commentary       = heading[]
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    *ENDFORM.                    " top_of_page
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      sort t_ut[].
    DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-cprog
          is_layout          = layout
          it_fieldcat        = fcat[]
          i_save             = 'A'
          is_variant         = variant
          it_events          = events[]
        TABLES
          t_outtab           = t_ut
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " DISPLAY_DATA

  • How to find what transaction an user was running for a given period

    hi
    could anybody tel me
    how to find what transaction a particular user was running for a given period
    in the past.............

    Hi,
    U need to findout the list of Tcode excuted by SAP user
    1) Tcode: ST03N
    2) Select Expert Mode option
               (there u find  Server Host name & Today)
       If u select Host name u find DAY/WEEK/Month (same thing will in Today option)
    3)Now u need to select the option of DAY,WEEK etc.
    Now u can find in two ways
    1) Transaction profile (Standard / EarlyWatch)
    2) User (user profile)
    If u select the Transaction profile
    Under these u find the option of Aggregation----application/package/tranasation etc.
    I hope these will help u to findout.
    Regards
    ASR

  • How to find out query name using Elements of the query builder.

    Hi SDNers,
    how to find out query name using Elements of the query .
    thanks,
    satyaa

    Hi,
    For having a look at the relation between BEx tables,check the link below:
    http://wiki.sdn.sap.com/wiki/display/BI/ExploretherelationbetweenBEx+Tables
    -Vikram

  • How to find the File name using the FTP Adapter

    hi all,
    how to find the File name using the FTP Adapter with BPEL.
    Regards

    Found the solution for this.
    First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
    In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
    Thanks for the posts

  • How to identify Which ports are using in RAC setup?

    Hi,
    how to identify Which ports are using in RAC setup?
    Thnaks,

    [Viewing Port Numbers and Access URLS|http://download.oracle.com/docs/cd/B19306_01/install.102/b14205/ports.htm#sthref1208]

Maybe you are looking for