Method 1. Using lsof.
It will be easy if you have lsof installed.
# lsof -i:32876
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
oracle 135744 oracle7 13u IPv4 0x70bbe200 0t11 UDP loopback:32876
# ps -ef|grep 135744
oracle7 135744 1 0 Apr 21 - 2:45 ora_pmon_ftc_p01
Method 2. Using netstat and rmsock
# netstat -Aan|grep 9991
f100020000626b98 tcp4 0 0 *.9991 *.* LISTEN
# rmsock f100020000626b98 tcpcb
The socket 0x626808 is being held by proccess 200928 (sysscand).
#ps -ef|grep 200928
root 200928 1 0 Apr 21 - 0:01 /opt/sysscan/bin/sysscand
Method 3: Using netstat and kdb.
# netstat -Aan|grep 9991
f100020000626b98 tcp4 0 0 *.9991 *.* LISTEN
# kdb
The specified kernel file is a 64-bit kernel
Preserving 1418431 bytes of symbol table
First symbol __mulh
START END
0000000000001000 0000000003E0D050 start+000FD8
F00000002FF47600 F00000002FFDC940 __ublock+000000
000000002FF22FF4 000000002FF22FF8 environ+000000
000000002FF22FF8 000000002FF22FFC errno+000000
F100070F00000000 F100070F10000000 pvproc+000000
F100070F10000000 F100070F18000000 pvthread+000000
PFT:
PVT:
id....................0002
raddr.....0000000000724000 eaddr.....F200800030000000
size..............00040000 align.............00001000
valid..1 ros....0 fixlmb.1 seg....0 wimg...2
ERROR: Unable to acess nfs_syms
(0)> sockinfo f100020000626b98 tcpcb
.................
..............
on last a few lines.
proc/fd: 49/0
proc/fd: fd: 0
SLOT NAME STATE PID PPID ADSPACE CL #THS
pvproc+00C400 49*sysscand ACTIVE 00310E0 0000001 00000000285C7400 0 0001
(0)> hcal 00310E0
Value hexa: 000310E0 Value decimal: 200928
(0)> quit
# ps -ef|grep 200928
root 200928 1 0 Apr 21 - 0:01 /opt/sysscan/bin/sysscand
My blog has moved,please visit the new site
IBM AIX/UNIX system storage administration ksh/perl scripting
Wednesday, May 06, 2009
Determine which process is using a specific network port on AIX with or without lsof
Subscribe to:
Post Comments (Atom)
Labels
- ACL (1)
- admin (2)
- AIX 5.3 (1)
- AIX 6.1 (3)
- Atape (1)
- backup (5)
- backupios (1)
- Best Practices (1)
- bosboot (1)
- cdrom (1)
- cfgmgr (1)
- commands (4)
- compatibility (1)
- console (1)
- device (2)
- dhcp (1)
- disk (1)
- DNS (2)
- Downloads (1)
- dump (1)
- Dynamic (1)
- error (1)
- errpt (1)
- ESS (1)
- etherchannel (1)
- Filesystem (7)
- firmware (2)
- Freeware (1)
- ftp (2)
- getty (1)
- GNU (1)
- HACMP (2)
- HEA (1)
- HMC (2)
- hostname (1)
- I/O (1)
- Installation (2)
- installp (2)
- IP alias (1)
- iptrace (1)
- iso (2)
- IVM.CLI (1)
- jfs (1)
- JFS to JFS2 conversion (1)
- jfs2 (2)
- kdb (1)
- kernel (1)
- LED (2)
- lifecycle (2)
- Live Partition Mobility (1)
- lofiadm (1)
- login (1)
- LPAR (1)
- lppchk (1)
- lsof (1)
- LV (1)
- lvm (3)
- memory (1)
- migration (4)
- mksysb (2)
- mkvdev (1)
- mkvgdata (1)
- mount (1)
- multibos (1)
- ndd (2)
- netstat (1)
- network (7)
- NFS (2)
- NIC (4)
- NIM (2)
- NPIV (1)
- ODM (2)
- openssh (1)
- oslevel (1)
- patching (1)
- Performance (4)
- Perl (2)
- Perl Module (2)
- permission (1)
- port (1)
- Power VM (1)
- Power5 (1)
- Power6 (1)
- printer (1)
- problem (17)
- process (4)
- RAID5 (1)
- Recovery (2)
- respawn (1)
- restore (1)
- routing (4)
- RSC (1)
- runq (1)
- savevg (1)
- scripts (4)
- SEA (1)
- security (5)
- sendmail (1)
- solaris (7)
- SSA (1)
- SSH (2)
- ssh-agent (1)
- storage (3)
- subnet (1)
- Sun Remote System Control (1)
- support (2)
- synchronize (1)
- TCPIP (5)
- telnet (2)
- time zone (1)
- topas (1)
- Total Storage (1)
- trace (2)
- tuning (1)
- uninstall (1)
- update (1)
- update boot (4)
- upgrade (3)
- users (2)
- Veritas Volume Manager (1)
- VG (1)
- VIOS (4)
- VMM (1)
- VxVM (1)
- wtmp (1)
3 comments:
FYI: Method 1:
'lsof -t -i :$port' will suppress the header and will display only the PIDs.
In addressing the router enables wireless networking connection, really amazing what Technology has changed these days. I like meeting new things. This is why i have come to this blog, I find it very interesting.This is like
costa rica investment opportunities really interesting too.
日韓美女全捰體照片
美女寫真
美女裸體的視頻
美女裸泳
美女裸泳照
美女裸泳無遮擋圖片
美女裸泳照視頻
視訊交友
視訊聊天交友網
視頻交友秀
色群視頻秀
時裝秀視頻
視頻秀網盤
視頻秀
免費寂寞交友聊天
大秀視頻
視頻秀聊天室
QQ群視頻
視頻秀場
夜店之王視頻秀插件
一對一視頻交友
視訊交友0214
視訊聊天交友網
國外視頻交友聊天網
真愛旅舍
真愛旅舍聊天室
真愛旅舍聊天室破解
真愛旅舍第一
真愛旅舍視頻聊天
真愛旅舍破解
真愛旅舍視頻破解
真愛旅舍視頻網破解
聊天室VIP破解
泰國真愛視頻
視訊堂
交友網站約炮
國外隨機視頻聊天網
免費國外視頻聊天網
全球隨機視頻聊天網
全球隨機視頻網
免費寂寞交友聊天
國外視頻網站你懂的
國外視頻交友聊天
國外視頻
國外在線視頻聊天
視頻吧聊天交友網
影音視訊聊天室
同城交友網只為性
床友交友
視訊聊天室
國外視訊聊天室
韓國kenzo的視訊聊天
視訊聊天MFC
誰有視頻聊天網
同城夜情交友網
視頻聊天網
寂寞聊天交友網站
秀吧視頻社區
都秀
三聊視頻聊天網
Post a Comment