Skip to content

Displaying Active Machines on the Current Network

Introduction

There are several solutions to find which hosts are up on your network. A simple solution is to use nmap.

Usage

Here's how to do it:

nmap -sP your network/submask | awk "/^Host/"'{ print $2 }'