Howto check if any process listen to a UDP Port

Hi,
I am develop a STREAMS Kernelmodul. If I send a UDP/IP Message upstream and no process is listen at this destiantion port, the OS crashes down.
Is there any possibility to check if any process is listening to this port like "netstat -an | grep <PORTNUMBER>" with Kernelfunctions?
Any help is greatly appreciated
Thank You
Claus

The easiest way is to use lsof -i. (lsof is freeware.)
root@jupiter# lsof -i UDP:111
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rpcbind 227 root 3u IPv4 0x30002f4be60 0t0 UDP *:sunrpc (Idle)
root@jupiter#
You can also use "netstat -an -P udp" to see if the socket is in use at all.
If you know the process ID, you can uses pfiles <pid>. for information about who the socket is connected to.

Similar Messages

  • Multiple apps listening to one udp port

    Launching second app instance gives error
    java.net.BindException: Address already in use: Cannot bindIs there some way to make this work?

    Thanks guys, this definitely verifies what I'm seeing, and I realize it's not just Java's problem. And I can't share the source b/c it's closed, I apologize for that. But it's basic socket level programming.
    This really is the goal to run multiple apps, so can I get your advice along that approach-- one app listens on the UDP port, and collects all the data, and makes it available to several presentation clients. How to make it available? Regular TCP sockets? How would this middle tier program know when to flush its buffers--that is, when all the apps have gotten up to date? Does it need to know a count of subscribed presentation clients? Receive notification when they close, track if they've dropped off abnormally, etc... Sorry this sort of confuses me :o)
    Maybe if there's a guarantee the UDP listener app is running on the same machine as the presentation clients I can use a different method besides sockets at that point?

  • Several process listening to the same port number

    I hope I am in the right form (it's the third one I am trying).
    I have server/client application, one server that handles a lot of clients. In general when ever a client approach the server, the server create new process (fork()) that handle the client request.
    I would like to know if there is a problem that several processes (parent and several child processes) are listening to the same port number, is it better to create thread that would handle the client request, instead of creating a child process?
    To better understand the problem I create very simple client and server application.
    This is a part of the server application:
    The server creates a socket, bind to this socket and then listen to this socket.
    After that in a while (1) loop he waits for accept:
    int sockclient = accept(sockId,(struct sockaddr*)(&client_addr), &addrLen);
    When the server get a sockclient (client ask for service) he create new process (fork()) that handle the client request.
    struct sockaddr_in addr, client_addr;
    bzero(&addr,sizeof(struct sockaddr_in));
    addr.sin_family = PF_INET;
    addr.sin_port = 8865;
    bcopy(ent->h_addr_list[0],&(addr.sin_addr), ent->h_length);
    // bind
    bind(sockId,(struct sockaddr*)(&addr), sizeof( struct sockaddr_in));
    If it would help I can add the all code.
    If you knows about articles that talked about this subject It might help too (I am talking about advantages and disadvantages of thread against process but regardless of sockets).

    You might look at this article
    http://httpd.apache.org/docs-2.1/misc/perf-tuning.html
    under the section "accept Serialization - multiple sockets".

  • Listen to specific UDP Port

    Hi guys,
    I'm using a PHP script which contacts my Mac running growl to subsequently push notifications to my iPhone via Prowl.
    This isn't working at all at the moment and it's proving difficult to establish whether A - the PHP script isn't contacting the Mac correctly or B - a firewall or equivalent is blocking access to Growl.
    My set up is:
    1. iMac running Growl and growl-notify;
    2. a DynDNS account which points to my IP address;
    3. Netgear router which forwards UDP port 9887 to my iMac (which has been allocated a static local IP address);
    Is there anyway I can 'listen' to port 9887 to see what information is being received at that port? That way I can determine whether the plugin has been configured correctly or whether the script is generating an incorrect packet.
    Thank you for your time.

    Try Wireshark.

  • Operations Manager 2012 doesn't listening SNMP Trap UDP port 162

    hi,
    SCOM 2012 SP1, how come the operations manager started but the SNMP Trap UDP port 162 not listening?
    Without this port listening, I can't testing SNMP trap on SCOM.
    Thanks...KEN

    Hi,
    As described in the following blog, the TRAP service should be installed but turned off, we could not get traps coming in until we turned the service back on.
    So please verify if the service is on. You can continue audit the ports by running netstat –a.
    System Center 2012 Notes From the Field
    http://scom-2012.blogspot.in/2012/07/setting-up-snmp-monitoring-in-scom-2012.html
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Hope this helps.

  • UDP PORT 445 Not listed in System Process

    Hi! Can you help me? I need the UDP PORT 445 listed on SYSTEM Process. 
    I open UDP PORT 445 on Firewall (WSBS 2011), but in Syshelp (symatech validation too) the result is:
    Title: One or more network services, ports, protocols or associated processes may need attention
    Product: Backup Exec Server
    Status: Warning
    Details:
    Warning SYSTEM's UDP port 445 is not open or listening.
    Warning Port is not open or listening.
    UDP Process: System
    Ok SYSTEM is the correct process for UDP port 137
    Ok Port 137 with protocol UDP is open on the following IP addresses: - 25.54.28.213
    - 169.254.41.25
    - 169.254.244.222
    - 192.168.0.6
    - 192.168.1.2
    Ok Process System has port 137 with protocol UDP open.
    Ok Process System has port 137 with protocol UDP open.
    Ok Process System has port 137 with protocol UDP open.
    Ok Process System has port 137 with protocol UDP open.
    Ok Process System has port 137 with protocol UDP open.
    Information Network service name not defined. Test skipped.
    Information Default settings - Network Service Name: netbios-ns Port: 137 Protocol: UDP Process: System
    Ok SYSTEM is the correct process for UDP port 138
    Ok Port 138 with protocol UDP is open on the following IP addresses: - 25.54.28.213
    - 169.254.41.25
    - 169.254.244.222
    - 192.168.0.6
    - 192.168.1.2
    Ok Process System has port 138 with protocol UDP open.
    Ok Process System has port 138 with protocol UDP open.
    Ok Process System has port 138 with protocol UDP open.
    Ok Process System has port 138 with protocol UDP open.
    Ok Process System has port 138 with protocol UDP open.
    Information Network service name not defined. Test skipped.
    Information Default settings - Network Service Name: netbios-dgm Port: 138 Protocol: UDP Process: System
    Ok SYSTEM is the correct process for TCP port 445
    Ok Port 445 with protocol TCP is open on the following IP addresses: - 0.0.0.0
    Ok Process System has port 445 with protocol TCP open.
    Information Network service name not defined. Test skipped.
    Information Default settings - Network Service Name: microsoft-ds Port: 445 Protocol: TCP Process: System

    Hi,
    à
    I need the UDP PORT 445 listed on SYSTEM Process.
    à
    Warning SYSTEM's UDP port 445 is not open or listening.
    Based on your description, I’m a little confused with this issue. Please run following commands with administrator
    permission and monitor the result. Would you please check and confirm whether any process listened the UDP port 445?
    netstat –ab
    netstat -a | find /i "445"
    In addition, I noticed that you use Syshelp (Symantec validation tool) to check. I suggest that you would post
    the warning message in Symantec Forum and confirm this issue. I believe we will get a better assistance there.
    If anything I misunderstand, please don’t hesitate to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • I can't burn a cd of my own created music. I either get the error 4261, or after "Checking media" the process stops and nothing further happens. Have tried different burn speeds and cds. Have re-installed iTunes.Any suggestions please?

    I can't burn a cd of my own created music. I either get the error 4261, or after "Checking media" the process stops and nothing further happens. Have tried different burn speeds and cds. Have re-installed iTunes.Any suggestions please?
    wm0203

    Sounds like the CD drive died. Luckily they cost next to nothing to replace. Or get an external LaCie instead. I have a dual G4 1.25 and the CD drive was always so anemic I use a LaCie Porsche with it.

  • BPE adapter : message not used by any process

    hi frnds,
    I've created 2 scenarios using BPM
    1) merge scenario: 2 msgs ==> BPM ==> 1 msg
    1st msg is going without any problem. but 2nd msg is giving error saying 'BPE ADAPTER ERROR: message not used by any process'. i checked in sxi_cache and found that return code for Intg'n process is 0 only. but still i tried reactivating. but no use
    2) split scenario: 1 msg ==> BPM ==> 2 msgs
    sender msg is going without any problem,but not receiving 2 rcvr msgs to the target directory. return code of IP is 0 and no other errors.
    after installing PI on my system, for the first time i'm trying BPM scenarios. simple file to file working properly. BPE adapter has to be activated manually or i missed any initial configuration??? pls help me to resolve this.
    thanks.

    abhishek,
    I have used the following steps in BPM for this scenario xml file ==> BPM ==>xml file
    1) data types: a)send_dt
                            b) rcv_dt
    2) msg types  a) send_mt
                            b)rcv_mt
    3) interfaces   : send_ob_im
                              send_abs_im
                              rcv_abs_im
                              rcv_ib_im
    in integration process,
    start ==> receive ==> send ==> stop
    so in general its like,
    send CC ==> send OB I/F ==> send ABS I/F ==> rcv ABS I/F ==> rcv IB I/F ==> rcv CC
    when i'm not using BPM, outbound queue SMQ1 is empty and messages are not stickking up there. but if i use BPM, SMQ1 is having entry saying 'SYSFAIL'. for the first time i'm doing  the BPM scenarios.
    thanks.

  • BPE_ADAPTER MESSAGE_NOT_USED Message is not used by any processes

    We need some help on BPM flow. We are at it for last 3 days without much progress. We are able to make sync call to same BAPIs and get data without any issue. However, with BPM we have this issue
    I am creating the simplest integration scenario as
    1.       HTML/HTTP-->BPM (Async)
    2.       BPM-->R/3 (Sync)
    3.       BPM-->File (Async)
    Created all required interfaces and mapping. I have some dummy mapping for first 2 cases. I am able to activate the integration scenario and Integration Process without any error. I am able to import it in integration directory successfully without any error. When I am executing the first async request from HTML client I am invariably end up with an error from sxmb_moni as
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--
    Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="BPE_ADAPTER">MESSAGE_NOT_USED</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Message is not used by any processes</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    The BPM is not getting invoked. Looking at the trace it shows that there is an error after creating BPE proxy for message as
    <Trace level="3" type="T">created BPE proxy for message DE5FB5802F33D3F19373005056A12466</Trace>
      </Trace>
      </Trace>
    - <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST">
      <Trace level="3" type="T">Persisting message after plsrv call</Trace>
      <Trace level="3" type="T">Message-Version = 007</Trace>
      <Trace level="3" type="T">Message version 007</Trace>
      <Trace level="3" type="T">Pipeline CENTRAL</Trace>
      </Trace>
      <Trace level="3" type="System_Error">Error exception return from pipeline processing!</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    What I have checked so far:
    1.    I have checked that the developer key is assigned to my user id
    2.    Used SWF_XI_CUSTOMIZING to make sure that all the process are green
    3.    Used sxi_cache to make sure that the BPM process has return code 0 and also reactivated it numerous times. Also checked activation log and no error there
    4.    Used SXMP_ADM_BPEAutomatic BPM Customizing to check all the entries are green
    5. There are not any message in sxmb_moni_bpe for my interface shows no message
    Input call has:
    1.    Sender Service: MFG_BPM_BusinessSystem
    2.    Sender Interface: MI_Outbound_Async
    3.    Quality Of Service: EO
    4.    Sender Name space: Name space
    5.    Input XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:BAPI_SALESORDER_GETLIST xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
       <CUSTOMER_NUMBER>0000001000</CUSTOMER_NUMBER>
       <DOCUMENT_DATE/>
       <DOCUMENT_DATE_TO/>
       <MATERIAL/>
       <MATERIAL_EVG>
          <MATERIAL_EXT/>
          <MATERIAL_VERS/>
          <MATERIAL_GUID/>
       </MATERIAL_EVG>
       <PURCHASE_ORDER/>
       <PURCHASE_ORDER_NUMBER/>
       <SALES_ORGANIZATION>1000</SALES_ORGANIZATION>
       <TRANSACTION_GROUP/>
       <SALES_ORDERS>
          <item>
          </item>
       </SALES_ORDERS>
    </ns0:BAPI_SALESORDER_GETLIST>
    Any clue, help pointer will be of great help. Just beats me, what is wrong!!
    Version:
    SAP R/3 ECC 6.0
    XI 7.0

    Hi,
    Please check these threads where they have the same issue:
    Message is not used by any processes
    Error: Message is not used by any processes
    Error: BPE_ADAPTER Message not used in any process
    Message is not used by any processes
    ---Satish

  • Message is not used by any processes

    Hi,
    I've made a BPM and in sxmb_moni I get this:
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="BPE_ADAPTER">MESSAGE_NOT_USED</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Message is not used by any processes</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I check my return code in sxi_cache and it's not 0 after activating.
    How could I resolve this error?
    Thanks in advance,
    Samantha.

    Hi,
    I don't understand "Is the BPM instance being created in the first place?". I've created the BPM for the first time, I don't know if you refer to this.
    When I click on PE, I get: "the action is not valid for the selected message", so I can do nothing.
    I think my user has developper key, although I'm going to make sure of it.
    Thanks,
    Samantha.
    Message was edited by:
            Samantha Núñez

  • Error: BPE_ADAPTER Message not used in any process

    Please help me fix this error.
    My scenario is i have a bpm process for merging three files.
    and i configured in this way..
    merge the three files into one and send into SAP
    i have three communication channels (file adapter) for three files
    one communication channel xi adapter for a proxy into sap.
    using these files as input to BPM process
    then using BPM process as sender to the proxy reciever
    I am getting error from sxmb_moni in xi box
    as error category:BPE_ADAPTER
    error id: message_not_used.
    it says message not used in any process.
    please help me correct this problem..
    thanks
    jp

    JP,
    Are u sure there is nothing wrong in your design part? Also Are u using Fork to receive 3 files parallely, If yes then all the 3 files has been checked for start process? Can u confirm this.
    Also in the Inerface determinations did u gave abstract interfaces that BPM is recieving?
    Best regards,
    raj.

  • No amount if check on "Manual Processing Only" in KKA1

    Hi Expert,
    I am running Results Analysis for Internal Order. If i run without check on "Manual Processing Only", WIP Act.Cost will come out with amount in column WIPR COP.
    If i run with check on "Manual Processing Only", there was zero amount in WIP cumulative balances column.
    Results Analysis Category    Line ID
    WIPR                                      COL
    WIPR                                      COP
    WIPR                                      COS
    RUCR                                     COL
    RUCR                                     COP
    RUCR                                     COS
    Please advice is there any configuration is missing or need enhancement?
    Thanks.
    regards,
    ng chong chuan

    Hi Expert,
    I able to solve this issue, i need to tick save when execute Results Analysis Key for the internal order.
    Thanks.

  • How to check apache pl/sql listener port

    hai
    can any tell me how to check apache pl/sql listener port
    Thanks
    BhanuChander

    You may get it by searching the portlist.ini file in the ORACLE_HOME of the product you use.....
    So , for instance the following , are the ports those of Dev_Suite_Home:
    Oracle Developer Suite HTTP port = 8889
    Oracle Developer Suite JMS port = 9240
    Oracle Developer Suite RMI port = 23910
    Oracle HTTP Server Diagnostic port = 7200
    Reports Services bridge port = 14011
    Reports Services discoveryService port = 14021But ... note that these ports are valid only at the time of installation....!!!!
    Greetings...
    Sim

  • IS THERE ANY PROCESS IN ASSET REVALUATION

    hi sap guru's,
           we are facing a problem for ex
               we purchased a asset in 2003 for value 1cr 80lck. but the same value entered in the books is 2cr. Now we want to reduce the price of that asset in our books. Is there any process to do the revaluation.
             Kindly suggest me how to reduce the value and give me the steps or any document.related to it.
    it's very urgent please help us.

    Hi,
    If there is only one asset which has problem, you may think of following transaction.
    ABAW - Balance Sheet Revalation
    You need to work out following for ABAW transaction.
    1)  Amount to be reduce for Acquisition Cost.
    2)  Do you want to adjust Acc Depn till previous year as well .. Work out the value of acc depn.
    3)  Default Trans Type is 800 which debits the asset i.e. revalues Asset to higher value. If you have to credit the asset i.e. reduce asset value, use Trans Type which credit.
    Check following in the customizing:
    IMG : Fin Acct --> Asset Acct --> Special Valuation --> Define Transaction Type for Revaluation.
    1) Select T type 800.  It is configured for Debit Posting.  Check other T Type which are configured for credit posting for revaluation.
    2) Check which depreciation area, revaluation to be posted.  Add the depreciation areas for this tranaction type posting.
    Hope this helps.  If helpful, pls. assign points.
    Regards,
    Chirag

  • Script for checking the replication process in Netscape Directory Sever 4.1

    Hi,
    We are using Netscape Directory Server 4.1.6 in our production environment. Where we want to know is there any script available to check the replication process. Or can we write a script to check the process.
    Waiting for your replies at the earliest.
    Thanks,
    Syed A.

    Hi Syed,
    Replication state is very easy to see in 4.x and earlier. The last changenumber in the supplier changelog is visible (on the root DSE IIRC), and each consumer suffix has an operational attribute "copiedfrom" that tells you the name of the supplier, the database generation id, and the last change replayed from the supplier.
    So a script that compares the results of
    ldapsearch -h <supplier> -s base -b "" "objectclass=*" lastchangenumber
    and
    ldapsearch -h <consumer> -s base -b <base_suffix> "objectclass=*" copiedFrom
    will show you if a replica has fallen out of sync. It won't tell you more than how many changes behind the replica is, though, because pre-5.x changenumbers are sequential integers, not timestamps.
    However, the change that corresponds to the changenumber is clearly visible under the "cn=changelog" suffix. So if you look at the change itself you can see the timestamp on it.
    For more info on the status of replication, you should be able to query the agreements on the supplier. Those live under the "Netscape Machine Data Suffix", which you can also find on the supplier's root DSE:
    ldapsearch -h <supplier> -s base -b "" "objectclass=*" netscapemdsuffix
    And of course the error logs will usually tell you if replication is failing outright.
    I may be off on some of the attribute names, but if you do some investigating along these lines, you should be able to figure it out.

Maybe you are looking for

  • DC creation finished with some problems

    Hello, After finish the DC creation below message is getting DC Creation finished with some problems Reason: Some used DC's not avilable Locally, You Have to sync used DC's for the project. and when I open the view implementation many errors in the d

  • I need a program to send a mail when sap starts

    I need a program to send a mail (external mail) each time sap start or something similar. Does anybody know something about this ? Thank you .

  • Context Operators

    Hi, What are context operators and where should we use?   Thanks in Advance

  • J1ID - EXCISE MASTER REPORT & TABLE OF J1ID

    Hi Friends, We have maintained Vendors excise masters details in J1ID, Please let me know the t-code of the report where I can extract all excise masters OR Table name for J1ID. Regards Suresh

  • Works perfect on IDEs but crashes on WEB

    Hi, My applet and server app receive and send messages correctly if i run my apps on eclipse or idea. I have created a jar for client applet. But on web client doesnt receive any messages. I dont know where i am wrong. These are related SERVER codes.