source: hybrid/branches/releng-9.0/nanobsd/files/etc/motd.cshrc@ 11033

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
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 Neighboors:"
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.