Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

An equivalent “netstat” Perl Module.

by blackadder (Hermit)
on Oct 29, 2007 at 09:16 UTC ( [id://647807] : perlquestion . print w/replies, xml ) Need Help??

blackadder has asked for the wisdom of the Perl Monks concerning the following question:

Holy Monks

I have been tasked with gathering some netstat information on a bunch of Windows and *NIX boxes. I suppose I can use netstate and some switches to capture the output, then with aid of regx or something I can filter the output to get the bits that I need. But I just thought; is there a pure Perl module that I can use on both Windows and Linux/Unix boxes that does the same and I can have more control on the returened data?

Regards

Blackadder

Replies are listed 'Best First'.
Re: An equivalent “netstat” Perl Module.
by erroneousBollock (Curate) on Oct 29, 2007 at 09:34 UTC
    But I just thought; is there a pure Perl module that I can use on both Windows and Linux/Unix boxes that does the same (as netstat)
    Have you tried Net::Netstat::Wrapper ?

    and I can have more control on the returened data?
    More control in what way? If you get back all data from netstat you can always filter the data further yourself using grep.

    -David