A handy colorized and enhanced netstat replacement. https://metacpan.org/release/Net-Connection-ncnetstat
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zane C. B-H 9ecc05fe34 correct the change date 3 months ago
..
bin misc updates 3 months ago
lib/Net/Connection misc updates 3 months ago
t now use Table::ANSITable 2 years ago
Changes correct the change date 3 months ago
MANIFEST add initial files 2 years ago
Makefile.PL misc updates 3 months ago
README read everything for releasing 0.3.0 2 years ago
ignore.txt add initial files 2 years ago

README

Net-Connection-ncnetstat

Provides a enhances colorized netstat like tool that is capable of doing searches.

> ncnetstat -W --Cl --pct -p ldap -n
Proto User PID Local Host Port Remote Host Port State WChan CPU% Mem% Command
tcp4 ldap 1377 127.0.0.1 ldap 127.0.0.1 41453 ESTABLISHED uwait 0.00 0.03 /usr/local/libexec/slapd -u ldap -g ldap
tcp4 ldap 1377 127.0.0.1 ldap 127.0.0.1 62370 ESTABLISHED uwait 0.00 0.03 /usr/local/libexec/slapd -u ldap -g ldap
tcp4 ldap 1377 127.0.0.1 ldap 127.0.0.1 35181 ESTABLISHED uwait 0.00 0.03 /usr/local/libexec/slapd -u ldap -g ldap
tcp4 ldap 1377 127.0.0.1 ldap 127.0.0.1 23619 ESTABLISHED uwait 0.00 0.03 /usr/local/libexec/slapd -u ldap -g ldap
tcp4 ldap 1377 127.0.0.1 ldap 127.0.0.1 23620 ESTABLISHED uwait 0.00 0.03 /usr/local/libexec/slapd -u ldap -g ldap
tcp4 nslcd 1386 127.0.0.1 41453 127.0.0.1 ldap ESTABLISHED nanslp 0.00 0.02 /usr/local/sbin/nslcd
tcp4 nslcd 1386 127.0.0.1 62370 127.0.0.1 ldap ESTABLISHED nanslp 0.00 0.02 /usr/local/sbin/nslcd
tcp4 nslcd 1386 127.0.0.1 35181 127.0.0.1 ldap ESTABLISHED nanslp 0.00 0.02 /usr/local/sbin/nslcd
tcp4 nslcd 1386 127.0.0.1 23619 127.0.0.1 ldap ESTABLISHED nanslp 0.00 0.02 /usr/local/sbin/nslcd
tcp4 nslcd 1386 127.0.0.1 23620 127.0.0.1 ldap ESTABLISHED nanslp 0.00 0.02 /usr/local/sbin/nslcd
tcp4 ldap 1377 192.168.15.2 ldap 192.168.14.2 39821 ESTABLISHED uwait 0.00 0.03 /usr/local/libexec/slapd -u ldap -g ldap

The search criteria can be any of the following.

CIDR
port
host
PTR
pctcpu
pctmem
Regex PTR
state
UID
username
wait channel

TODO

* Add support for more collection methods than Net::Connection::lsof

* Support color selection and column ordering.

INSTALLATION

To install this module, run the following commands:

perl Makefile.PL
make
make test
make install

SUPPORT AND DOCUMENTATION

After installing, 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

Repository
https://github.com/VVelox/Net-Connection-ncnetstat


LICENSE AND COPYRIGHT

This software is Copyright (c) 2019 by Zane C. Bowers-Hadley.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)