 be loaded into the CGILua application as in any other Lua pro- gram. The CGILua application loads the LuaCORBA library aiming at accessing the remote services described in the previous sections, and loads the LuaMan+ + library to access managed devices directly. WebComm is a multi-user application with each user having their own manage- ment environment. A user management environment has a diagram of the managed network and a set of management tools. Management tools are small CGILua scripts which can be included through an upload or edited in the browser. A simple and useful tool, for example, is a script to ping the network devices. The WebComm application supports the creation, discovery and editing of network configurations. It also allows the user to query and update MIB-II information of managed devices. As examples of how the remote services are used to create management tools, we next discuss asynchronous event reception and traffic monitoring in WebComm. Events are reported to an applet running in the client browser. The connection between applet and dispatcher is established as displayed in Figure 14.3. A CGILua script calls the method in the CORBA interface of the event dispatcher that returns a TCP port. In particular, it is the TCP port in which the event dispatcher awaits client Client with browser 1: HTTP <applet code 4: HTTP <param name="port" value="6550"> HTTPd 3: 6550 5: connect( ) 2: ev _getport() Event dispatcher Figure 14.3 WebComm client connects to Event Dispatcher for receiving events. OSS for Telecom Networks client with browser 5: HTTP 4: event HTTPd Event dispatcher 3: Updates event database 2: Event 5: I/O Event agent 1: SNMP traps monitoring events Figure 14.4 WebComm implements asynchronous event reception. connections. Next, the CGI script returns an HTML page to the web browser, encap- sulating an applet which receives the TCP port as an argument. The applet then estab- lishes a connection with the event dispatcher and becomes ready to receive events. Once the applet is connected