Which HMC is my LPAR using?

Try…

# lsrsrc IBM.ManagementServer

You might see something like: –

Resource Persistent Attributes for IBM.ManagementServer
resource 1:
Name             = "10.0.0.152"
Hostname         = "10.0.0.152"
ManagerType      = "HMC"
LocalHostname    = "192.33.12.1"
ClusterTM        = "9078-160"
ClusterSNum      = ""
ActivePeerDomain = ""
NodeNameList     = {"test-server"}

In this case, the Name and the Hostname gives the IP address of the HMC that manages the LPAR I ran the command on.

For newer versions of AIX (V6+) use:

 lsrsrc IBM.MCP | grep HMCIPAddr

If you’re on a VIO server use the following as root (oem_setup_env):

lsrsrc IBM.MCP | grep HMCIPAddr

About

I'm a freelance UNIX engineer working in the UK. I'm married to Tina and between us we have six children. I'm a bit of an Apple fan boy, and all the Windows machines in the house are a thing of the past now.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: