SampleScripts: alive

File alive, 279 bytes (added by hervey, 9 years ago)

Tell us if each student PC is up and running - uses nmap

Line 
1#!/bin/bash
2#
3
4#
5# Use nmap to tell us if each PC is up and running.
6# -sP: Ping Scan - go no further than determining if host is online
7#
8
9#for i in `cat pcs`
10#do
11#    nmap -sP $i
12#done
13
14# hard-coded
15
16nmap -sP pc1 pc2 pc3 pc4 pc5 pc6 pc7 pc8 pc9 pc10 pc11 pc12 pc13 pc14 pc15
17