Scan a network with nmap

root@ubuntu:~#  nmap -F -n -sS 192.168.22.25

Starting Nmap 7.60 ( https://nmap.org ) at 2018-05-30 23:15 CEST
Nmap scan report for 192.168.22.25
Host is up (0.077s latency).
Not shown: 94 closed ports
PORT      STATE    SERVICE
7/tcp     filtered echo
80/tcp    open     http
444/tcp   filtered snpp
1026/tcp  filtered LSA-or-nterm
1900/tcp  open     upnp
49156/tcp filtered unknown
MAC Address: 00:30:BD:B2:11:E4 (Belkin Components)

Nmap done: 1 IP address (1 host up) scanned in 1.70 seconds

Scan servers listen on port 22

root@ubuntu:~# nmap -Pn -p22 -n 172.16.120.0/24 --open -oG - | awk '/22\/open/{ print $2 }'
172.16.120.185
172.16.120.188
172.16.120.161