08-04-2008
you could use era's idea (lsof -p PID) or do something like netstat -putanuw|grep -E "LISTEN.*(processname|processpid)"
You should change "processname" and "processpid". You could also use just "LISTEN.*processname" or "LISTEN.*pid"
10 More Discussions You Might Find Interesting
1. Solaris
Is there a way in Solaris to find which process is using which port? (3 Replies)
Discussion started by: Kraas
3 Replies
2. AIX
Is there a way in AIX to determine which process is connected to a particular IP port? I know about the lsof command, but for various reasons I can't install it on the machine I want to use it on. Is there a way other than using this command? (1 Reply)
Discussion started by: dgiaimo
1 Replies
3. Linux
Hi all,
I have a process with PID as 12456. Could you please let me know how do i find out what is the port that process listens upon in Linux?
Thanks in Advance,
Pankajakshan (1 Reply)
Discussion started by: Pankajakshan
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am on a Sun Solaris and I want to find out which process is allocated on a certain port. How can I do that?
BR
Andreas (4 Replies)
Discussion started by: mr_andrew
4 Replies
5. UNIX for Advanced & Expert Users
Hi all,
I work in three platforms SOLARIS,HPUX,AIX.
My requirement is to find the user id which is using a particular port.
So I tried searching commands which will help me to know which port is used by which process.
According to the posts over here lsof makes life easy in this case. But I... (4 Replies)
Discussion started by: vikasrout
4 Replies
6. Solaris
Hi
I would like to know, how to find that particular process is running on which port other than /etc/services as this file shows well known ports information. (1 Reply)
Discussion started by: amity
1 Replies
7. AIX
I would like to know, how to find that particular process is running on which port other than /etc/services as this file shows well known ports information
Double post, continued here. If you want answers for different OS, post in a general section instead. If you want your other post moved... (0 Replies)
Discussion started by: amity
0 Replies
8. Solaris
Hi All,
How to get the list of port numbers and it is correspoding proceses id that are currently running on. Please suggest and it is urgent
Thanks. (7 Replies)
Discussion started by: rbalaj16
7 Replies
9. IP Networking
i want to kill a tcp connection by killing its pid
with netstat -an i got the tcp ip connection on port 5914
but when i type ps -a or ps-e there is not such process running on port 5914
is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
Discussion started by: alinamadchian
30 Replies
10. IP Networking
Hello,
Please help me in getting the process id and the port number from the socket
netstat -Aan|grep -i closed
f100050010b133b8 tcp 0 0 *.* *.* CLOSED
f1000500119b53b8 tcp4 0 0 *.* *.* ... (3 Replies)
Discussion started by: Vishal_dba
3 Replies
LEARN ABOUT OSF1
snmp_traprcv
snmp_traprcv(8) System Manager's Manual snmp_traprcv(8)
NAME
snmp_traprcv - A program that listens for SNMP trap messages and prints any it receives
SYNOPSIS
/usr/sbin/snmp_traprcv [-d] [-tcp] [-p port]
OPTIONS
Sends a hexadecimal dump of the received packet to stdout. Specifies that the TCP transport be used instead of the UDP transport. If a
connection cannot be established, the program silently receives the trap on the standard transport address (UDP 162). Specifies the port
number on the local host on which to listen to messages. The default is 162, the well-known SNMP trap port.
DESCRIPTION
The snmp_traprcv program listens on the SNMP Trap port specified in the /etc/services file. If no entry exists in the /etc/services file,
the program listens on port 162. If any SNMP trap messages arrive, snmp_traprcv prints them to stdout. The program runs until terminated
by typing Ctrl/c.
RESTRICTIONS
When using the default or well-known port, you must have root privileges in order to run this program. The program may not be able to bind
to the default or specified port if other software on the system is already bound to that port.
SEE ALSO
Commands: snmpd(8), snmp_request(8), snmp_trapsnd(8)
snmp_traprcv(8)