Brandon,
I have a set of Tcl procs which:
– record ports used from both the /etc/hosts and the NetConfigs.
– creates a list of these used ports. I think the list has an indicator of where each port was found.
– creates a another list of unused ports
– allows for reserving (meaning reserve from assignment) ports: good for defining the ephemeral range.
– and a simple proc to recommend a user specified number of ports from a user specified floor to a user specified ceiling.
While the above was designed to assist in assigning ports to make sure non in use are assigned, the list of used ports could assist you without modification.
Then again you could modify the code any way you wwant.
Also available is user doc for each proc and a fflow chart of the recommended process.
Email me if you would like me to send these to you.
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.