jablonka.czprosek.czf

discover

Subversion Repositories:
[/] [trunk/] [utils/] [discover.cgi] - Blame information for rev 4

 

Line No. Rev Author Line
12simandl#!/bin/bash
2echo Content-type: text/html
3echo
4echo "<HTML>"
5echo "<HEAD><title>Discover @ `hostname`</title><META http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-2\">"
6echo "</HEAD>"
7echo "<BODY>"
8echo "<h2>Seznam ubnt zarizeni na routeru `hostname`</h2>"
9/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>"}'
10echo "</BODY>"
11echo "</HTML>"

Powered by WebSVN 2.2.1