IBMi.org – Bart's blog

IBM i and PowerVM features and tools

Monthly Archives: July 2014

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

Hi,

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