Net::Connection::ncnetstat - The backend for ncnetstat, the colorized and enhanced netstat like tool.
Version 0.0.0
use Net::Connection::ncnetstat; # Net::Connection::Match filters my @filters=( { type=>'States', invert=>1, args=>{ states=>['LISTEN'] } } ); my $ncnetstat=Net::Connection::ncnetstat->new( { ptr=>1, command=>1, command_long=>0, sorter=>{ invert=>0, type=>'host_lf', }, match=>{ checks=>\@filters, } } ); print $ncnetstat->run;
This initiates the object.
my $ncnetstat=Net::Connection::ncnetstat->new( \%args );
If set to true, it will show the command for the PID.
If set to true, the full command is shown.
This requires command also being true.
This is the hash to pass to Net::Connection::Match.
By default this is undef and that module won't be used.
This is what is to be passed to Net::Connection::Sorter.
The default is as below.
{ type=>'host_fl', invert=>0, }
This runs it and returns a string.
print $ncnetstat->run;
* Add support for more collection methods than Net::Connection::lsof
* Support color selection and column ordering.
Zane C. Bowers-Hadley, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-net-connection-ncnetstat at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Connection-ncnetstat. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-connection-ncnetstat at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::Connection::ncnetstat
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Connection-ncnetstat
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-Connection-ncnetstat
CPAN Ratings
https://cpanratings.perl.org/d/Net-Connection-ncnetstat
Search CPAN
https://metacpan.org/release/Net-Connection-ncnetstat
This software is Copyright (c) 2019 by Zane C. Bowers-Hadley.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Net::Connection::ncnetstat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Connection::ncnetstat
CPAN shell
perl -MCPAN -e shell install Net::Connection::ncnetstat
For more information on module installation, please visit the detailed CPAN module installation guide.