i woluld like to stop all the services those are unknowingly running on my AIX box. when I start investigating i found services sometimes-rpc3 and ppp ...two services that are running on these , those I dont have idea
please advise what is significance of these services and how to know which process/users are using these deamons
Talking about "services", I think you mean daemons (that's how they called in Unix) whereas "services" is the windows term.
# netstat -a show all (network) service ports on which daemons are listening for requests.
The name for the service port can be found in /etc/services.
Here is an example for a system with an active IMAP server, awaiting requests. As the imap prcess itself will not be running all the time but will be started from inetd (the "inet daemon") when requests arrive, you will not find a running process for this service port.
1:
2:
3:
4:
5:
# netstat -a | grep imap
tcp 0 0 *:imap2 *:* LISTEN
# grep imap2 /etc/services
imap2 143/tcp imap # Interim Mail Access Proto v2
imap2 143/udp imap
thanks for the quick reply.this inputs given me good info.
my intention stop all the services that are utilizing by any kind of request either by the server or from the users.
below list of services that I found on my server - that have some assinged ports for it
sometimes-rpc3, sometimes-rpc9, sometimes-rpc27 and PPP.
Could any one of them have idea ,what are these services for ?? where these will be used for ??. these are on server that hosted currently with production database and other oracle application server.
a) RPC is "remote procedure call". This looks like some non-standard (self-developed?) programs b) PPP is then "point to point protocol", usually used for dialing into other systems via serial lines or modems
As you said ,good way to gaze services for ,whether these belongs to oracle/apps server, can be done by complete shutting the db/apps server.
As explained above I want to drill at
- when the application server/db server up and running ,how to check whether any user session using these services ? - Or any other process that are depending on these services for its run.
If you want to know which sessions (and which user using it) are open, you will have to look into Oracle's network session display. I'm pretty much sure this would be some SQL*Net session. Check the status of your "tnslnsr" and which sessions it handles.
But this is another question: Look into Oracle specifics, please
In this case, you will have to obtain a program to check which processes do have a certain port open. This can be done with "lsof" which is a public domain tool.
Also, you may want to use some network sniffer (ethereal, snoop and the like) to monitor network traffic for certain port(s)