HP (Hewlett-Packard) 5991-5565 manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of HP (Hewlett-Packard) 5991-5565, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of HP (Hewlett-Packard) 5991-5565 one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of HP (Hewlett-Packard) 5991-5565. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of HP (Hewlett-Packard) 5991-5565 should contain:
- informations concerning technical data of HP (Hewlett-Packard) 5991-5565
- name of the manufacturer and a year of construction of the HP (Hewlett-Packard) 5991-5565 item
- rules of operation, control and maintenance of the HP (Hewlett-Packard) 5991-5565 item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of HP (Hewlett-Packard) 5991-5565 alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of HP (Hewlett-Packard) 5991-5565, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the HP (Hewlett-Packard) service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of HP (Hewlett-Packard) 5991-5565.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the HP (Hewlett-Packard) 5991-5565 item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    HP Open S our ce Mi ddle w ar e St ac ks Bluepr int: W eb Se r v er on HP Pr oL i ant Se r v er s w ith S U SE L inu x Ent er pr ise Se r v er V er si on 1 0 HP P ar t Numbe r: 5 99 1 -5 56 5 P ublished: August 200 7 E dition: 3 .0[...]

  • Page 2

    © Copyright 2007 Hewlett-P ackard Development Company , L.P . Legal Notice Confidential computer softw are. V alid license from HP required for possession, use or copying. Consistent with F AR 12.211 and 12.212, Commercial Computer Softw are, Computer Software Documentation, and T echnical Data for Commercial Items are licensed to the U.S. Governm[...]

  • Page 3

    T able o f C onte nts Introduction ............................................................................................................................................ 9 Ex ec ut iv e Su mm ar y ...........................................................................................................................9 In te nd ed A ud ie nc[...]

  • Page 4

    Cr ea ti ng a S im pl e Ap pl ic at io n in T o mc at ..................................................................................37 V er if yi ng t he S im pl e Ap p li ca ti on O p er at io n.............................................................................4 1 Se cu re t he W e b Se rv er S ta ck .................................[...]

  • Page 5

    L ist of F igur es 1 W eb S er v e r St ac k Ar ch it e ct ur e......................................................................................................1 2 2 W eb S er ve r H ar dw ar e En vi ro nm en t.............................................................................................1 3 3 Y aS T So ft w ar e Se le ct io n an[...]

  • Page 6

    6[...]

  • Page 7

    L ist of T ables 1 So ft w ar e T es t C on fi gu ra t io n..........................................................................................................1 2 2 Re qu ir ed O VO W P at ch es ..............................................................................................................49 3 SE -S PI A pp li ca ti on s of t h[...]

  • Page 8

    8[...]

  • Page 9

    Intr oducti on Ex ec uti ve Summary The HP Open Source Integrated Portfolio (HP OSIP) comprises a range of products and services designed to verify that customers can successfully realize the cost and feature benefits of adopting open source softw are in their IT environments. HP Open Source foundation components include the base components of an o[...]

  • Page 10

    T y pogra phic C on ve ntions This document uses the following typographical conventions. Command A command name or qualified command phrase. ComputerOut T ext displayed by the computer . Ctrl-x A key sequence. A sequence such as Ctrl-x indicates that you must hold down the key labeled Ctrl while y ou press another key or button. ENVIRONVAR The nam[...]

  • Page 11

    HP Open S our ce W eb Serve r Middle war e St ack The following components comprise the HP OSMS W eb Server Middlew are Stack: Apache W eb Server The Apache W eb Server is a mature open source w eb server that has become the de facto standard because of its high adoption rate on the Internet. Apache T omcat Apache T omcat (or T omcat) is a J2EE ser[...]

  • Page 12

    Figur e 1 W eb Ser ver Stack Architecture T able 1 lists the software used to test the configurations described in this blueprint. T abl e 1 Softwar e T est Configuration W ebsite Link Distributor P ackage Name P ackage V ersion Software Apache httpd website Novell apache2.2.0-21.2.x86_64.rpm 2.2.0-21.2 Apache httpd Apache T omcat website Apache ap[...]

  • Page 13

    NO TE: The installation and configuration of the MySQL and Oracle databases are not cov ered in this blueprint. The MySQL and Oracle databases are installed on a separate HP ProLiant servers with database files on Modular Smart Array (MSA) 1000 storage. All other softw are listed in T able 1 are installed on HP ProLiant servers, as displayed in Fig[...]

  • Page 14

    2. Under the Primary Functions heading, select W eb and LAMP Server and under the Development heading, select C/C++ Compiler and T ools as displayed in Figure 3 . Figur e 3 Y aST Software Selection and S ystem T asks 3. Select the Details button to display a table with the detailed software package selections. 4. From the Filter options drop-down l[...]

  • Page 15

    # rpm – q apache2 apache2-prefork apache2 – mod_perl apache2 – mod_python apache2 – mod_php5 webalizer If any of these packages are not installed, locate the RPM package on the Linux distribution media, and install the missing package. NO TE: By default, the installation enables the iptables firew all, which prevents external systems from[...]

  • Page 16

    1. Download the Sun JDK package from the Jav a website and install as follows (see T able 1 (page 12) for the correct version and w ebsite link): Change to the Sun JDK install package directory , as appropriate for your system, and install the package by entering the following command: # chmod 755 jdk-1_5_0_10-linux-amd64-rpm.bin # ./jdk-1_5_0_10-l[...]

  • Page 17

    4. Log out of the system, and then log back in to start using the revised profile. 5. V erify the Sun JDK installation w as successful by entering the following: # java – version The following messages appear: java version "1.5.0_10" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03) Java HotSpot(TM) 64-Bit Server VM [...]

  • Page 18

    NO TE: If the iptables firew all is enabled, you will not be able to connect to T omcat from a remote computer . 6. If necessary , stop T omcat by entering the following command: # /usr/local/apache-tomcat/bin/shutdown.sh The following messages appear: Using CATALINA_BASE: /usr/local/apache-tomcat Using CATALINA_HOME: /usr/local/apache-tomcat Using[...]

  • Page 19

    Y ou can force a heavier load on the Apache HTTP Server by increasing the number of concurrency requests with the -c option, and by prolonging the testing round by increasing the number of requests with the -n option. NO TE: If you encounter the following error: socket: Too many open files (24) Y ou can correct the error by entering the following: [...]

  • Page 20

    5. V erify that the /etc/apache2/sysconfig.d/loadmodule.conf file contains the following lines: LoadModule info_module /usr/lib64/apache2-prefork/mod_info.so LoadModule status_module /usr/lib64/apache2-prefork/mod_status.so If these two lines exist , then the tw o modules have loaded successfully . Use the following procedure to v erify the server [...]

  • Page 21

    Apac he HTTP Ser v er Log The Apache HTTP Server provides a detailed and flexible information-logging mechanism. The two most important log files are the error and access logs. The default location for the Apache HTTP Server log files is the following directory: /var/log/apache2 Using the Er ror L og to Diagn ose the Apac he HTTP Server The Apache [...]

  • Page 22

    Figur e 8 W ebalizer Usage Report For detailed information, see the W ebalizer website at: http://www .mrunix.net/webalizer/ Using V irtual Host Support A virtual host runs more than one w ebsite on a single server . For example, www .website1.com and www .website2.com can be hosted on the same server . The most widely used virtual host is "na[...]

  • Page 23

    8. P opulate the file that you created in Step 7 with the following lines: <HTML> <HEAD> </HEAD> <BODY DIR="LTR"> <P ALIGN=CENTER STYLE="margin-bottom: 0cm"> <FONT FACE="Times New Roman, serif"> <FONT SIZE=6>This is www.website2.com</FONT> </FONT></P> </BOD[...]

  • Page 24

    </BODY> </HTML> 4. Edit the following configuration file: /etc/apache2/default-server.conf Add the following line to the preceding file: Redirect permanent /testdir http:// <ANOTHER_WEB_SERVER_IP> /test.html 5. Use the following command to restart y our Apache HTTP server , for the preceding changes to take effect: # /etc/init.d/a[...]

  • Page 25

    6. V iew the access log file on the Apache Proxy server . Messages similar to the following are contained in the file: YOUR_WEB_BROSWER_IP - - [03/Feb/2007:13:30:48 -0500] "GET http://YOUR_WEB_SERVER_IP/test.html HTTP/1.0" 200 206 "-" "ApacheBench/2.0.40-dev" V iew the access log file on the Apache HTTP server . Messag[...]

  • Page 26

    3. V erify the custom local URL redirect message by opening a browser and entering the following website: http:// <YOUR_WEB_SERVER_IP> /non-exist The following message appears: The page you request does not exist! Local redirects example Cu stomi zing External URL R edirec t Res ponses The URL redirect feature allows y ou to trap a missing li[...]

  • Page 27

    <P ALIGN=CENTER STYLE="margin-bottom: 0cm"> <FONT FACE="Times New Roman, serif"> <FONT SIZE=6>The is personal homepage of user tester .</FONT> </FONT></P> </BODY> </HTML> 3. V erify that the per-user web directory configuration was successful by opening a browser and entering the f[...]

  • Page 28

    3. Insert the following line below the DocumentRoot line: JkMount /jsp-examples/* worker1 4. Before you can v erify the T omcat and Apache integration, you must set T omcat to listen for AJP13 requests. The JK module uses AJP to communicate with T omcat so, you must v erify that the AJP <Connector> element is enabled in the T omcat file serve[...]

  • Page 29

    /var/log/apache2/error_log /var/log/apache2/access_log /var/log/apache2/mod_jk.log Integr ating the Apache W eb Server and P HP The Apache W eb server that is shipped with the supported Linux distribution includes a built-in PHP module. Therefore, no extra configuration is required for Apache. Use the following procedure to configure PHP: 1. V erif[...]

  • Page 30

    Integr ating the Apache W eb Server and Pyth on The apache2 – mod_python module embeds the Python environment into the Apache W eb server . Embedding this environment avoids the run-time ov erhead of starting the Python environment externally . Use the apache2 – mod_python package provided by the Linux distribution. 1. V erify that the apache2 [...]

  • Page 31

    Figur e 1 1 T omcat Connections Using JDBC T omcat uses the data-source concept to create database connections. A data source must be configured in an XML configuration file. The data source provides details about the target database, such as the database server IP address and login credentials. The JDBC driv er connects to the database and the use[...]

  • Page 32

    1. Create a data source descriptor file named $CATALINA_HOME/conf/context.xml and insert the following lines: <Context> … <Resource name="jdbc/mysqlDB" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql:// <IP_OR_NAME_OF_MYSQL_SERVER >:33[...]

  • Page 33

    1. Create a JSP file named $CATALINA_HOME/webapps/ROOT/mysqltest.jsp and insert the following lines: <%@page contentType="text/html" import="java.io.*,java.sql.*, javax.sql.*,javax.naming.*"%> <html> <head> <title>Tomcat->MySQL Test </title> <link rel="stylesheet" href="style_ma[...]

  • Page 34

    layer for w eb applications. A JDBC connector for Oracle is needed to integrate an external Oracle Database server with the T omcat W eb server . This section describes the steps for connecting the T omcat W eb server to an Oracle database. Obtaining and Inst alling the Orac le JDBC Dri ver P erform the following steps from the T omcat W eb server:[...]

  • Page 35

    1. Create a JSP file named $CATALINA_HOME/webapps/ROOT/oracleTest.jsp and insert the following lines: <%@page contentType="text/html" import="java.io.*,java.sql.*, javax.sql.*,javax.naming.*"%> <html> <head> <title>Tomcat->Oracle Test </title> <link rel="stylesheet" href="style_[...]

  • Page 36

    Co nnecting T omcat to MyS QL or Or acle U sing Hiber nate Hibernate is an open-source object and relational mapping framework. It uses a lightweight object encapsulation for JDBC and allows JA V A developers to access data from databases using JA V A objects. Hibernate is designed to run in a managed environment, such as the environment of the web[...]

  • Page 37

    1. Log in to Oracle using the user name osmsusr and password osmspass by entering the following command: # sqlplus osmsusr/osmspass@osmsdb_ora 2. In the Oracle database identified by the Oracle SID, osmsdb_ora , create a table named USERS , and then sequence with the osmsusr user by entering the following commands: SQL> Create sequence hibernate[...]

  • Page 38

    maxWait="5000" username="osmsusr" url="jdbc:oracle:thin:@IP_OR_HOSTNAME_OF_DB_SERVER:1521:osmsdb_ora" maxActive="15"/> </Context> Where: IP_OR_HOSTNAME_OF_DB_SERVER is the MySQL or Oracle database server name or IP address. 3. Add the Hibernate3 JAR files to the application library by copying the fol[...]

  • Page 39

    /osms/hibernate/utility and add the following lines so the application can interact with Hibernate: package com.hp.osms.hibernate.utility; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.cfg.Configuration; public class HibernateSessionFactory { private static String CONFIG_FILE_LOCATION = "/hibernate[...]

  • Page 40

    <property name="firstName" type="java.lang.String"> <column name="FIRST_NAME" length="30" /> </property> <property name="lastName" type="java.lang.String"> <column name="LAST_NAME" length="30" /> </property> </class> </hibern[...]

  • Page 41

    org.hibernate.Session hbsession = HibernateSessionFactory.getSession(); try{ Transaction tx = hbsession.beginTransaction(); Users users= new Users(); users.setFirstName("Smith"); users.setLastName("Barney"); hbsession.save(users); hbsession.flush(); tx.commit(); }catch(HibernateException he){ he.printStackTrace(); }finally { if([...]

  • Page 42

    Sec ure the W eb Serv er Stac k This section covers w eb server security . • Data T ransportation —Secure Sockets Layer (SSL) is a widely used technology to protect data transfer . SSL enablement methods for both the Apache W eb server and T omcat Application server . • Application Authentication — Apache W eb server provides a built-in aut[...]

  • Page 43

    5. P erform the test by navigating to the website located at: https://< YOUR_HOSTNAME > V erify that the certificate is displayed as in Figure 15 : Figur e 1 5 SSL_Enabled Apache Apac he HTTP Ser v er Auth ori z ation The Apache default document root is: /srv/www/htdocs A directory named test must exist in the document root directory . In the[...]

  • Page 44

    Cr eating a P ass wo rd F ile Create a password file to contain the HTTPS server passwords using the following steps: 1. Create the password directory by entering the following command: # mkdir /etc/apache2/passwd 2. Create and update the user passw ord file by entering the following command: # htpasswd2 -c /etc/apache2/passwd/mypasswords TESTNAME [...]

  • Page 45

    NO TE: In the steps for this procedure: rootdn is set to "cn=Manager,dc=example,dc=com" rootpw is set to secret in the slapd.conf file 1. Create a file named webbase.ldif that contains the following lines: dn: dc=example,dc=com objectClass: dcObject objectClass: organization dc: example o: example dn: dc=osm,dc=example,dc=com objectClass:[...]

  • Page 46

    1. Edit the following file: /etc/apache2/default-server.conf Add the ldap and authnz_ldap modules to the APACHE_MODULES line. Once this edit is complete, the line should look like the following: APACHE_MODULES= "... ... ldap authnz_ldap" 2. Create the following file: /srv/www/htdocs/ldaptest/index.html Add the following lines to the prece[...]

  • Page 47

    1. Create a web application named myweb in y our T omcat W eb server by adding the following code to the file $CATALINA_HOME/conf/server.xml : TIP: T o apply the following <Realm/> configuration to all of your virtual machines, insert it between the <Engine/> tags. Y ou can also apply it to the scope of a virtual host by inserting it be[...]

  • Page 48

    <P ALIGN=CENTER STYLE="margin-bottom: 0cm"> <FONT FACE="Times New Roman, serif" SIZE=6> Integration of tomcat and CDS succeed! </FONT> </P> </BODY> </HTML> 5. Configure the directory service as described in “Configuring CDS and LDAP Services” (page 44) . 6. Restart T omcat by entering the [...]

  • Page 49

    NO TE: The HP OVO Management server runs on either HP-UX or Windows systems. The examples in this blueprint use HP OVOW . Figure 16 illustrates the SPIs architecture and OpenView components. Figur e 1 6 OV OW Ar c hitecture So ft war e Pr er equisites and R efe re nce Guides Before attempting to install the T omcat SPI, verify that y ou have a func[...]

  • Page 50

    T ools T able 3 provides an overview of the Tools group in the T omcat Servlet Engine SPI (SESPI). T abl e 3 SE- SPI Applications of the T ool Group Description Servlet Engine SPI Creates the SESPI directory and configurations files and libraries required by the SPI. Configure T omcat Instrumentation Shuts down T omcat server process. Shutdown T om[...]

  • Page 51

    Appendi x A: Chec klist f or Building a W eb Serve r Middle w ar e Stac k The following checklist is intended to assist y ou in building a W eb Server Middlew are Stack in your environment. Status Complete these steps: Install and verify the Linux installation. 1 Configure the basic Apache HTTP Server (page 15) . 2 Install and configure Sun JDK or [...]

  • Page 52

    Status Complete these steps: Implement T omcat authorization with Symas CDS (page 46) . 12 Configure T omcat monitoring with HP OVOW (page 48) . 13 52[...]

  • Page 53

    Appendi x B: F r equentl y Ask ed Q uesti ons Q : How do I disable firew all settings? A : By default, SLES has a firew all enabled. This prevents external systems from accessing ports below 1024. Enter the following to disable the firew all: # /sbin/SuSEfirewall2 stop CA UTION: Disabling the firewall is not advisable. If any external applications [...]

  • Page 54

    Appendi x C: V endor Inf or mation R efe r ence This appendix provides references to the v endors that are referenced in the HP OSMS W eb Server stack. These web resources contain a w ealth of information and HP encourages you to review each of them. Apache HTTP Server V ersion 2.2 Documentation Provides all the documentation associated with V ersi[...]

  • Page 55

    Appendi x D: Hiber nate T est A pplicati on So ur ce Code This appendix provides the contents of the following tw o Hibernate T est Application source code files: • HibernateSessionFactory.java • hibernate.jsp The following are the contents of the HibernateSessionFactory.java file: package com.hp.osms.hibernate.utility; import org.hibernate.Hib[...]

  • Page 56

    public void showData(JspWriter out,List list) { Iterator it = list.iterator(); try{ out.print("<table width='100%' border='1' cellspacing='0' cellpadding='0'><tr>"); out.print("<tr><td bgcolor='E2E6F1'><div align='center'>UserID<br></di[...]

  • Page 57

    { HibernateSessionFactory.closeSession(); } %> <body><div align="center"><font size="7">OSMS Hibernate Test Page</font> <%initSession();%> </div><h2>1.Retrieve data from table USERS via hibernate<br> <%showData(out,queryAll());%> <h2>2.Insert firstname 'Smith&ap[...]