Hardware Management Console HMC Command Line

lsaccfg 

List the Resource Roles Assigned to Users

hscroot@hmc:~> lsaccfg -t resourcerole
name=srole,"resources=cec:root/ibmhscS1_0|8286-42A*TU01001|IBMHSC_ComputerSystem,lpar:root/ibmhscS1_0|ALL_PARTITIONS*8286-42A*TU01001|IBMHSC_Partition,cec:root/ibmhscS1_0|8408-E8E*11234V|IBMHSC_ComputerSystem,lpar:root/ibmhscS1_0|ALL_PARTITIONS*8408-E8E*11234V|IBMHSC_Partition"

List the Resources

hscroot@hmc:~> lsaccfg -t resource
"resources=<ResourceID = cec:root/ibmhscS1_0|9040-MR9*123C45X|IBMHSC_ComputerSystem><UserDefinedName = cec:Power9>,<ResourceID = lpar:root/ibmhscS1_0|ALL_PARTITIONS*9040-MR9*133C20X|IBMHSC_Partition><UserDefinedName = lpar:Power9/ALL_PARTITIONS>,<ResourceID = lpar:root/ibmhscS1_0|1*9040-MR9*123C45X|IBMHSC_Partition><UserDefinedName = lpar:Power9/partition01>"

List out Task Roles

hscroot@hmc:~> lsaccfg -t taskrole
name=hmcsuperadmin,parent=Predefined,"resources=""frame:ChangeFramePassword+ChangeFrameProperty+CheckPSN+DeactivateFrameIO+FrameInitialize+LaunchFrameAsm+ListFrameProperty+ManageFrameServEvents+ManagePSN+RefreshFrame+RemoveFrameConnection+RemoveFrameLock,cec:ActivateSystemProfile+BackupProfileData+CECPowerOff+CECPowerOn+CaptureSystemTemplate+ChangeCECPassword+ChangeCECProperty+ChangeCoD+ChangePowerManagement+ChangeSnmpAlerts+ChangeSystemProfileProperty+ChangeTrustedSystemKey+ChangeVETCode+CoDPoolManagement+CollectCECVPDInfo+ConfigProcessorRecovery+CreateLPAR+CreatePassThruCommand+CreateSystemProfile+DLPARRestoreHWResources+DeleteSystemProfile+DeployPartitionTemplate+DeploySystemPlan+DeploySystemTemplate+DeviceMaintenance+DisconnectOtherHmc+EditCECMTMS+InitializeProfileData+InitializeSPFailover+LSProfileSpace+LaunchAsm+ListCECProperty+ListCoDInformation+ListNPortLogin+ListPCIeTopology+ListRioTopology+ListSSP+ListSnmpAlerts+ListSystemProfileProperty+ListTrustedSystemKey+ListUtilizationData+ListVETInfo+MakeSystemPlan+ManageCECServEvents+ManageDumps+ManageSPP+ManageSSP+ManageSriovAdapter+ManageSysProfile+ManageUtilizationData+ManageVirtualNetwork+ManageVirtualStorage+MoveSriovAdapter+PartitionConfigurationImage+RebuildCEC+RecoverPartitionData+RemoveCECConnection+RemoveCEConnection+RemoveProfileData+RestoreProfileData+SetCECKeylockPosition+SysProfileCopy+UpdateLIC+ValidateSystemProfile+ViewDumps+ViewPowerManagement+ViewSPP,lpar:ActivateLPAR+CapturePartitionTemplate+ChangeLPARProperty+ChangeNPortLogin+ChangeProfileProperty+CloseVTerm+Connect5250VTerm+CreateProfile+Delete5250VTerm+DeleteLPAR+DeleteProfile+DisableEnableVirtualEthernet+DlparOperation+HibernateLPAR+ListLPARProperty+ListProfileProperty+ManageLPARServEvents+ManageLicenseKeys+ManageProfile+MigrateLPAR+Open5250VTerm+OpenVTerm+PartProfileCopy+RRStartLPAR+RebootLPAR+RemoteRestartLPAR+ShutdownLPAR+VirtualIOServerCommand,HMCConsole:5250Task+AddConnection+BackupHMCData+CRLManagement+CertificateManagement+ChangeBmcCertificates+ChangeHMCConfiguration+ChangeHMCEncrTask+ChangeHMCFileSystems+ChangeLocale+ChangeProxyConfiguration+ChangeUserPasswords+ChangeUtilizationConfiguration+CollectVPDInfo+ConfigureDataReplication+CreateWelcomeText+CustServiceSettings+EditConsoleMTMS+EditTemplate+ExportData+FormatMedia+GetUpgradeFiles+GroupingApp+GuidedSetupWizard+ListBmcCertificates+ListCloudConnServiceSettings+ListConnections+ListHMCConfiguration+ListHMCEncrTask+ListHMCRole+ListHMCTask+ListHMCUser+ListLdapCfg+ListProxyConfiguration+ListSNMPServiceSettings+ListServiceableEvents+ListStorageMedia+ListSystemPlan+LsILMTScan+ManageAllUserPasswords+ManageCloudConnServiceSettings+ManageConsoleDumps+ManageHMCRole+ManageHMCUser+ManageSNMPServiceSettings+ManageServEvents+ManageSystemPlan+RemoteSystemLogSettings+RepairServEvent+RestoreUpgradeData+RunILMTScan+SVAgentXmitServiceInfo+SaveUpgradeData+ScheduleOperations+ShutdownHMC+TemplateLibrary+TerminateHMCTask+TipOfTheDay+UpdateHMC+UserSettings+ViewAllUsersTasksLog+ViewConsoleEvents+ViewHMCFileSystems+ViewInstallResourceList+ViewTasksLog+ViewVIOSInstallResourceList"""

List the auto resource 

 
hscroot@hmc:~> lsaccfg -t autoresource
No results were found.

Check auto resource roles enabled or disabled

hscroot@hmc:~> lsaccfg -t autoresourcerole
auto_resource_role_update=0


lsavailres


List Available Resources

hscroot@hmc:~> lsavailres -m Power9
avail_mem_for_lpars=229888,avail_proc_units_for_lpars=23


List Available Resources providing partition name

hscroot@hmc:~> lsavailres -m Power9 -n partition01
avail_mem_for_lpars=229888,avail_proc_units_for_lpars=23


lsbmccert

Lists the Baseboard Management Controller (BMC) certificates

hscroot@hmc:~> lsbmccert
No results were found.









lshmcauth 

List HMC Multi Factor Authentication Settings 

hscroot@hmc:~> lshmcauth -t powersc
type=powersc,state=disabled,server=









Post a Comment

0 Comments