24 IBM CSM to IBM Systems Director Transformation Guide
The first column shows the Server name, the second column shows the OperatingSystem
object’s name.
Example 2-3 Listing installed operating system on a server
# smcli lssys -A
InstalledOSDisplayName,SerialNumber,PowerState,OperatingState,CommunicationState,AccessState
-t Server -w "HypervisorPlatformRole=VirtualContainer" -d" " | grep -v Unsupported|sed "s/ //"
csm2dirlp01:csm2dirlp01 100F6A0 1 8 2 Unlocked
csm2dirlp02:csm2dirlp02 100F6A0 1 8 2 Unlocked
VIO_Server1:p5706a0vio 100F6A0 1 8 2 Unlocked
A server with the VirtualContainer role is connected to a server with the HostPlatform role
(Power Systems) using the SerialNumber attribute, which is common for both objects.
Example 2-4 shows how to query the hosting machine.
The managing HMC of a host is listed by querying the TWGMOParentSet attribute of the
server.
Example 2-4 Listing the host machine of a VirtualContainer
# export sERIAL=100F6A0
# smcli lssys -A TWGMOParentSet,PowerState,OperatingState,CommunicationState,AccessState
-t Server -w "HypervisorPlatformRole=HostPlatform AND SerialNumber=$sERIAL" -d" "
p570_6A0: { 11843 } 1 8 2 Unlocked
The attribute is a list of the managing HMCs. So if there are two HMCs connected to the
physical machine using both HMC ports, we will see two object IDs.
Based on this information we created a sample script to show the attributes and the
connections between managed objects. This is useful when an administrator wants to use the
CLI to list status information. See Example 2-5 for the output of the script in our scenarios.
Example 2-5 Output of sample status script
### Scenario 1:
Hostname HealthState Communicate AccessState LPAR PowerState HostSystem PowerState
HMC State Communicate AccessState
------------------------------------------------------------------------------------------------
p5570lp01 1 2 Unlocked p5570lp01 1 p570-CSM 1
First HMC: hmc1 8 2 Unlocked
p5570lp03 1 2 Unlocked p5570lp03 1 p570-CSM 1
First HMC: hmc1 8 2 Unlocked
p5570lp04 Unsupported 2 Unlocked p5570lp04 1 p570-CSM 1
First HMC: hmc1 8 2 Unlocked
p5570lp05 Unsupported 2 Unlocked p5570lp05 1 p570-CSM 1
First HMC: hmc1 8 2 Unlocked
### Scenario 2:
Hostname HealthState Communicate AccessState LPAR PowerState HostSystem PowerState
HMC State Communicate AccessState
------------------------------------------------------------------------------------------------
isd 1 2 Unlocked isd 1 p570_170 1
First HMC: hmc4 8 2 Unlocked
nim 1 2 Unlocked nim 1 p570_170 1