Changes the state of a partition. This command is operable only in the Integrated Virtualization Manager environment.
To activate a partition:
chsysstate -r lpar -o on { -n Name | --id PartitionID } [ -k KeylockPosition ] [ -b BootMode ] [ -m ManagedSystem ]
To perform a partition shut down using the shutdown command on the client operating system:
chsysstate -r lpar -o osshutdown { -n Name | --id PartitionID } [ -m ManagedSystem ]
To perform a delayed partition shut down (white button shut down):
chsysstate -r lpar -o shutdown { -n Name | --id PartitionID } [ -m ManagedSystem ]
To perform an immediate partition shutdown (operator panel function 8):
chsysstate -r lpar -o shutdown --immed { -n Name | --id PartitionID } [ -m ManagedSystem ]
To perform an immediate restart of a partition (operator panel function 3):
chsysstate -r lpar -o shutdown --immed --restart { -n Name | --id PartitionID } [ -m ManagedSystem ]
To perform a restart of a partition after initiating a dump (operator panel function 22):
chsysstate -r lpar -o dumprestart { -n Name | --id PartitionID } [ -m ManagedSystem ]
To change the keylock position for a partition:
chsysstate -r lpar -o chkey -k KeylockPosition { -n Name | --id PartitionID } [ -m ManagedSystem ]
The chsysstate command changes the state of a partition. To avoid data loss, use the shutdown facilities provided by the operating system in the partition.
| Flag name | Description |
|---|---|
| -r ResourceType | The type of resources to change: lpar Logical partition resources |
| -m ManagedSystem | The name of the managed system. This attribute is optional because there is only one system to manage. The name may either be the user-defined name for the managed system, or be in the form tttt-mmm*ssssssss, where tttt is the machine type, mmm is the model, and ssssssss is the serial number of the managed system. |
| -o Operation | The type of operation to perform:
|
| -i IPL Source | The IPL source that will be used when activating the IBM i partition. You can also use the IVM chsyscfg command command to complete this task. If this flag is not specified, then the current IPL source will be used. Valid values are:
|
| -b BootMode | Override the current power on mode setting.
Valid values are:
|
| -k KeylockPosition | Keylock position. Valid values are:
|
| --immed | Force the state change immediately. |
| --restart | Restart the partition. This flag is valid only if the --immed flag is also specified. |
This command has a return code of 0 on success.
This command is not accessible by users with the ViewOnly role.
chsysstate -r lpar -o on --id 2 -b sms
chsysstate -r lpar -o shutdown --id 3
chsysstate -r lpar -o osshutdown --restart --immed --id 3
chsysstate -r lpar -o [-i <IPL Source>]