Previous Topic: dpmlpar-delete Command--Delete a Logical Partition (Funclet)Next Topic: dpmlpar-image Command--Create an IBM AIX LPAR (Funclet)


dpmlpar-getresources Command--Get LPAR Resources (Funclet)

The dpmlpar-getresources command retrieves memory units, processor units, or processors for IBM AIX LPARs.

This command has the following format:

dpmlpar-getresources 
-resource {all|memory|processors|processor_units} 
-hmc name 
-managed_system managedsystemname 
-partition_name partitionname
[-verbose add_commandinfo]
[-sc URL]
[-ws_remote_user username]
[-ws_remote_password password]
[-pre]
[-post]
-resource {all|memory|processors|processor_units}

Specifies whether a specific resource is retrieved or all resources. Options include the following:

all

Retrieves and displays all partition resources.

memory

Retrieves and displays only the memory resources for the partition.

processors

Retrieves and displays only the processor resources for the partition.

processor units

Retrieves and displays only the processor unit resources for the partition.

-hmc name

Specifies the Hardware Management Console (HMC) or Integrated Virtualization Manager (IVM) that controls the managed systems where the logical partition resides.

-managed_system managedsystemname

Specifies the managed system on which the logical partition resides. The managed system must exist on the HMC/IVM.

-partition_name partitionname

Specifies the logical partition for which resources are being listed. The partition must exist on the managed system.

-verbose add_commandinfo

Provides additional information about how to execute the command.

-sc URL

(Optional) Specifies the URL of the service controller.

-ws_remote_user username

(Optional) Specifies the CA Virtual Assurance remote user name.

-ws_remote_password password

(Optional) Specifies the CA Virtual Assurance remote password.

-pre

(Optional) Specifies whether to generate an event before the operation is performed.

-post

(Optional) Specifies whether to generate an event after the operation is performed.

Example: Get all Resources for an LPAR

This example retrieves all resources for lpar06.

dpmlpar-getresources -resource all -partition_name lpar06 
-hmc hmc_02 -managed_system abcsystem4

Example: Get the Memory Resources for an LPAR

This example retrieves the memory resources for lpartest01.

dpmlpar-getresources -resource memory -partition_name lpartest01 
hmc ivm_02 -managed_system abcsystem2