jablonka.czprosek.czf

discover

Subversion Repositories:
[/] [trunk/] [utils/] [discover.cgi] - Rev 4 Go to most recent revision

Compare with Previous - Blame - Download


#!/bin/bash
echo Content-type: text/html
echo
echo "<HTML>"
echo "<HEAD><title>Discover @ `hostname`</title><META http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-2\">"
echo "</HEAD>"
echo "<BODY>"
echo "<h2>Seznam ubnt zarizeni na routeru `hostname`</h2>"
/usr/local/bin/discover | grep 'IP\|ESSID\|Mode\|Hostname' | tr "\n" " " | sed  's/IP Address\:/\n/g' | sort -k 7| uniq | awk '{print "<a href=http://"$1">"$1" " $2" "$8" "$10" "$4"</a><br><br>"}'
echo "</BODY>"
echo "</HTML>"

Powered by WebSVN 2.2.1