[CentOS] Tracking Open Ports

Frank Ch. Eigler fche@redhat.com
Fri Jun 6 14:46:00 GMT 2014


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



More information about the Systemtap mailing list