This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [CentOS] Tracking Open Ports


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]