---
title: "[转]AIX 下使用 netstat 命令查进程"
author: "kumcun"
date: "2011-11-09T15:33:05Z"
tags: []
categories: ["操作系统"]
slug: "aix-netstat"
draft: false
lastmod: "2011-11-09T15:33:05Z"
id: 1246474
url: "https://kumcun.iteye.com/blog/1246474"
---

AIX 下 netstat -na 可以看到其他机器和本系统建立的连接情况,但是我想知道和本系统的那个进程建立的连接,如何看?在 linux 下可以用 netstat -nap 能看到,但是 AIX 不支持。  
1.netstat -Ana grep 地址,记住第一列的值(例如71daa608)  
2.rmsock 71daa608 tcpcb,会显示进程号  
3.ps -efgrep 进程号

 

 

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\