Hans Schou writes:
> You could have all your hosts and ports in a file and pass that to parallel.
>
> File "dst_hosts" containing:
> cloud-ec.amp.cisco.com 443
> cloud-ec.amp.cisco.com 32137
> console.ampo.cisco.com 443
>
> And then run:
> parallel -P 0 nc -w 2 -vz < dst_hosts
>
> Or with
Hi Divan,
nmap is also a very good candidate to scan many many hosts in parallel, by
default,
which is still combinable with parallel when the command line length might be
exhausted
Basic nmap command for a scan of port 443 only:
nmap -p 443 cloud-ec.amp.cisco.com console.amp.cisco.com mgmt
On Thu, Jan 18, 2018 at 6:55 PM, Divan Santana wrote:
> Like a lot of GNU software parallel is awesome.
Thanks.
> How can I achieve the below equivalent in a better way?
:
> [cloud-ec.amp.cisco.com]='443 32137'
It seems you can run:
nc -w 2 -vz cloud-ec.amp.cisco.com 443 32137
So if