Need to imlement a Terminal Management Server

we need to implement our own Terminal Management System. Are there any open source projects we can look at?