/etc/services, port numbers & Unix processes

I have some questions about /etc/services, ports and unix processes.
First, it appears to me that a process can listen on a port WITHOUT the service/port number being in /etc/services. Is this correct?
For example we have TUXEDO apps that listen on high number ports even though there are no corresponding service/port pairs in /etc/services.
Second, How do you find out which Unix process is listening on a given port?
Forexample, when you run netstat -a and get something that looks like:
host.port.........................LISTEN
How do you get the Unix PID listening on this port?

Hi
A service can run on any port number, as I understand it, /etc/services just describes the well know port number services.
As for finding out what process is listening on a given port, I recall a previous post that suggested
using lsof with some switches.
I think it was :
lsof -i -n -P
I've never tried it myself.
You can find lsof at www.sunfreeware.com

Similar Messages

  • Specify Oracle Application Server EM Port in \ETC\SERVICES File - Help

    Hi,
    Can anyone tell me what to soecify in the /ETC/SERVICES file for Oracle Application Server Enterprise Manager Console 9.0.4 , so that the port is not used by any other process.
    I have had situation where a rogue process was using port 1810 and was preventing the console from loading up.
    Can anyone help??
    I have to do this on a production system.
    Thanks

    Did you get an answer to this question?
    I'm looking for the same information thanks to a rougue piece of software that removed my entry in /etc/services for port 1810 during it's install. I don't know what the service name should be. Of course - there was no backup copy of this file made prior to the install. It's a development box, so it doesn't get backed up often.
    I can get the infra page to load fine, but the midtier page will not load.
    I'm curious to know if you ever found anything on this.
    Thanks,
    Deb

  • Can iphone 5 preorder through iphone apple store app port numbers or only process upgrades?

    can iphone 5 preorder through iphone apple store app port numbers or only process upgrades? for example, can you setup a new line of service to an existing verizon account and port the ATT number over using the apple store app on iphone?

    I have been waiting for a post like this.  Just ordered mine from AT&T and the tax is close to $52. At an 8% mark that also equals to $649.  I think they are charging full retail sales tax.  I called AT&T and they couldn't explain it to easily they started saying that there is an extra luxury tax but I think they don't know it's just full retail tax.  They also said that it's just a hold on my card by final charge will be processed when the phone gets shipped.
    I checked fine print of sprint and AT&T. Ecause when you upgrade online with AT&T you don't pay tax but it states that it will be collected at the time it shipped. Sprint charges $24 which is almost half but also claims that there might be an extra tax when it shipped. 
    I am puzzled by the whole issue.  But 25 bucks won't get me not to order my phone.  I was able to get credit from my carrier because of the competition in the form of statement credits.  Ordered 2 phones and een after crazy high tax I got one for red plus some :). Tax is crazy anyone else order it an have this issue please share

  • Hard-coded endpoint port numbers in services-config.xml

    Is it possible to remove hard-coded port numbers in
    services-config.xml and replace them with variables? I'd like to
    deploy the same Flex application War file (including
    services-config.xml within it) to our Dev, UAT and then Production
    environments, for which the endpoints and port numbers must vary.
    Re-building the app for each environment isn't desirable.
    Has anyone else achieved this?

    Maybe I can clarify what I mean. I'm assuming that basically
    the same war file needs to be deployed twice to the same app
    server, as in the original example, excluding changes to config
    files (e.g. editing xml=ok, recompiling jars/swf=not ok).
    The problem arises because if you were to change the config
    file to use another port, it wouldn't make a difference to the
    client app, which has the port and destination compiled in. You
    would need to compile the app twice, once with the first port, once
    with the second.
    So my workaround is to compile (not deploy) with a config
    file containing two sets of destination channels, then in your
    deployed config files you remove one of the sets.
    Assuming you want to deploy two instances of an app into a
    single app server, there will 3 different configs, one used just to
    compile, and one for each of the two deployed instances.
    Config A (compilation config files, used only to compile the
    flex application, not used during server start up) contains:
    my-rtmp1, my-rtmp2, my-destination1, my-destination2.
    Config B (server 1-debug) contains: my-rtmp1, my-destination1
    Config C (server 2-release) contains: my-rtmp2,
    my-destination2
    So when you deploy two instances with Config B and Config C,
    there is no port conflict. The Flex app then has some parameter set
    in the wrapper (or the absence of said parameter could be the
    indicator) to tell it whether to use my-rtmp1 or my-rtmp2.
    I just tested this and it worked. The way I tested was to add
    two buttons to a the Flex app, one which connects to
    destination1and performs a fill, one which connections to
    destination2 and performs the same operation. This Flex application
    was compiled with config A.
    I start a server with config B, and the application starts
    fine, and the first button gets the fill as expected. The second
    button instantly crashes the entire browser with an illegal memory
    access exception. The second set of dest/channels aren't listening,
    since the server doesn't know anything about them in it's config
    file.
    So on the bright side, that confirms to me that you can
    compile an app with redundant channels and destinations, then
    choose which destination/channel you want to use at runtime.
    On the down side, being able to consistently cause a crash
    like that usually isn't a good sign. I'll look again on Monday, and
    raise a Flash bug if it's still present in the latest version.

  • Problems enabling service port on Solaris 10 x64

    Hi
    I am having difficulty allowing a remote machine to connect to a PostgreSQL server running on a Solaris 10 x64 machine. I have edited the /etc/services to open the port and the protocol, and I have manually started the Postgre server, so I should be able to telnet to the port from the remote machine, but no luck. I keep on getting a error saying that the port is closed on the server. When I am on the server, I can telnet to the port and connect, but from a remote server, no luck. Is there anyone that can help me with this??
    Kind Regards
    Manie

    Hello.
    I have edited the /etc/services ...This will have no effect. The /etc/services file is there to map names to port numbers (e.g. "telnet myserver myport" will be mapped to "telnet myserver 1234"). It has no effect on opening the port itself.
    There may be two reasons why you cannot access the service from a remote computer:
    a) The port is only bound on localhost:
    Type netstat -a -f inet |grep LISTEN |moreYou will see a list of all open TCP ports.
    An entry that begins with something like "*.12345" means: Port 12345 is open. An entry that begins with "localhost.12345" means: Port 12345 is open for connections coming from localhost only. For connections from other computers the port is closed.
    In this case you will have no chance. You may write a special C server program that tunnels connections.
    (Just for info: "hostname_or_ip_address.12345" would mean: All computers that see us as hostname_or_ip_address can connect. Other computers - e.g. at the second network card or even "localhost" - cannot connect.)
    b) You have a firewall active that blocks the access to the port.
    Martin

  • Reinstall of MV creates duplicates in /etc/services

    Another day, another stupid problem.
    Mac Server wouldn't reboot, went for an OSX install via a Diskmaker X USB boot drive.
    Server now reboots (for now) and get back in.
    As usual, /etc/services has been overwritten, as sshd was back on the default 22, I don't run ssh on 22 on an external facing hosts for obvious reasons.
    Except this time, /etc/services was full of duplicate entries... each service was listed twice.
    Sort it out Apple, this is basic stuff, never mind 10.10.. Shame Microsoft killed off WHS, real shame.

    Interesting.  Can you post a few more details of what you're seeing?   grep " 22/TCP" /etc/services shows no duplicate entries here, on either an OS X 10.9 client or an OS X Server 10.9 Mavericks or Mavericks server.  While I do see some duplicate listings for ports that have several uses, those look to be right out of the IANA registry.
    Out of curiosity, how was the reinstallation performed?  The proverbial nuke and pave of Disk Utility erase and install?   Or maybe by deleting a setup file?
    Beyond TCP port 22, are there other tweaks made to other parts of the Unix-level environment here?  I'm curious about the instability you're seeing.   (I usually use an external firewall, so I don't bother changing TCP port 22.)

  • On a 3750 enhanced services port, are hierarchical queueing and standard queuing features mutually exclusive?

    When you configure hierarchical queueing on an enhanced services port, should one also configure the egress queue chararcteristics such as buffer space and thresholds, shaped/shared weights, egress priority queue, etc., that is all of those characteristics that one would configure if one were configuring a port for standard QOS.  In other words, on an enhanced services port, are the hierarchical queueing features using the modular QOS CLI and the standard egress queueing features supposed to be used together or are they mutually exclusive?

    Hi Christine,
    Answer to your confusion is in the following document.
    http://www.cisco.com/en/US/docs/switches/metro/catalyst3750m/software/release/12.1_14_ax/release/notes/OL464603.html#wp58682
    On an ES port, you can use LLQ (enabled with the priority policy-map class configuration command) and the egress priority queue (enabled with the priority-queue out
    interface configuration command). By using these two features, you can
    give priority to a class of traffic and avoid losing traffic when the
    switch is congested. In previous releases (before the egress priority
    queue was supported), you could put a traffic class into the
    strict-priority queue, but congestion at the egress queue-sets could
    result in the dropping of that priority traffic. The priority-queue out
    interface configuration command enables you to prioritize the same
    traffic class at the egress queue-sets, ensuring that priority traffic
    reaches the hierarchical queues and is processed with priority.
    you can also fine tune the Queue-sets for your desired results.
    http://www.cisco.com/en/US/docs/switches/metro/catalyst3750m/software/release/12.2_50_se/configuration/guide/swqos.html#wp1162303

  • How to see Dispatcher,  gateway and Message server port numbers?

    Hi All,
    Can any body tell me how to know the port numbers of dispatcher, gateway & message server in a particular sap application server.
    Thanks & Regards
    Srinivas K

    Hi,
    This is very work around way...
    SM51-Choose theserver-there one icon (Magnifying glass) choose detaiols -
    There you will get dispatchet port.
    SMGW -
    dispaly file(icon) -
    in that you can find the port on which gate way is working.
    SMMS-goto-parametere--display...you can find the port for MS.
    SMMS -goto-display details (will give more info) you can find diff ports ...
    Apart from these all these services when they start they write log in work dir there we can find which port they are using while starting ..
    We can find them in the individual monitoring t-codes like SMMS,SMGW,SM51 etc..or from AL11 go to work dir and look at dev_disp,dev_ms,dev_rd.
    This is all very work around...
    The best will be services file at os level.
    Thanks.

  • Why is /etc/services full of email addresses?

    No other Unix system (I've ever used) stuffs email addresses between each port group (in the comments). What's the deal?

    This file is from FreeBSD.
    # $FreeBSD: src/etc/services,v 1.89 2002/12/17 23:59:10 eric Exp $
    # From: @(#)services 5.8 (Berkeley) 5/9/91
    The third column is the Description.
    Mihalis.

  • /etc/services file needed

    Hi
    Plesae give me contents of /etc/services file on Solaris system which hosts a working Solution Manager 4.0 system on Oracle database.
    This is to compare with my system to solve a problem.
    Thanks
    Ashraf

    Hi Ashraf,
    You need to have the following entries. If you are going to use a SAProuter, you also need 99, as port 3299 is usually used for the SAProuter process on the target system.
    sapdpXX    32XX/tcp # SAP Dispatcher.      3200 + Instance-Number
    sapgwXX    33XX/tcp # SAP Gateway.         3300 + Instance-Number
    sapmsSID   36XX/tcp # SAP Message Server.  3600 + Instance-Number
    sapgwXXs   48XX/tcp # SAP Secure Gateway   4800 + Instance-Number
    Where XX is you instance number,
    Hope ths help!
    Juan
    Please reward with points if helpful

  • Getting error while posting reports on Unix Process Scheduler Server

    Hello ,
    I am getting the below error while posting reports on Unix Process Scheduler Server .
    PSDSTSRV.14338 (2) [09/08/09 08:21:34 PostReport](1) (JNIUTIL): Java exception thrown: java.io.IOException: Stream closed.
    PSDSTSRV.14338 (2) [09/08/09 08:21:34 PostReport](3) HTTP transfer error.
    PSDSTSRV.14338 (2) [09/08/09 08:21:34 PostReport](3) Post Report Elapsed Time: 0.0900
    PSDSTSRV.14171 (10) [09/08/09 08:21:34 PostReport](1) (JNIUTIL): Java exception thrown: java.io.IOException: Stream closed.
    Please advise ,thank you.

    user5838027 wrote:
    Node name :PS_HTTP
    URL: http://ddas1020.dev.com:16000/psreports/hrdmo
    URI:SchedulerTransfer/hr90dmo
    URI Port: 16000
    Please let me know if any other info is needed.
    Thanks.
    typo...
    URL: http://ddas1020.dev.com:16000/psreports/hr90dmo
    Hopefully, your application URL looks like http://ddas1020.dev.com:16000/psp/hr90dmo/..., your URI host looks like ddas1020.dev.com (or corresponding ip address), and hhtp is checked.
    Did you also tried to give the web login/password ?
    Nicolas.

  • Difference between Service data objects and process data object

    Hi
    Can anybody tell me what is the difference between SDO (Service Data Objects) & PDO (Process Data Objects).I am using 2 port PCI-CAN series 2 card.
    If anybody knows the answer then please reply.
    Thanking You

    Hi,
    See the online help file from our NI CANopen Library for LabVIEW for some basic informations about SDOs and PDOs.
    More information should be available from the web.
    DirkW
    Attachments:
    lvcanopenvhelp.zip ‏154 KB

  • Port Numbers Clarification During Portal Installation

    I have installed Portal 9.x. My infrastructure port is set at 7777 and my midtier port is set at 7779. This is how it was configured during the configuration stage.
    Therefore shouldn't I be able to access Portal through the port 7777? Did I do any wrong thing when I installed?.
    If I did then is there a way to change the port from 7779 to 7777 so that I can access it via 7777?
    Thanks.

    There are instructions on Metalink for changing the port numbers but they are spread out and hard to find and pick the right ones. I have gotten 2 files that I use to change my port numbers. Here they are:
    How to Change the Port used for Oracle 9iAS Portal 9.0.x
    1. Add the New port to Web Cache and map to the OHS (Apache)
    a. Login to Webcache as an admin user
    b. Select the Listening Ports link
    c. Click the Add button, and use these settings to create the additional port
    I. For Cache: <Select the webcache in use>
    II. IP Address: ANY
    III. Port Number: 80
    IV. Protocol: HTTP
    V. Wallet: <Leave null>
    d. Select the Site to Server Mapping link
    e. Select the radio button for the top entry (Priority 1) and click the button Insert Above
    f. Select the radio button for Enter Site Name, and enter the following
    I. Host Name: <Your ServerName directive from OHS (Apache)>
    II. Port Number: 80
    g. Check the box the HTTP entry located under the Select Application Web Servers Section
    h. Accept Remainder of Defaults and click the Submit button
    i. Click the Apply Changes button in the upper right of the screen
    2. Restart the WebCache Server
    3. Add a Partner Application to the Oracle 9iAS Single Signon for the new port using ptlasst script in SSOPARTNERCONFIG mode
    (Passwords required may be lookup in OID using the note referenced below)
    /u01/ora9portal/assistants/opca/ptlasst.csh -i custom -mode SSOPARTNERCONFIG \
    -s <portalSchema> -sp <portalPassWord> -c <iasinfraServerName:1521:iasdb> \
    -sdad <portalDad> -o <ssoSchema> -odad <ssoDad> -host <apacheServerName> \
    -port 80 -silent -verbose -sso_c <iasinfraServerName:1521:iasdb> \
    -sso_h <OHSServerName> -sso_p <ssoWebPort> \
    -pa <ssoPartnerAppSchema> -pap <ssoPartnerAppSchemaPassWord> \
    -ps <ssoProcessStoreSchema> -pp <ssoProcessStoreSchemaPassword> \
    -p_tns <tnsConnectStringtoInfraDB> -s_tns <tnsConnectStringtoInfraDB> \
    -iasname <iasMiddleTierInstanceName>
    Here is an example on a Unix Server
    /u01/ora9portal/assistants/opca/ptlasst.csh -i custom -mode SSOPARTNERCONFIG \
    -s portal -sp W18Wqn49 -c www.oracle.com:1521:iasdb \
    -sdad portal -o orasso -odad orasso -host www.oracle.com \
    -port 80 -silent -verbose -sso_c www.oracle.com:1521:iasdb \
    -sso_h www.oracle.com -sso_p 7777 \
    -pa orasso_pa -pap A2u3g00t \
    -ps orasso_ps -pp BRKU0C6a \
    -p_tns iasdb -s_tns iasdb \
    -iasname iasmid.www.oracle.com
    4. Modify the httpd.conf file located in the 9iAS Middle tier home to use port 80
    a. Edit the httpd.conf file and change the Port directive to 80
    Port 80
    b. Do NOT modify the Listen directive in the file
    5. Restart the http server in the Middle Tier
    The port has now been modified and the site may be accessed using Port 80.
    6. Login to Portal as an admin user, and reset the SSO Server Settings
    a. Login to Portal as portal
    b. Select the Builder link
    c. Select the Administer tab
    d. Select the Global Settings link
    e. Select the SSO/OID tab
    f. Under the SSO Server Settings section, modify the Query Path URL Prefix to use the correct sso port.
    The SSO Server is usually running on Port 7777, but creating the partner application would also change this port to 80.
    g. Select the apply, and ok buttons
    I use this for Running the script above:
    Windows Script to Determine orasso Password in 9iAS Release 2 (9.0.2)
    1. Paste the following script in a file named showPassword.bat and copy it in
    a directory. Please also ensure that ldapserach is there in PATH on your
    widnows machine.
    8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<
    set OIDHOST=bldel18.in.oracle.com
    set OIDPORT=4032
    if "%1"== "" goto cont
    if "%2"== "" goto cont
    ldapsearch -h %OIDHOST% -p %OIDPORT% -D "cn=orcladmin" -w "%1" -b "cn=IAS Infrastructure
    Databases,cn=IAS,cn=Products,cn=OracleContext" -s sub "orclResourceName=%2"
    orclpasswordattribute
    goto :end
    :cont
    echo Correct Syntax is
    echo showpassword.bat orcladminpassword username
    :end
    8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<8<
    Note that the "ldapsearch...orclpasswordattribute" commands should be put on
    one line.
    2. Edit the script and update with your own hostname and OID port
    OIDHOST=bldel18.in.oracle.com
    OIDPORT=4032
    3. Ensure that you have ldapsearch from the correct ORACLE_HOME in the PATH
    4. Check that OID is up and running before proceeding.
    5. Run the script, and enter the schema name as: orasso, and the password value
    is shown.
    For example:
    (all ONE line...may be easier to copy/paste from Notepad)
    C:\> showPassword.bat oracle1 orasso
    OrclResourceName=ORASSO,orclReferenceName=iasdb.bldel18.in.oracle.com,cn=IAS Inf
    rastructure Databases,cn=IAS,cn=Products,cn=OracleContext
    orclpasswordattribute=Gbn3Fd24
    The orasso password in this example is Gbn3Fd24.

  • Can't create services port in Win2K

    Hello guys:
        I was trying to install IDES on my laptop. The OS is Win2K Advanced Server with sp4. But there was a error when I installed the central instance of iDES.
       It said:'opying c:/winnt/system32/drivers/etc/services to c:/winnt/system32/drivers/etc/services.saptmp
    Internal error:a call to syslib failed. system error message:no error'. And i thought it should be something wrong when IDES was trying to create service ports. So I opened the 'service' file in the directory which said in the error message, and found that IDES added one line 'sapmszzz 3600/tcp   #sapsystem message port', it should be more than one line, right?
         I don't know what happened during the installation, and ask for your help to solve this. Anyone will be appreciated!
    Best Regards!
    Zippo

    Andreas, it's not quite correct:
    The lines look like this:
    sapdb<nn> 32<nn>/tcp
    sapgw<nn> 33<nn>/tcp
    sapms<SID> 36<nn>/tcp
    where <nn> should be 00 in this case...
    But the service number has to be unique.
    If your services contains for example an entry:
    sapmsAAB 3600/tcp
    you will fail to add
    sapmsAAX 3600/tcp
    Therefore you typically have to modify the sapms<SID> entry if you install more than one system with the Number 00 to different values.
    sapms<XXX> entries have to be identical on all SAP Systems which should talk to another.
    regards
    Peter

  • Socket connection - Available Port Numbers

    Hi,
    I am trying to connect to a server running on Unix through my NT client. This is being done via socket connection and by supplying IP Address of the machine plus the port number.
    My server is running on Unix, Solaris 8, Ultra 5 machine. I want to know if there is some allowable range of Port Numbers on the Unix machine?
    Or is it that I can use any number starting from 1 to infinite as my port number?
    Thanks.

    The ports below 1024 are reserver for only the "root" user and 65536 is usually the max port
    number available. Ports below 1024 are also reserved for a user in the Administrators group on NT and W2K.
    Actually, the maximum port number is 65535 since IPv4 port numbers are 16 bit quantities and that is the maximum value of a 16 bit quantity.

Maybe you are looking for