Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://647807]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-03-29 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found