Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What would be the best way to record port logins...

Status
Not open for further replies.

LeePatto

IS-IT--Management
Joined
Apr 23, 2007
Messages
19
Location
AT
...for example, when an application accessed the AIX Server over a specific port. I can currently use netstat -a to list connections. Is there a better way? Also, is this information written to a logfile anyway, like wtmp records logins?

Many thanks
 
Code:
lsof | grep TCP
is what I use but I'm not sure it has any benefits over netstat -a

On the internet no one knows you're a dog

Columb Healy
 
Hi there, lsof doesn't appear to exist on my servers. So there is no logfile that records this..? I'm not aware of one myself. All incoming connections from applications will be on "TCP"? I'm not showing any on uppercase TCP, but plenty on lowercase "tcp"?

Thanks
 
Take a look at nmap



Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top