















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















Project Overview 1
This section gives an overview of the software product including description or purpose of the product as well as its comparison with other software product in the market now a days.
Mobile Administrator is a remote administration tool consisting of an emulated terminal, service management system and an alert system. It has two parts, e.g. Client application and Server application. This software is to be used by the system administrators, which are not available on the site of administration most of their time. It will give them the ability to remotely connect to the server and perform server administration as much required.
Incremental Process Model is being followed through out the Project Development as project is modular consisting of small components interacting with each other. Details discussion on why to use Incremental Process Model is presented in the Software Project Management Plan for Remote Administration via Mobile document.
Figure 1 Incremental Process Model
Project Overview 2
Bandwidth hungry
Reliability
Usuability
Client Support
Limited Connectivity
Slow
Cost-Effectiveness
In the previous progress reports of Remote Administration via Mobile Phone, Mobile Administrator was compared with VNC clients and Remote SSH Clients available at that time. It has be presented that what does this product has and this project lack and why that is in other products.
Summary of work done after the submission of 7th^ semester final report would include tasks such revising the approach, making a comparison between previous and new approach, defining resources, defining forms of resources, Design and Development work on the first and second increment and survey of some methods to monitor services.
Activities 4
During the semester breaks with the development work on 2nd^ increment, a continuous survey of methodologies by which this project can be done was performed. Previously Midlet located on client’s mobile phone were being used for the sake of communication between client’s mobile phone and server. This has been replaced by Servlet located at the remote server due to the reasons which are provided in upcoming sections.
Midlet still lack the support of a proper security API built in to Java. This has not been done so to reduce the size of Java available on mobile phones. But for applications such as this project is carrying out, security if one of the most important non-functional requirement.
With the help of 3rd^ party APIs security can be enhanced but they will increase the chain of dependencies, resulting in more resource hungry project, with a very limited range of supported devices.
Storage of data was a problem in Midlet approach. Data was being stored in the mini-database like place called stores on mobile phone’s memory. This was also limiting the client to use certain mobile phone with a range of memory. Plus these data stores are very limited in size and not as fast as the full fledged databases on the computer, nevertheless a database connection would eat battery out. So one has to take care of database connections to be as minimum as possible. Lastly the built-in phone applications such as contacts, calendar and etc use the same database for the purpose of storage of data.
Another way to store data was to use plain text files, but mobile phone operating systems still lack the ability of permission, permission like that in *nix system. Thus any person who has got a mobile with the project installed in it, would have been able to extract out the files without letting the owner know.
Support for certain Java versions e.g. MIDP 2.0 and CLDC 1.1 was required, which in turn has quite some delicate hardware requirements for mobile phones. Mobile phones that are being
Activities 5
manufactured today contain these accessories but old mobile phone still lack behind and use old version such as MIDP 1.0 and CLDC 1.0. This was also limiting the range of supported devices provided that most of client would rather change software than changing their mobile to run the require software.
Resources on mobile were being used intensively for most of the processing of data. These resources included bandwidth, memory, processor and battery. Mobile phones work more as thin clients or dumb clients with very little processing on the end as the main purpose of mobile phone is portability.
Once a user was connected to a system, already connected user list was missing which is a non-functional requirement. This is required so that if there is already an administrator logged in, the newly connected person should know if he is needed to do administration or now, and to avoid deadlocks and loss of information by overwriting the same resource by multiple users.
Servlet can address the problem of administration more affectively in terms of resources. All the problems mentioned with the previous solution are the strong point of Servlet such as it uses JavaSE, thus virtually any library can be included and used.
JavaSE has built-in support for md5 hashes and thus increasing security.
All processing is being done on the server side, client’s mobile phone is just used to take client input and show results to the client.
It utilizes less bandwidth than previous approach.
Least possible resources on mobile phone are used.
Client does not need to install any extra software, he will just need a web browser, and in most cases, built-in browsers would be sufficient.
On server advance set of permissions are available, thus securing the application even if data is to be stored in plain text files.
Activities 7
This is a special role that will only have the permission to do application administration of the
application such as adding users, editing users, changing password, changing configuration of application
etc. Users in this role will not be able to any system administration such as executing commands, scripts or
subscribing to services.
Activities 8
Design of application still remains the same as it is still consisted of two components interacting in the same way as they were previously; changing position of one component from mobile phone to server has not affected design in terms of request processing.
Files will be used to store client’s data on the server. One might argue with comparison of files and databases. Answer to such argument would be limited set of user, limited set of data being stored, and files can be faster than databases with small set of data, as they do not need DBMS. Security of these files can be implemented using the advance permissions available in the operating system.
This file will be used to store data in the form:
&username,md5password,role,cellnumber,verificationvariable,email
This file will contain set of nix command with switches. Switches prefixed with ’ &’ would be
compulsory switches, otherwise optional. Structure of the file would be:
%cmd&swicth1&siwtch2@siwtch3@switch4@switch
This file is not part of implementation of the project but will be used in extensions. This file will store
Windows commands and structure of this file would be defined by the developer later.
Activities 10
where we will have to parse Windows commands while we are on a nix system and vice versa. A separate
file for Windows and nix exists, which will be loaded by the Servlet based upon the OS it is running on.
Activities 11
Development of first increment is completed but testing still needs to be performed.
Construction of 2nd^ increment has been completed with as many non-functional requirements as possible. Testing of Servlets on a real application still needs to be done.
References 13
[1] Muhammad Shoaib, Software Project Management Plan
[2] Muhammad Shoaib, Software Requirements Specification
[3] Midlet - Wikipedia, the free encyclopedia, http://en.wikipedia.org/wiki/Midlet
[4] Java Servlet - Wikipedia, the free encyclopedia, http://en.wikipedia.org/wiki/Java_Servlet
[5] Poor Sysadmin's Guide to Remote Linux Administration, http://www.linuxdevcenter.com/pub/a/linux/2002/05/09/sysadminguide.html
[6] monit, http://tildeslash.com/monit/
[7] Nagios, http://www.nagios.org/about/
[8] SSL - http://www.webopedia.com/TERM/S/SSL.html
[9] J2SSH, http://www.securityfocus.com/cgi- bin/index.cgi?c=toolcomments&op=display_comments&ToolID=3074&expand_all=true&mode=threaded
[10] JAPI - (Yet another (hopefully) useful) Java API , http://japi.sourceforge.net/
Appendix 14
A Midlet requires a device that implements at least Java ME, CLDC and MIDP to run. Like other Java programs, Midlets have a "compile once, run anywhere" potential. Midlet distributions main file is a .jar file, but Midlet distributions can also consist of a .jad file containing the location of and describing the contents of the .jar file. The implementation of a Midlet may or may not require the presence of a .jad file.
A Midlet has to fulfill the following requirements in order to run on a mobile phone:
The main class needs to be a subclass of Javax.microedition.Midlet.Midlet
The Midlet needs to be packed inside a .jar file (e.g. by using the jar-tool)
The .jar file needs to be pre-verified by using a preverifier.
In some cases, the .jar file needs to be signed by the mobile phone's carrier.
Appendix 16
become a product until Sun shipped the Java Web Server product. This was before what is now the Java Platform, Enterprise Edition was made into a specification.
Table 1 Servlet History
Servlet API version
Released Platform Important Changes
Servlet 2.5 September 2005 JavaEE 5 , J2SE 5.0 Requires J2SE 5.0, supports annotations
Servlet 2.4 November 2003 J2EE 1.4, J2SE 1.3 web.xml uses XML Schema
Servlet 2.3 August 2001 J2EE 1.3, J2SE 1.2 Addition of Filters
Servlet 2.2 August 1999 J2EE 1.2, J2SE 1.2 Becomes part of J2EE, introduced independent web applications in .war files
Servlet 2.1 November 1998 Unspecified First official specification, added RequestDispatcher, ServletContext Servlet 2.0 JDK 1.1 Part of Java Servlet Development Kit
Servlet 1.0 June 1997
The Servlet lifecycle consists of the following steps:
Appendix 17
There is only one ServletContext in every application. This object can be used by all the Servlets to obtain application level information or container details. Every Servlet, on the other hand, gets its own ServletConfig object. This object provides initialization parameters for a Servlet. A developer can obtain the reference to ServletContext using either the ServletConfig object or ServletRequest object.
A Servlet container is a specialized web server that supports Servlet execution. It combines the basic functionality of a web server with certain Java/Servlet specific optimizations and extensions – such as an integrated Java runtime environment, and the ability to automatically translate specific URLs into Servlet requests. Individual Servlets are registered with a Servlet container, providing the container with information about what functionality they provide, and what URL or other resource locator they will use to identify themselves. The Servlet container is then able to initialize the Servlet as necessary and deliver requests to the Servlet as they arrive. Many containers have the ability to dynamically add and remove Servlets from the system, allowing new Servlets to quickly be deployed or removed without affecting other Servlets running from the same container. Servlet containers are also referred to as web containers or web engines.
Appendix 19
Nagios is a host and service monitor designed to inform you of network problems before your clients, end-users or managers do. It has been designed to run under the Linux operating system, but works fine under most *NIX variants as well. The monitoring daemon runs intermittent checks on hosts and services you specify using external "plugins" which return status information to Nagios. When problems are encountered, the daemon can send notifications out to administrative contacts in a variety of different ways (email, instant message, SMS, etc.). Current status information, historical logs, and reports can all be accessed via a web browser.
Nagios has a lot of features, making it a very powerful monitoring tool. Some of the major features are listed below:
Monitoring of network services (SMTP, POP3, HTTP, NNTP, PING, etc.)
Monitoring of host resources (processor load, disk and memory usage, running processes, log files, etc.)
Monitoring of environmental factors such as temperature
Simple plugin design that allows users to easily develop their own host and service checks
Ability to define network host hierarchy, allowing detection of and distinction between hosts that are down and those that are unreachable
Contact notifications when service or host problems occur and get resolved (via email, pager, or other user-defined method)
Optional escalation of host and service notifications to different contact groups
Appendix 20
Ability to define event handlers to be run during service or host events for proactive problem resolution
Support for implementing redundant and distributed monitoring servers
External command interface that allows on-the-fly modifications to be made to the monitoring and notification behavior through the use of event handlers, the web interface, and third-party applications
Retention of host and service status across program restarts
Scheduled downtime for suppressing host and service notifications during periods of planned outages
Ability to acknowledge problems via the web interface
Web interface for viewing current network status, notification and problem history, log file, etc.
Simple authorization scheme that allows you restrict what users can see and do from the web interface
Nagios is licensed under the terms of the GNU General Public License Version 2 as published by the Free Software Foundation. This gives you legal permission to copy, distribute and/or modify Nagios under certain conditions. Read the 'LICENSE' file in the Nagios distribution or read the online version of the license for more details. Nagios is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.