source: hybrid/branches/releng-11/nanobsd/files/etc/motd.cshrc@ 13721

Last change on this file since 13721 was 13482, checked in by rick, 9 years ago

Without DNS this is taking a long time to timeout

  • Property svn:executable set to *
File size: 805 bytes
Line 
1#!/bin/csh
2#
3# Display some tricks and pointers for management on login.
4#
5# Rick van der Zwet <rick@wirelessleiden.nl>
6#
7echo ""
8echo "Statistics:"
9echo " - Build "`grep 'Revision:' /tools/wl-release.txt`
10echo " - Config "`grep Generated /usr/local/etc/wleiden.yaml | tr -d '#'`
11setenv cs_conn `arp -na | grep -v -e ' 00:15:6d' -e 'incomplete' -e 'permanent' -e ' 00:0d:b9' | wc -l`
12setenv cs_auth `pfctl -twlportal -Tshow | wc -l`
13echo " - $cs_conn clients and $cs_auth authenticated"
14echo " - "`uptime`
15echo ""
16echo "Active Bridges:"
17arp -na | grep -e ' 00:15:6d' | sed -e 's/^/ - /' | grep ' ' || echo " - none"
18echo ""
19echo "Active Neighbors:"
20arp -na | grep -v 'permanent' | grep ' 00:0d:b9' |\
21 sed -e 's/^/ - /' -e 's/.wleiden.net//' -e 's/expires .*$//' |\
22 grep ' ' || echo " - none"
23echo ""
24
Note: See TracBrowser for help on using the repository browser.