Class: IbmPowerHmc::ManagedSystem
Overview
Managed System information
Constant Summary
collapse
- ATTRS =
{
:name => "SystemName",
:state => "State",
:hostname => "Hostname",
:ipaddr => "PrimaryIPAddress",
:description => "Description",
:location => "SystemLocation", :ref_code => "ReferenceCode",
:fwversion => "SystemFirmware",
:memory => "AssociatedSystemMemoryConfiguration/InstalledSystemMemory",
:avail_mem => "AssociatedSystemMemoryConfiguration/CurrentAvailableSystemMemory",
:cpus => "AssociatedSystemProcessorConfiguration/InstalledSystemProcessorUnits",
:avail_cpus => "AssociatedSystemProcessorConfiguration/CurrentAvailableSystemProcessorUnits",
:mtype => "MachineTypeModelAndSerialNumber/MachineType",
:model => "MachineTypeModelAndSerialNumber/Model",
:serial => "MachineTypeModelAndSerialNumber/SerialNumber",
:vtpm_version => "AssociatedSystemSecurity/VirtualTrustedPlatformModuleVersion",
:vtpm_lpars => "AssociatedSystemSecurity/AvailableVirtualTrustedPlatformModulePartitions",
:is_classic_hmc_mgmt => "IsClassicHMCManagement",
:is_hmc_mgmt_master => "IsHMCPowerVMManagementMaster",
:is_mem_mirroring_enabled => "AssociatedSystemMemoryConfiguration/CurrentMemoryMirroringMode"
}.freeze
Instance Attribute Summary
Attributes inherited from AbstractRest
#content_type, #etag, #href, #published, #uuid
#xml
Instance Method Summary
collapse
#initialize, #to_s
#collection_of, #create_element, #initialize, marshal, #marshal, #singleton, #timestamp, #to_s, #uuid_from_href, #uuids_from_links
Instance Method Details
#capabilities ⇒ Object
78
79
80
81
82
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 78
def capabilities
xml.get_elements("AssociatedSystemCapabilities/*").map do |elem|
elem.name if elem.text&.strip == "true"
end.compact
end
|
#cpu_compat_modes ⇒ Object
84
85
86
87
88
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 84
def cpu_compat_modes
xml.get_elements("AssociatedSystemProcessorConfiguration/SupportedPartitionProcessorCompatibilityModes").map do |elem|
elem.text&.strip
end.compact
end
|
#group_uuids ⇒ Object
70
71
72
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 70
def group_uuids
uuids_from_links("AssociatedGroups")
end
|
#io_adapters ⇒ Object
Deprecated: use io_slots.io_adapter
99
100
101
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 99
def io_adapters
collection_of("AssociatedSystemIOConfiguration/IOSlots/IOSlot/RelatedIOAdapter", "IOAdapter")
end
|
#io_slots ⇒ Object
103
104
105
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 103
def io_slots
collection_of("AssociatedSystemIOConfiguration/IOSlots", "IOSlot")
end
|
#lpars_uuids ⇒ Object
90
91
92
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 90
def lpars_uuids
uuids_from_links("AssociatedLogicalPartitions")
end
|
#networks_uuids ⇒ Object
111
112
113
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 111
def networks_uuids
uuids_from_links("AssociatedSystemIOConfiguration/AssociatedSystemVirtualNetwork/VirtualNetworks")
end
|
#time ⇒ Object
74
75
76
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 74
def time
timestamp("SystemTime")
end
|
#vioses_uuids ⇒ Object
94
95
96
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 94
def vioses_uuids
uuids_from_links("AssociatedVirtualIOServers")
end
|
#vswitches_uuids ⇒ Object
107
108
109
|
# File 'lib/ibm_power_hmc/schema/uom.rb', line 107
def vswitches_uuids
uuids_from_links("AssociatedSystemIOConfiguration/AssociatedSystemVirtualNetwork/VirtualSwitches")
end
|