[K12OSN] Releasing Fl_TeacherTool 0.1

Trond Mæhlum trond at mahlum.biz
Mon Oct 3 09:55:19 UTC 2005


On fre, 2005-09-16 at 16:47 -0700, Robert Arkiletian wrote:
> On 9/15/05, David Trask <dtrask at vcsvikings.org> wrote:
> 
> > Now for a challenge....I run two K12LTSP servers in dhcp failover/load
> > balancing mode...with a third Samba/LDAP machine for authentication and
> > home dirs.  Works fantastic except for the fact that now I have to use
> > TeacherTool in two places....any ideas on how we might be able to set it
> > up so that one TeacherTool can monitor both servers?  Even possible?
> 
> I don't have your dual redundant server system but from what I can
> imagine both servers have to have different ip's on eth0 so one must
> be 192.168.0.254 and the other (?) They both hand out ip's
> (alternating) so if one goes down the other picks up the slack.
> However, the problem I'm having implementing this is that I can't seem
> to figure out how to netstat the other server without actually going
> there with ssh. This long line in my code
> 
> netstat -t -e|grep x11|sed -e 's/:/ /g'|awk '{print $9,$6}'|grep -v
> root|grep -v $LOGNAME|grep -v gdm|sort|uniq

Thanks for the sud tip btw. This is truly a killer app in
system-administration of an LTSP system. If I generate ssh-keys for my
machines I can netstat them like this from my commandline:

ssh <ipaddress1> netstat -t -e ..........

and it returns all users from <ipaddress1>

then I can do ssh <ipaddress1> netstat -t -e ..........  and so on.

Is this usable for you in any way? How should the line in the code look
like now? With five servers to list?

Regards Trond Maehlum




More information about the K12OSN mailing list