The iSeries blog - A Search400.com blog

The iSeries blog:

 

A Search400.com blog


The latest iSeries opinions on systems management, programming, Web development, recovery, security and more.

Necessity leads to iSeries Watchdog development

Necessity is the mother of invention. And so, many System i shops will find themselves inventing new applications to perform necessary business functions. This practice is not limited to end-users, but includes vendors using the AS400 to develop applications and provide support for businesses running i. First Option Inc. is one such shop. In “spare time,” the company developed a java-based monitoring application that collects key health indicators of an AS400. Released in April 2008, the iSeries Watchdog application’s evolution and development story is shared here in a Q&A with First Option president, Paul Fuller.

Could you describe the specific circumstances of the internal problem that your company was having that led to the development of the Watchdog program?

We have service level agreements (SLAs) that require our iSeries box to be up 24 x 7 x 365, and we need to ensure that if there is a problem we address it immediately. There are financial penalties if we do not resolve problems in a specific period of time. Prior to Watchdog, the systems were checked manually. This presented two problems: 1) Operators were involved in the manual checking rather than other billable activities — resulting in reduced revenue. 2) The manual method was not scalable (i.e., more boxes mean more people). We looked at the existing packages on the market and they were too expensive. We had a very basic need and we did not want to purchase additional products in order to make the monitoring software run. We are a software development shop, so why not build it ourselves!

Why Java? Was this the immediate solution, or did it just happen to work well? Did you consider other options?

Java was the immediate solution for the front end interface. We had in-house expertise and it is platform independent. Using Java also allowed us to work with open source tools. We had not worked with Java Persistence API (JPA), Spring or LDAP on the iSeries but had been reading a lot about them in the Trades. Since we are a Java/RPG shop, we wanted to try out some new technologies and frameworks. So, this was a perfect opportunity to solve an internal need and further develop our consulting skill set.

For the back end, the programs that gather key health indicators are RPG service programs. In terms of data access, we let the iSeries do what it does best, crunch data. Additionally, the type of information we needed to gather was iSeries-specific so it did not make a lot of sense to use Java because it was already tied to the platform.

How long did it take to develop the Watchdog program?

We started in November 2007 of last year. The application was developed on nights and weekends so we did not finish it until March 2008. Had we been working on it full-time, it probably would have taken a couple of months.

What problems did you encounter along the way? (Were there work-arounds or problems that you had to deal with?)

We did have a few problems. We wanted to use a tool to generate JPA entities from SQL tables. The tool needed to run on the latest version of Eclipse so we had to abandon WebSphere development studio client (WDSC) and go with Eclipse in order to use the tool. We also used the IBM Interrogated application server released in January of 2008. There was not a lot of documentation and/or knowledge regarding this product. So, we had to engage IBM in order to resolve some of these problems. The LDAP web based interface was not available on WebSphere 6.1 so we had to find an alternate tool to create schemas and enter test data.

There are similar products available — why didn’t you invest in one of the competitor’s products instead of spending the time and energy developing your own?

There are definitely some very good products on the market that have some of the same functionality. As I mentioned above, we thought the products were too expensive and did not like the front end. The interface to the user was either green screen or a very difficult to read dashboard. Also, you had to purchase the software that had a traditional price based model — the larger the model and processing group, the more expensive the software. We would have had to purchase software maintenance in addition to the upfront cost. Some of the products also required purchasing additional third-party products in order from them to work.

What size company is Watchdog preferable for?

We are providing this software as a service (SaaS). We will establish a secured connection to the customer, install a client on their iSeries which will gather the monitoring data and configure the alert system as well as provide the Web Services to send the data to a First Option Inc. server. We charge a monthly fee that includes rental of the client software and the graphical front end. The rental fee is not based on the iSeries model or processor group and you do not have to buy software maintenance.

We think this will appeal to small- to medium-sized businesses that require a solid monitoring system for a price that makes business sense. We can also bundle a remote monitoring service that will respond and resolve problems on the iSeries. This allows small- to medium-sized businesses to focus on their core business not running a System Operations Group.

I started in the software development business writing code on a S36. The most overwhelming change over the past 20 years is the number of options available to develop and deploy software. From the creation of the development environment to the deployment of the application on a production server, there are a number of products to install and integrate. It’s easy to get lost in the technology and lose focus on the business need. It is extremely important to engage an experienced development team who understands that the requirement is always a superior software product to support your business need.

Book auction to support FreeBSD

Do you use open source software on your System i? Here is an opportunity to give back to the open source community.

Tech book publisher No Starch Press is auctioning a copy of its new pub, Absolutely FreeBSD by Michael W. Lucas, to raise money for the FreeBSD Foundation, a nonprofit organization dedicated to promoting the Unix-like FreeBSD platform. The winner of the auction receives a signed copy of “Absolute FreeBSD” and a certificate of authenticity.

The ongoing auction runs through Nov. 2, 2007. The FreeBSD Foundation is using eBay’s charitable MissionFish service to provide this auction at a reduced rate.

BCD’s WebSmart PHP now available

After four months of beta testing, System i application tool developer Business Computer Design Int’l Inc. (BCD) released WebSmart PHP for general availability today. WebSmart helps System i developers create PHP-based applications that can run on Linux, Unix and Windows servers. The tool also supports DB2 UDB and MySQL.

BCD is offering WebSmart PHP free for a 30-day trial. The normal licensing fee for the complete application is $4,250 for up to two developer seats and $1,950 for additional seats. BCD also offers an unlimited license for $13,500, according to their press release. Discounts are available.

PGP System i open source success story

Thanks to David and his team for sending us their System i open source success story.



My fellow System i developers were searching for a solution for PG encryption of data to send between a state department and a bank institution. After weeks of searching and some trial and error with beta and vaporware, the only solution appeared to be a $15,000 one. I happened to overhear a phone conversation about it, so I asked some questions.I’m a Java developer, and I’ve done encryption for web services before, so I figured I could probably come up with something that would get our project back on track and save the customer some money.Turns out I was right. I used an open source Java API for OpenPGP, provided by The Legion of the Bouncy Castle — a well respected cryptography solutions provider.

I’d never used/programmed PGP before, but in only 3 hours I had a working prototype on my local laptop. Wikipedia taught me about PGP, and the Bouncy Castle documentation and source code taught me how to implement it. Another 5 hours later, my System i developers and I had the full-blown solution running on the System i, called from their RPG program. It was a big team accomplishment!