– Bart's blog

IBM i and PowerVM features and tools

Category Archives: Automation

SR-IOV firmware upgrade via the HMC Enhanced GUI

Today, I want to share my experience with the upgrade an SR-IOV adapter firmware (EN0H) configured in shared mode. The update was so simple and so straight forward that I decided to share this positive message with you. Read more of this post

How to automate update of Access Keys for POWER8

The other day, I’ve wrote about POWER8 ‘feature’ which requires from an administrator update of  access keys in order to keep a server eligible for the firmware upgrade POWER8 – No hardware maintenance-no firmware upgrade . An administrator needs to enter these every few months, if a maintenance contract is re-signed every few months. This can be a headache, or something bigger if someone runs multiple servers. There is a secret HMC function, which can update the keys automatically.

Read more of this post

Create an LPAR with specific WWPNs

By the command below an LPAR can be created with specific WWPNs, of course if you use NPIV adapters. It can be useful for LPARS migration between servers. It is extremely dangerous command, therefore it should be used only by people who knows what is for. Read more of this post

My few words about HMC Enhanced + interface

Those of you who run recent hardware, probably noticed the new HMC interface called Enhanced+ GUI available since the HMC Firmware 8.8.1 SP1. In this post I would like to share my point of view and give some advice for people who would like to use it. Read more of this post

Perform a command across multiple IBM i systems

There is a very simple how to submit any IBM i command across multiple systems. The main requirement for it is the Management Central. Read more of this post

how to get ip address from hostname in CL (IBM i)

Today, I was preparing another program for automation. I need a function to retrieve an IP address of a remote system from the DNS having the system hostname. In the interactive session, you’d simple use ping or nslookup commands to resolve the hostname. But none of these commands can store the result into a variable. I did a short research, and there is very cool command Start DIG Query (DIG). This command can be used in a program, and it’s very easy get an IP address. Here is the example of a simple CL:

Read more of this post

Building multiple LPARs with dedicated I/O from the CLI


Nowadays, I’m preparing for huge hardware delivery. I’m about to get dozen of MMD’s. The challenge is to configure them (LPAR profiles, VIOS, etc) as soon as possible. I found the way how to automate creation of multiple VIO/LPAR profiles including I/O configuration for multiple servers without knowing SN of the expansions drawers.

Read more of this post

Create a LPAR with NPIV from an IBM i

I want to show a tool which does several things usually done on different devices with different shells. Namely it creates a LPAR, create virtual server and virtual client fiber adapters (normally on a HMC),  maps the virtual fibre channel adapter to the physical fibre channel port (VIO shell), performs N_Port login to a SAN fabric (HMC or initial boot of an Operating System), and emailing World Wide Port Name to a SAN administrator. These actions are done by one tool initiated from IBM i OS.

Read more of this post

PTF installation from a central system

How to perform PTF installation from a single partition across multiple systems?   Let me present a solution based on IBM i functions. This solution avoids copying iso images/image catalogs to multiple LPARS.  Read more of this post

Tool – query LPAR status

Once in a time, a system administrator does a task which requires shut down of a LPAR. If a partition is about to switch off after some other task (for instance after a weekly backup) watching SRC codes, might be hopeless action.

Let me show a simple tool which does this ‘monkey job’.

Read more of this post