in reply to Netstat summary and Perl?

Check out the node Parsing program output snippets. for a program to parse netstat output.

-Mark

Replies are listed 'Best First'.
Re: Re: Netstat summary and Perl?
by u235sentinel (Hermit) on Apr 07, 2004 at 17:49 UTC
    Thanks for pointing out the snippet! I looked through it quickly and it gave me some good ideas.

    I'm looking at writing code to parse the summary information actually. netstat -s provides summary information about ICMP, TCP, UDP and so on. I'm interested in capturing infomation such as dropped packets and errors. I was hoping to stay within Perl and not externally call netstat.

    For example, instead of calling date I would use Perl's localtime. I was hoping there was a module for Perl that would gather the netstat summary (netstat -s equivalent).