ThePrez / ServiceCommander-IBMi

Service Commander for IBM i
Apache License 2.0
42 stars 12 forks source link

[FEATURE-REQUEST] Ability to list all open ports #80

Closed ThePrez closed 2 years ago

ThePrez commented 2 years ago

Describe the solution you'd like

I'd like to be able to use sc to list all ports that are currently open. So, essentially the equivalent of running:

SELECT *
  FROM QSYS2.NETSTAT_INFO WHERE  TCP_STATE = 'LISTEN' order by LOCAL_PORT DESC;

It could also cross-reference and provide the service name for known services