#!/bin/sh nmap -p 22 192.168.122.0/24 | awk '/^Nmap s/{print $NF}' # works for virtuals and some physical. but e.g. physical Synology NAS was still not found