Class: IbmPowerHmc::ManagementConsole

Inherits:
AbstractRest show all
Defined in:
lib/ibm_power_hmc/schema/uom.rb

Overview

HMC information

Constant Summary collapse

ATTRS =
{
  :name => "ManagementConsoleName",
  :build_level => "VersionInfo/BuildLevel",
  :maint_level => "VersionInfo/Maintenance",
  :sp_name => "VersionInfo/ServicePackName",
  :version => "BaseVersion",
  :ssh_pubkey => "PublicSSHKeyValue",
  :uvmid => "UVMID",
  :tz => "CurrentTimezone",
  :uptime => "ManagementConsoleUpTime",
  :uom_version => "UserObjectModelVersion/MinorVersion",
  :uom_schema => "UserObjectModelVersion/SchemaNamespace",
  :templates_version => "TemplateObjectModelVersion/MinorVersion",
  :templates_schema => "TemplateObjectModelVersion/SchemaNamespace",
  :web_version => "WebObjectModelVersion/MinorVersion",
  :web_schema => "WebObjectModelVersion/SchemaNamespace",
  :session_timeout => "SessionTimeout",
  :web_access => "RemoteWebAccess",
  :ssh_access => "RemoteCommandAccess",
  :vterm_access => "RemoteVirtualTerminalAccess"
}.freeze

Instance Attribute Summary

Attributes inherited from AbstractRest

#content_type, #etag, #href, #published, #uuid

Attributes inherited from AbstractNonRest

#xml

Instance Method Summary collapse

Methods inherited from AbstractRest

#initialize, #to_s

Methods inherited from AbstractNonRest

#collection_of, #create_element, #initialize, marshal, #marshal, #singleton, #timestamp, #to_s, #uuid_from_href, #uuids_from_links

Constructor Details

This class inherits a constructor from IbmPowerHmc::AbstractRest

Instance Method Details

#managed_systems_uuidsObject



34
35
36
# File 'lib/ibm_power_hmc/schema/uom.rb', line 34

def managed_systems_uuids
  uuids_from_links("ManagedSystems")
end

#ssh_authkeysObject



38
39
40
41
42
# File 'lib/ibm_power_hmc/schema/uom.rb', line 38

def ssh_authkeys
  xml.get_elements("AuthorizedKeysValue/AuthorizedKey").map do |elem|
    elem.text&.strip
  end.compact
end

#timeObject



30
31
32
# File 'lib/ibm_power_hmc/schema/uom.rb', line 30

def time
  timestamp("ManagementConsoleTime")
end