list_ports
Lists active listening TCP/UDP ports with process details on single or multiple hosts. Filter by port for targeted service identification.
Instructions
Lists active listening TCP/UDP ports, matching processes, and PIDs on a single host ('host') or multiple hosts concurrently ('hosts'). If using 'hosts', returns a JSON map mapping hostnames to their active port list. Optionally filter by 'port'. Prefer 'hosts' to scan service availability across multiple machines simultaneously.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | The target hostname or IP address | |
| port | No | Optional port number to filter by | |
| hosts | No | A list of hostname targets to query concurrently |