[CUWiN-Dev] feature request
Stephane Alnet
stephane at shimaore.net
Sun Jan 30 17:01:29 CST 2005
> It would be nice if our web interface included a link to a page that
> simply reported a bunch of information about the node such as it's
> ifconfig -a and netstat -rn output and any other data we have easy
> access to.
Again..
#!/bin/sh
# nodeinfo.sh
cat <<HEADER_END
HTTP/1.1 200 OK
Connection: close
Content-Type: text/plain
Expire: 60
HEADER_END
echo
echo "------ /sbin/ifconfig -a -----"
echo
/sbin/ifconfig -a
echo
echo "------ /sbin/netstat -rn -----"
echo
/usr/sbin/netstat -rn
# At EOF (nodeinfo.sh)
In inetd.conf:
some-port \t stream \t tcp \t nowait \t nobody \t
location-of-nodeinfo.sh
+add "some-port" to /etc/services
+link to http://localnode:some-port/ in webpage
(And no, Dave, I won't get the whole svn tree just to submit this.)
S.
----
So many morphemes, so little time!
More information about the CU-Wireless-Dev
mailing list