hcigetnextport

This command locates the next available port, starting from the lowest possible port. If the range is not specified by the -l or -h arguments, then the default range is from 1024 to 49151.

hcigetnextport {-a|-s} [-l min_port] [-h max_port] [-r hciroot1
[,hciroot2...]] [-i site1[,site2…]]
  • -a excludes those ports that are actively in use in the system.
  • -s excludes those ports that have been configured as server ports in any of the sites under the specified root. It issues a warning if the port returned is actively in use in the system.
  • -l min_port defines the inclusive lower limit of the search range. Port numbers lower than min_port are excluded.
  • -h max_port defines the inclusive upper limit of the search range. Port numbers higher than max_port are excluded.
  • For -r hciroot1[,hciroot2...] . If -s is selected, then this argument defines hciroot under which the command does the search. If not specified, then this tool uses the current root defined in the HCIROOT environment variable.
  • For -i site1[,site2…]. If -s is selected, then this argument defines site under which the command does the search. If not specified, then this tool searches all sites.