Archive for October 2007

Installing 5733-QU2 aka DB2 Web query for System i V1R1M0

Just a few minutes ago (Around 10:30 in the morning) i’ve received a package through DHL from IBM, which finally contained the 5733-QU2 media. I’ve decided to write about my experiences with the installation, and i’m typing this as i go through the install.

The product is a single cd, which i’ve put into my laptop, created a CD Image using ImgBurn, and copied it to our i5/OS cd share. After that, i copied the CD image to a model 515 for testing, added it to and image catalog, and mounted the image.

While this was happening, i studied the short included README note. It contained a link to the DB2 Query for Web Getting started page. This page again references APAR II14318, which contains the necessary PTF levels to install this product. The installation guide is in the DB2 Web Query Install Guide.

The first step was to verify that i had all required products installed (using GO LICPGM, 10). There are multiple prereqs stated in multiple documents, i’ve just combined these three lists into one:

5722SS1 Option 3 – Extended Base Directory (installed by default)
5722SS1 Option 30 – Qshell (installed by default)
5722SS1 Option 33 – PASE (installed by default)
5722DG1 IBM HTTP Server (installed by default)
5722JC1 IBM Toolbox for Java (installed by default)
5722JV1 Option 8 – J2SE 5.0 32bit (NOT installed by default)

If you install a new licensed program, it might be necessary to rerun the latest cumulative and group PTFs. It makes sense to combine this with the next step.

I’ve verified that my group PTFs were current (using WRKPTFGRP):

SF99504 - DB2 fixpack level 10
SF99114 - IBM HTTP Server fixpack level 8
SF99291 - Java fixpack level 7

I’ve had higher levels at all products.. If you’re no current on PTFs, you might want to check my writeup about installing PTFs with image catalogs.

But there were more PTF requirements to be met, and you’d also need some special PTFs depending on your language feature code (It’s all in APAR II14318).

I’ve issued the following command to retrieve the missing PTFs through my ESA internet connection:

SNDPTFORD PTFID((SI27813) (SI27814) (SI28336))

The usual QESECARE job started and used up cpu time for about 10 minutes, and then a progress bar appeared. It started to download the PTFs. These three PTFs are about 120MB in size.

You’ll also need to download some more PTFs for use with web query itself. You can download them in the same session, or later. The DB2 web query PTFs are about 650MB in size – while this is not much, remember that IBMs servers are very, very slow – this download can take about 2-4 hours.

SNDPTFORD PTFID((SI28391) (SI28393) (SI28399) (SI28406) (SI28582))

(Only use this command if you’re using lang #2939, for other languages see APAR APAR II14318)

After downloading all these PTFs, i’ve started to reapply the current CUME/Groups (because i’ve installed the J2SE 5.0 32bit Java product), and also the newly ordered PTFs.

After IPLing the machine, i checked if PTFs SI27813, SI27814 and SI28336 were successfully applied. They were. I also checked if all groups were marked “Installed” using WRKPTFGRP. They were.

I loaded the correct image catalog, made sure that the correct disk was selected (F2939_01), and then issued the installation command:

RSTLICPGM LICPGM(5733QU2) DEV(OPTVRT01)

After accepting the license agreement, the installation started. After waiting for about two hours (and watching the RST reaching more than 20’000 objects restored), the installation finally succeeded.

It’s important to know that 5733QU2 needs quite a lot of space, which is not documented anywhere from IBM’s side. You’ll need 650MB for CD Image, which needs about 3GB of space when extracted. Add to that the space needed by PTFs (about 3-6GB), you’re at about 6-9GB of needed space. Those of you running a 595 with more than a hundred 147GB arms might laugh at this, but the lowend 520 machines with two mirrored 36GB disk drives might see this differently.

I do wonder about the final performance of this product, as several IBMers have stated the hardware requirements to be extreme, but the statements are inconclusive because they contradict each other:

Question from Rdandrew: What are the minimum hardware recommendations?

Drmack says: for any query/sql environment we recommend a minimum 8GB of memory per CPU w/ V5R4. We have tested with 600 CPW machines and it runs well there. Typically, 20-25 disk arms keeps your system balanced too.

Question from Dblyth: will the 515 express models run this effectively? they are limited to 8 disk arms, 4 will be typical and 4GB memory will also be typical.

Drmack says: Yes, we think the 515 is a little powerhouse despite your picking up on the fact that is may be under our guidelines for memory and disk I/O

Source

Most of our customers are running IBMs (still expensive) low end machines – 270, 800, 520, 515 with 4 or less disk arms.

Moving on, the next step is installing the 5733QU2 PTFs. This should be done before touching anything about 5733QU2. I started the PTF installer and told it to apply PTFs immediately. This should save me from IPLing the system again (the Java PTFs contained LIC fixes – needing an IPL).

This procedure also needed a lot of time, about two hours (same as the install). At first, the progress of a SAV command appeared, that apparently saved all the files from the IFS into a savefile. After taking it’s sweet time compressing said SAVF, it started a RST command that extracted files from another savefile. Basically, it reran the installation process again (eating more and more time). This would explain why the 5733-QU2 PTFs have nearly the same size as a single CD, but i wonder what IBM’s excuse if for not dealing with IFS based products more efficiently.

While i’m waiting for the PTF installation to finish, i’m pondering the time needed to do this. I’ve started the whole installation thing at around 10:30, and it’s 15:30 right now. That means i’ve wasted about 5 hours just installing a product and it’s necessary PTFs. This wouldn’t sound that bad if we were talking about a low end intel server, but this is a high end server made by IBM, of which i expect the highest performance. A

After the PTF procedure completed, i checked if PTFs SI28391, SI28393, SI28399, SI28406 and SI28582 were applied correctly. They were.

I continued the installation using the command:

CALL QWEBQRY76/REGWEBQRY

The next steps were easy, and fully according to IBMs documentation:

CHGUSRPRF USRPRF(QWEBQRYADM) PASSWORD(mypw) GRPPRF(MRADMIN)
CALL QWEBQRY76/WQADDLIC 'myuser'
Sign on as QWEBQRYADM
QWEBQRY76/STRWEBQRY

The next step was to bring 5733QU2 into it’s German language version – this actually needs extra steps, and it just shows that 5733-QU2 isn’t really integrated with i5/OS (yet?).

You’ll need to enter QSHELL command prompt using STRQSH.
Then you’ll need to enter a command to translate your installation

/qibm/proddata/webquery/ibi/srv76/home/bin/tsgult.out NLSCFG /qibm/userdata/webquery/ibi/srv76/wfs 500 DEU
This will translate according to the CCSID 500 and the german language. It’s important to know that the examples mentioned in the Web Query Install PDF do not work – you need to explicitly specify both the CCSID and the language!

Next step was logging onto web query:

http://IPADRESS:11331/webquery_html/wfconsole.htm

The page took about 5 seconds to load, but it worked!

I logged in using the QWEBQRYADM credentials, and i was logged in. In the top left corner we saw the recent developments of IBMs branding effort System: OS/400. Product names are very important, and in a new product like QU2, i want to see “i5/OS”, and not “OS/400″.

I clicked on the Configuration/NLS Settings button as instructed by the manual. I was greeted by this error message:

An HTTP 500 error has been returned when attempting to communicate with the WebFOCUS web components. The application server log contains information on why this error has occurred. Contact your WebFOCUS Administrator or Information Builders Customer Support Services for further assistance

My first try was to restart web query using QWEBQRY76/ENDWEBQRY, STRWEBQRY commands. This didn’t help.

After a bit of searching i found out that the logfiles are located in /qibm/UserData/WebQuery/ibi/webfocus76/WQLWI7/logs/. I found a few messages which could indicate the problem:

2007/10/15 15:42:55.090 SCHWER Webcontainer : com.ibm.ws.webcontainer.servlet.ServletWrapper : Uncaught service() exception thrown by servlet {0}: {1}([/console/wfconsolenls.jsp, java.lang.NullPointerException]) Thread[HttpServer : 4,5,main] ::class.method=com.ibm.ejs.ras.Tr.error() ::thread=HttpServer : 4 ::loggername=com.ibm.ejs.ras
2007/10/15 15:42:55.128 SCHWER Exception occured in com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter ::class.method=com.ibm.ws.ffdc.FFDCFilter.processException() ::thread=HttpServer : 4 ::loggername=com.ibm.ws.ffdc

java.lang.NullPointerException
at _ibmjsp.console._wfconsolenls._jspService(_wfconsolenls.java:91)
[snip]
2007/10/15 15:42:55.142 SCHWER Exception occured in com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest() ::class.method=com.ibm.ws.ffdc.FFDCFilter.processException() ::thread=HttpServer : 4 ::loggername=com.ibm.ws.ffdc

javax.servlet.ServletException
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:166)
[snip]
2007/10/15 15:42:55.204 SCHWER Webcontainer : com.ibm.ws.webcontainer.webapp.WebApp : [Servlet Error]-[{0}]: {1}([/console/wfconsolenls.jsp, java.lang.NullPointerException]) Thread[HttpServer : 4,5,main] ::class.method=com.ibm.ejs.ras.Tr.error() ::thread=HttpServer : 4 ::loggername=com.ibm.ejs.ras
java.lang.NullPointerException
at _ibmjsp.console._wfconsolenls._jspService(_wfconsolenls.java:91)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
[snip]

I’ve tried a few more tricks, like changing the NLS configuration to 237 DEU, and removing the NLS configuration completely. Neither did work.

I’ve opened PMR 61859,212,848 on this. Let’s see how this turns out. Moving on, i’ve tried to logon to the end user interface:

http://10.33.2.200:11331/webquery/

I was greeted with a really ugly login page, and entered my userid and password. It seems to work fine so far, updates regarding the NLS problems will be forthcoming. It’s 17:19 now, and i’m going home.

More about the new event viewer

The Microsoft Performance team published a new great article about the Vista eventviewer and saved logs.

With Windows Server 2008 at the door, this is interesting. I would also strongly suggest to read all other articles in the Askperf blog – while updates are rather sparse, the content is extremely interesting and well written.

Transferring savefiles through FTP

If you need to transfer savefiles from one i5/OS instance to another, you have the choice between physical media, SNA (SNDNETF) and FTP.

Using FTP to transfer savefiles has a few quirks that are non-intuitive at first, and it’s more complicated if you’re transferring from one i5/OS instance to another. I often transfer savefiles from our system to customer systems, with my laptop as an intermediary.

Let’s start with the simple ones:

Downloading the savefile QGPL/TRANSFER to a PC:

C:\tmp>ftp 270.int.dataline.ch
Verbindung mit 270.int.dataline.ch wurde hergestellt.
220-QTCP at i270.int.dataline.ch.
220 Connection will close if idle more than 5 minutes.
Benutzer (270.int.dataline.ch:(none)): lukas
331 Enter password.
Kennwort:
230 LUKAS logged on.
ftp> quote site namefmt 1
250 Now using naming format "1".
ftp> cd /qsys.lib/qgpl.lib
250 "/QSYS.LIB/QGPL.LIB" is current library.
ftp> binary
200 Representation type is binary IMAGE.
ftp> get transfer.savf
200 PORT subcommand request successful.
150 Retrieving member TRANSFER in file TRANSFER in library QGPL.
226 File transfer completed successfully.
FTP: 705408 Bytes empfangen in 0.65Sekunden 1090.28KB/s
ftp> quit
221 QUIT subcommand received.

There are a few important things to notice here: QUOTE SITE NAMEFMT 1 changes the System to use the IFS naming format (you can change the default using CHGFTPA). BINARY switches to binary transfer mode, this is especially important for uploads (i5/OS refuses non-binary savf downloads).

Uploading from a PC or i5/OS instance is essentially the same, so i’ll lump these two together in the next section:

C:\tmp>ftp 270.int.dataline.ch
Verbindung mit 270.int.dataline.ch wurde hergestellt.
220-QTCP at i270.int.dataline.ch.
220 Connection will close if idle more than 5 minutes.
Benutzer (270.int.dataline.ch:(none)): lukas
331 Enter password.
Kennwort:
230 LUKAS logged on.
ftp> quote site namefmt 1
250 Now using naming format "1".
ftp> binary
200 Representation type is binary IMAGE.
ftp> cd /qsys.lib/qgpl.lib
250 "/QSYS.LIB/QGPL.LIB" is current library.
ftp> del TRANSFER.SAVF
250 File TRANSFER in library QGPL deleted.
ftp> put TRANSFER.SAVF
200 PORT subcommand request successful.
150 Sending file to member TRANSFER in file TRANSFER in library QGPL.
226 File transfer completed successfully.
FTP: 705408 Bytes gesendet in 0.69Sekunden 1026.79KB/s
ftp> quit
221 QUIT subcommand received.

Now, the special case comes into play when you’re downloading from an i5/OS instance. If you do not precreate the savefile and overwrite it, you’ll end up with a simple PF-DTA, that you can’t restore from.

CRTSAVF QGPL/TRANSFER
FTP '270.int.dataline.ch'

Es wird versucht, eine Verbindung zu Host 270.int.dataline.ch, Adresse 10.33.0.20 über Port 21 herzustellen.
220-QTCP at i270.int.dataline.ch.
220 Connection will close if idle more than 5 minutes.
> lukas
331 Enter password.
230 LUKAS logged on.
OS/400 is the remote operating system. The TCP/IP version is "V5R4M0".
250 Now using naming format "1".
257 "/" is current directory.
> namefmt 1
250 Now using naming format "1".
Server NAMEFMT ist 1.
Client NAMEFMT ist 1.
> lcd /qsys.lib/qgpl.lib
Das lokale Arbeitsverzeichnis ist /QSYS.LIB/QGPL.LIB
> cd /qsys.lib/qgpl.lib
250 "/QSYS.LIB/QGPL.LIB" is current library.
> get TRANSFER.SAVF (REPLACE
227 Entering Passive Mode (10,33,0,20,73,134).
150 Retrieving member TRANSFER in file TRANSFER in library QGPL.
226 File transfer completed successfully.
33792 Byte in 0.436 Sekunden übertragen. Übertragungsgeschwindigkeit 77.585 KB/s.

There are a few more noteworthy things in this transcription: We used “namefmt 1″ instead of “quote site namefmt 1″. This will also advise the local FTP client to change it’s naming format. We also issue a cd and an lcd command to change the FTP server and the FTP client to the correct diretory. Then, we call the get command with the special (REPLACE parameter, telling it to replace the already existing savefile (and thus preserving the SAVF attribute).

You’ll also notice that IBM still hasn’t updated their branding throughout i5/OS…

ExcelliPrint and duplex printing

After newly installing ExcelliPrint for a few new Epson printers at a customers site, we had a strange problem: Everytime we printed a single page, the printer tried to duplex it. I checked the PRTF to make sure that duplexing wasn’t enabled, and it wasn’t. Yet the problem persisted. Printing from Windows directly did not yield a duplexed page, so i was a bit stunned.

Could this be a bug in ExcelliPrint? Doubtful, the symptom is just to strange for a programming error.

But the solution was very, very simple: When i looked at the printer configuration (through it’s Web interface), duplexing was enabled by default. I disabled it, and Windows and ExcelliPrint could print single pages without problems, and both Windows and ExcelliPrint could enable duplexing without problems too.

I would assume that the problem is that the Windows printer driver sends an explicitly disabled duplexing option, while ExcelliPrint only sets the duplexing option when you enable it in the PRTF.

Delivery times from a variety of manufacturers

Currently, i’m still waiting for my copy of 5722-QU2, aka Web Query. We’ve ordered it over a month ago, and have received the keys in the meanwhile, but no media. While IBM does theoretically offer media download, it does not do so for 5722-QU2 (Wondering where you can download i5/OS media? IBM ESS).

The fact that i haven’t got any interesting project running right now, and IBM isn’t shipping me new toys i just decided to complain about delivery times. This might not actually be interesting.

When it comes to delivery times, my experience with IBM has always been abysmal. The local swiss distributors (Avnet, TechData, Also) are usually low on stock, don’t have any System i stock (automatically giving you 2-8 weeks, depending on IBM’s mood). Software orders also take ages, especially additional software on new Systems (we usually buy 5722-IP1 for our customers to generate PDF). These software orders usually take 2+ weeks after the system was shipped.

Even System x servers are rather hard to come by. While there are usually a few (less than 5) models on stock, additional parts (like disks, memory) are sometimes out of stock too. Out of stock articles usually take up to three weeks.

The situation is even worse with IBM printers – no stock anywhere, and delivery times are 4+ weeks.

Other manufacturers understand their supply chain even for smaller countries like Switzerland. One of the good examples here is HP. You usually have many servers plus parts available on stock – every reasonable printer model (less than 10k) is also available on stock. Microsoft doesn’t have any problem shipping their licenses (one or two days for electronic licenses), and shipping time for media kits is a simple next business day thing.

Why can’t IBM get their act straight and have their (expensive) stuff available on a simple next business day basis?

It’s hard to sell a customer an IBM printer if you have to tell him that it takes several weeks until he gets it. Most smaller businesses don’t buy maintenance contracts for their printers, and just buy a new one when the old one dies – this doesn’t work when you have 4 weeks of lead time for a simple InfoPrint 1532.

One thing i would be interested in: Is this better in the USA? Or in Germany?

NTP on i5/OS

Everybody knows NTP, except AS/400 administrators. This is why it’s important to start working with i5/OS, and learn about the improvements IBM has made.

Since V5R3, Timezone support was added to i5/OS, and so was support for NTP (both client and server). NTP is very important in todays networked environment:

  • For security reasons – logfiles from different sources need matching timestamps
  • For business reasons – certain things need to happen at the right time
  • For technical reasons – e.G. Kerberos needs a matching time for proper granting of tickets (also see #1)

NTP on i5/OS only works on newer machines – you can’t use NTP with older machines like the Modell 170 (but you shouldn’t be using them anymore anyway). It works fine on models 270, 800, and all recent 5xx models.

Configuring NTP on i5/OS is a one liner, but there is more that needs to be considered. Usually you’ll need a central timeserver in your network that serves out time to all other servers and clients. If you’re using Active Directory, you’ll already have a central timeserver – the domain controller which holds the PDC FSMO role is the primary timeserver in your network. If you’re not using Active Directory, you’ll need to designate a timeserver in your network, and run an NTP server on that machine – this could be your System i, or any other machine capable of running an NTP server.

Sounds complicated? It really isn’t – if you have some networking guys, ask them what they’re using for an NTP server, as routers and switches have the same problem. If you have dedicated Windows administrators, they’ll also know a lot about NTP. If you have neither, you can use an external timeserver like swisstime.ethz.ch or time.nist.gov (for the US residents).

As said, configuration is a oneliner.

CHGNTPA RMTSYS('swisstime.ethz.ch') AUTOSTART(*YES)
STRTCPSVR SERVER(*NTP) NTPSRV(*CLIENT)

Okay, that was actually two lines but the start command is included. That’s it. You’re done. You’ll still need a roughly correct time, otherwise the NTP client won’t adjust the time. And you’ll need a properly set QTIMZON value, because otherwise you’ll get the wrong time.

WTF is product 5733-905 – “Server Firmware”?

Product 5733-905 Server FirmwareWe received a new Modell 515 for a customer today, and there’s a strange licensed program installed that i haven’t seen before.

See the screenshot to the right for an example. I haven’t seen this before, and Google doesn’t have any meaningful results, nor does the new i5/OS Infocenter.

Does anyone know more?

 
 

V5R4M5 LIC
Update: The machine is running LIC V5R4M5 (i wonder why, though – previously shipped 515 did run at V5R4M0). This might be an upcoming V6R1M0 feature for improved OS management of machine firmware.

PC form factors – the choice is yours!

Over the past few years, PCs have become smaller and faster. But many companies still default to mini towers when buying new PCs, even though there might be other form factors that could suit their needs better.

Lenovo currently offers four form factors of desktop computers – each with their advantages and disadvantages. The pictures that you’ll see here are not the latest, but they’re the best hires pictures i could find – current models no longer have floppy drives, but the cases have remained the same size and design.

The classic mini tower

IBM Lenovo ThinkCentre M52 Tower
The mini tower is found in almost every company. They usually offer place for a second hard disc, a second optical drive, a fully fledged PCI-E x16 graphic card (not all models), and a few more expansion slots (usually PCI-E x1 and two PCI slots). As such, much office furniture has been made to be fit with mini tower PCs, and this is why they still see much use.

Mini towers are a great choice if you might want to expand the use of the machine, by adding specialized equipment to it. Some models offer more DIMM slots (4 instead of 2), which allows easier upgrade of system memory.

In my opinion, mini towers are oversized for most office workplaces. They eat much space, cabling them is more difficult as the standard cables on equipment get shorter and shorter, and they do not always offer advantages for a plain office worker.

However, Lenovo recently started shipping ThinkCentre towers with 2GB of standard memory if ordered with Windows Vista. This has not yet become a reality for the other form factors, which puts the cost advantage at the ThinkCentre towers.

The small form factor (SFF) PCs

Lenovo ThinkCentre A52 SFF in normal position
The SFF PCs are the size i think is ideal for most purposes. They usually offer place for two DIMM slots, a standard sized optical drive, and two expansion slots (usually an Intel ADD2 slot (for DVI) and a single PCI-E x1 or PCI slot).

They are big enough to still have room for expansion, are pretty quiet since the diameter of the fan can be large enough, and offer the advantages of a PC that can be installed right on the desk. The main reason for this is usually reducing the hassle with cabling various devices, using USB hubs, USB extender cables and other gizmos.

Lenovo thinkCentr A52 SFF Standing
A speciality of Lenovo’s SFF product line is that they ship with a stand that allows them to be set next to the monitor, not below it. This is an advantage for people with big screens or that want to look down to their screen.

The biggest disadvantage of the SFF models is that you can only fit two DIMMs into it. When ordering low volume, you currently get models with 2x512M pre-installed, and upgrading to 2x1G (that are IMO required for Vista) adds an unnecessary cost. Lenovo will probably start offering models with 2GB by default soon, so this point will no longer be that important.

The ultra small form factor (USFF) PCs

Lenovo ThinkCentre A51 USFF
Until recently, the USFF models were the smallest PCs you could buy. They are built using desktop CPU and mainboards, but use some laptop components like the optical drive. The biggest problem of these little machines is heat – while the cooling is nice and quite during normal office work, it could get extremely noisy when you were loading the CPU during extended time periods (especially the PIV/PD models had big problems with that). Now that these models use Intels Core 2 CPUs, the problem is no longer that big, but still existent.

Not all USFF models offer expansion slots, and the laptop optical drive offers additional disadvantages when looking for non-OEM replacements a few years down the road. Again, the earlier comment about only being able to fit two DIMMs into the machine applies.

Honestly, i’ve never seen much of an advantage of this form factor over the SFF models, maybe someone can enlighten me.

The A61e

Lenovo ThinkCentre A61e
Lenovo recently introduced the ThinkCentre A61e. I’m sorry i didn’t find a better shot of this machine, but they’re not shipping in Switzerland yet. This machine is smaller than the USFF models, and maybe it will get a new designation (like nano form factor or something equally silly – i hope not).

The biggest change from all the other product lines is that this machine has moved to an external power supply, and switched back to a normal optical drive. I really dislike external power supplies, because they can get lost, can be expensive to replace, etc.

Again, i’ve never seen this machine or made practical experiences with it. I didn’t see the need for USFF models, and i certainly don’t see them for this little baby. It looks nice though, and it might be a very good choice in a different field of operations.

New toys

Last saturday, i’ve purchased a new toy. Don’t have much time to write something interesting right now, sorry!