Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How do i list running process with the ports they are using? Post 302612849 by mena on Monday 26th of March 2012 11:40:19 AM
Old 03-26-2012
Thanks guys. shamrock, i will lookup the syntax for lsof and see what i can do with that.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to get the list of process running in the server from the local machin n unix ?

how to get the list of process running in the server from the local machin n unix ? (3 Replies)
Discussion started by: guhas
3 Replies

2. UNIX for Dummies Questions & Answers

unix process that frees ports

Hello, I know that there is a unix system process that checks periodically the ports and if it finds any zombies then it frees them (the period is set by a kernel parameter). Can anyone tell me the name of the process and the kernel parameter ? Thanks :) (2 Replies)
Discussion started by: FunnyCats
2 Replies

3. Solaris

List TCP ports with process

Hello, One of our developers is asking for a command/script in Solaris similar to "netstat -anp" in Linux. He gave this output as an example: root@xxx:~# netstat -anp | grep LISTEN tcp 0 0 0.0.0.0:7937 0.0.0.0:* LISTEN 16082/nsrexecd tcp 0 ... (7 Replies)
Discussion started by: vimes
7 Replies

4. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies

5. Red Hat

No process ID for listening ports

How can I have ports that are listening without processes being associated with them? root@ldv002 # netstat -ltnup Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0... (2 Replies)
Discussion started by: Padow
2 Replies

6. Shell Programming and Scripting

Finding the process id of the process using the ports

Hi Any idea how to get the process id of the process using the ports lsof -i :portnumber does not work in my machine. I am on sun Solaris SPARC. Any suggestion is highly appreciated (1 Reply)
Discussion started by: kinny
1 Replies

7. AIX

How to list all threads in a running process

Hello, On Linux, I can use 'ps -efL | grep process_name' to list all threads that belong to a running process. -L has a different meaning on AIX and I could not find an equivalent flag in the man pages. Does anyone know of a way to dump the threads under a running process? Thanks,... (2 Replies)
Discussion started by: makodarear
2 Replies

8. Shell Programming and Scripting

RSH: Running out of ports

I have an issue where I am running out of ports when using RSH to start a script remotely. I have a script that i need to run that has been pushed out to every server. I have a list of servers (hostfilelist) Basically, I have a simple loop that will run them in paralell. for host in `cat... (1 Reply)
Discussion started by: nitrobass24
1 Replies

9. UNIX for Advanced & Expert Users

Finding process that turned on ports

I have 2 identical solaris 10 servers that are simply apache servers, running a version of apache I installed. # uname -a SunOS wilber 5.10 Generic_147440-25 sun4u sparc SUNW,Sun-Fire-V245 I did a netstat on one of the servers and see 2 ports that are on. These are only on on one of the... (2 Replies)
Discussion started by: csross
2 Replies

10. Shell Programming and Scripting

List Process running under current user

Hi, i need to list the processes running only under current logged in user. EX: $ whoami oraaqw $ ps -ef | grep tnslsnr oraaqw 11403300 19267592 0 09:14:47 pts/3 0:00 grep tnslsnr oraaqw 15794208 1 0 Jan 14 - 11:59... (6 Replies)
Discussion started by: aravindadla
6 Replies
servertool(1)						      General Commands Manual						     servertool(1)

NAME
servertool - The Java(TM) IDL Server Tool servertool provides an ease-of-use interface for application programmers to register, unregister, startup and shutdown a server. SYNOPSIS
servertool -ORBInitialPort nameServerPort [ options ] The command-line tool displays with a servertool > prompt. Enter commands at the servertool > prompt. The -ORBInitialPort nameServerPort option is required. The value for nameServerPort must specify the port on which orbd is running and listening for incoming requests. You must become root to start a process on a port under 1024. For this reason, we recommend that you use a port number greater than or equal to 1024 for the nameServerPort. DESCRIPTION
The servertool provides the command-line interface for the application programmers to register, unregister, startup, and shutdown a server. Other commands are provided to obtain various statistical information about the server. OPTIONS
-ORBInitialHost nameServerHost Specifies the host machine on which the name server is running and listening for incoming requests. The nameServerHost defaults to localhost if this option is not specified. If orbd and servertool are running on different machines, you must specify the name or IP address of the host on which orbd is running. -Joption Pass option to the Java virtual machine, where option is one of the options described on the reference page for the java application launcher. For example, -J-Xms48m sets the startup memory to 48 megabytes. It is a common convention for -J to pass options to the underlying virtual machine. COMMANDS
register -server serverClassName -classpath classpathToServer [ -applicationName alternateServerName -args argsToServer -vmargs flagsTo- BePassedToJavaVM ] Register a new server with the Object Request Broker Daemon (ORBD). If the server is not already registered, it is registered and activated. This command causes an install method to be invoked in the main class of the server identified by the -server option. The install method must be public static void install(org.omg.CORBA.ORB). The install method is optional and enables the developer to provide their own server installation behavior (for example, creating database schema). unregister -serverid serverId | -applicationName name Unregister a server from the ORBD by using either its server id or its application name. This command causes an uninstall method to be invoked in the main class of the server identified by the -server option. The uninstall method must be public static void unin- stall(org.omg.CORBA.ORB). The uninstall method is optional and enables the developer to provide their own server uninstall behavior (for example, undoing the behavior of the install method). getserverid -applicationName applicationName Return the server id that corresponds with an application. list List all information about all persistent servers registered with the ORBD. listappnames List the application names for all server currently registered with the ORBD. listactive List all information about all persistent servers that have been launched by the ORBD and are currently running. locate -serverid serverId | -applicationName applicationName [ -endpointType endpointType ] Locate the endpoints (ports) of a specific type for all ORBs created by a registered server. If a server is not already running, it is activated. If an endpoint type is not specified, then the plain/non-protected endpoint associated with each ORB in a server is returned. locateperorb -serverid serverId | -applicationName applicationName [ -orbid ORB_name ] Locate all the endpoints (ports) registered by a specific ORB of registered server. If a server is not already running, then it is activated. If an orbid is not specified, the default value of "" is assigned to the orbid. If any ORBs are created with an orbid of empty string, all ports registered by it are returned. orblist -serverid serverId | -applicationName applicationName ] Lists the ORBId of the ORBs defined on a server. An ORBId is the string name for the ORB created by the server. If the server is not already running, it is activated. shutdown -serverid serverId | -applicationName applicationName ] Shutdown an active server that is registered with ORBD. During execution of this command, the shutdown() method defined in the the class specified by either the -serverid or -applicationName parameter is also invoked to shutdown the server process appropriately. startup -serverid serverId | -applicationName applicationName Startup or activate a server that is registered with ORBD. If the server is not running, this command launches the server. If the server is already running, an error message is returned to the user. help List all the commands available to the server through the server tool. quit Exit the server tool. SEE ALSO orbd 10 March 2001 servertool(1)
All times are GMT -4. The time now is 06:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy