Next / Previous / Contents / TCC Help System / NM Tech homepage

Abstract

Describes the implementation of hwscan3, a system for displaying a report showing the hardware configurations of publicly available servers and client workstations at the New Mexico Tech Computer Center.

This publication is available in Web form and also as a PDF document. Please forward any comments to tcc-doc@nmt.edu.

Table of Contents

1. Overview
2. Installation
3. Generated XHTML
3.1. XHTML for the start page
3.2. XHTML for the room page
4. Prologue
5. Imports
6. Manifest constants
6.1. HTML_SUFFIX
6.2. TCC_URL
6.3. TCC_PATH
6.4. BASE_DIR
6.5. BASE_URL
6.6. BASE_PATH
6.7. START_FILE
6.8. START_URL
6.9. START_PATH
6.10. CSS_URL
6.11. TCC_HOME
6.12. LDAP_URL
6.13. CLIENTS_DN
6.14. NULL_FILTER
6.15. LDAP_TRUE
6.16. CN_ATTR
6.17. OFFICE_ATTR
6.18. OS_ATTR
6.19. ATTR_LIST
6.20. FORGE_SERVER
6.21. REPORT_FILE
6.22. TABLE_ATTRS
6.23. L_ALIGN
6.24. R_ALIGN
6.25. TOP_VALIGN
6.26. BOT_VALIGN
6.27. CLASS
6.28. HANG_CLASS
6.29. INST_SUFFIX
7. main(): The main program
8. buildPages(): Build all Web pages
9. buildServerTable(): Build the table of servers
10. findLoginServers(): Display login server rows
11. buildServerRow(): Format one row of the server table
12. buildOpenLabsList(): Bullet list of open labs
13. buildOpenLab(): Build the page for an open lab
14. linkToRoomPage(): Build a hyperlink to the room page
15. roomPageURL(): Generate the URL for a room page
16. roomPagePath(): Absolute path name of a room page
17. buildRoomPage(): Make the page with a table of all the clients in a room
18. buildRoomTable(): Build the table of client configurations
19. buildRoomRow(): Build one row of the room table
20. buildDevices(): Extract relevant device configurations
21. buildClassroomTable(): Build the table of classrooms
22. buildClassroom(): Build one classroom table line and page
23. buildClassroomRow(): Build one line of the classroom table
24. class Singleton: Parent class for singletons
25. class ClientSet: Container for client configurations
25.1. ClientSet.genClients(): Generate all client configurations
25.2. ClientSet.lookupClient(): Find a specific client by host name
25.3. ClientSet.init(): Constructor
25.4. ClientSet.__buildLdapMap(): Extract LDAP's client list
25.5. ClientSet.__processLdapEntry(): Process one LDAP client record
25.6. ClientSet.__buildClientMap(): Extract configuration data
25.7. ClientSet.__findConfig(): Look up a system in the GetHardware service
26. class ClientConfig: Configuration data for one client
26.1. ClientConfig.__init__(): Constructor
26.2. ClientConfig.__deviceCheck(): Check for devices of a given type
27. class ReportInfo: Reading report information
27.1. ReportInfo.__init__(): class constructor
27.2. ReportInfo.__buildRooms(): Build the room dictionary
27.3. ReportInfo.__buildSystems(): Build the system map
27.4. ReportInfo.__makeSystem(): Build a system map entry
28. class Room: Room information
29. class System: System information
30. Epilogue