Last change
on this file since 11033 was 10918, checked in by rick, 13 years ago |
Migrate to special commands file to avoid clutter and allow re-use.
One big plus, if you don't like the output you can just nuke the file.
|
-
Property svn:executable
set to
*
|
File size:
805 bytes
|
Rev | Line | |
---|
[10918] | 1 | #!/bin/csh
|
---|
| 2 | #
|
---|
| 3 | # Display some tricks and pointers for management on login.
|
---|
| 4 | #
|
---|
| 5 | # Rick van der Zwet <rick@wirelessleiden.nl>
|
---|
| 6 | #
|
---|
| 7 | echo ""
|
---|
| 8 | echo "Statistics:"
|
---|
| 9 | echo " - Build "`grep 'Revision:' /tools/wl-release.txt`
|
---|
| 10 | echo " - Config "`grep Generated /usr/local/etc/wleiden.yaml | tr -d '#'`
|
---|
| 11 | setenv cs_conn `arp -na | grep -v -e ' 00:15:6d' -e 'incomplete' -e 'permanent' -e ' 00:0d:b9' | wc -l`
|
---|
| 12 | setenv cs_auth `pfctl -twlportal -Tshow | wc -l`
|
---|
| 13 | echo " - $cs_conn clients and $cs_auth authenticated"
|
---|
| 14 | echo " - "`uptime`
|
---|
| 15 | echo ""
|
---|
| 16 | echo "Active Bridges:"
|
---|
| 17 | arp -na | grep -e ' 00:15:6d' | sed -e 's/^/ - /' | grep ' ' || echo " - none"
|
---|
| 18 | echo ""
|
---|
| 19 | echo "Active Neighboors:"
|
---|
| 20 | arp -a | grep -v 'permanent' | grep ' 00:0d:b9' |\
|
---|
| 21 | sed -e 's/^/ - /' -e 's/.wleiden.net//' -e 's/expires .*$//' |\
|
---|
| 22 | grep ' ' || echo " - none"
|
---|
| 23 | echo ""
|
---|
| 24 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.