#!/bin/sh ping_host() { if ping -c 1 -w 1 -Q "$1" >/dev/null then echo "Responding" else echo "No response" fi } cat < Network status report

Network status report


Basic network devices

`ping_host gabbana` `ping_host n1a` `ping_host wap`
Device Description Location Status
gabbana Internet router Living room drawer
n1a Main server Andrew's room
wap Secondary wireless access point Landing

Networked printers

`ping_host brother` `ping_host epson`
Brother inkjet
Epson laser

EOF