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