port_map
Nmap port scan against a single host from the Netmon server. Wraps POST /api/getPortscanInfo (permission: tools).
Server runs nmap -oX - -p <ports> --open <ip> and returns the parsed result. The probe originates from netmon, not from wherever mcpmond runs — so what's reachable here is what netmon can reach.
Single targets only (single IP or hostname). The backing endpoint does not accept CIDR or ranges. If port_range is omitted, scans 1-1024.
Returns the nmap host element as JSON: status, address, and ports[] with state/service/product/version. Latency: scans can take ~30-90s depending on port count and target responsiveness; client timeout is 120s.
Example: port_map({target: "192.168.1.1", port_range: "22,80,443"})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Single IP address or hostname to scan. CIDR/ranges are not supported by the backing endpoint. | |
| port_range | No | Optional. Ports to scan, e.g. '80', '22,80,443', '1-1024'. Defaults to '1-1024'. |