source: hybrid/branches/releng-10/nanobsd/files/etc/motd.cshrc@ 12926

Last change on this file since 12926 was 11042, checked in by lodewijk, 13 years ago

typo

  • Property svn:executable set to *
File size: 804 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 -a | 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.