This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [CentOS] Tracking Open Ports
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: centos at centos dot org, marco dot leitner at gmail dot com, ericf706 at gmail dot com
- Cc: systemtap at sourceware dot org
- Date: Fri, 6 Jun 2014 10:46:01 -0400
- Subject: Re: [CentOS] Tracking Open Ports
- Authentication-results: sourceware.org; auth=none
Hi -
The following brief stap script will non-intrusively give the information sought:
# stap -e 'probe netfilter.ip.pre_routing {
if (dport == 389)
printf ("%s %s:%d -> %s:%d\n", ctime(gettimeofday_s()), saddr, sport, daddr, dport) }'
- FChE