dracclient(1)
| PYTHON-DRACCLIENT(1) | python-dracclient | PYTHON-DRACCLIENT(1) |
NAME
python-dracclient - python-dracclient 8.0.0
USAGE
Create a client object by providing the connection details of the DRAC card:
import dracclient
client = dracclient.client.DRACClient('1.2.3.4', 'username', 's3cr3t')
NOTE:
You can override the default port, path and protocol:
client = dracclient.client.DRACClient('1.2.3.4', 'username', 's3cr3t',
port=443, path='/wsman',
protocol='https')
CLIENT API
Power management
get_power_state
Returns the current power state of the node.
set_power_state
Turns the server power on/off or do a reboot.
Required parameters:
- •
- target_state: target power state. Valid options are: POWER_ON, POWER_OFF and REBOOT.
Boot management
list_boot_modes
Returns the list of boot modes.
list_boot_devices
Returns the list of boot devices.
change_boot_device_order
Changes the boot device sequence for a boot mode.
Required parameters:
- boot_mode: boot mode for which the boot device list is to be changed.
- boot_device_list: a list of boot device ids in an order representing the desired boot sequence.
BIOS configuration
list_bios_settings
Lists the BIOS configuration settings.
set_bios_settings
Sets the BIOS configuration. To be more precise, it sets the pending_value parameter for each of the attributes passed in. It returns a dictionary containing the commit_needed key with a boolean value indicating whether a config job must be created for the values to be applied.
Required parameters:
- •
- settings: a dictionary containing the proposed values, with each key being the name of attribute and the value being the proposed value.
commit_pending_bios_changes
Applies all pending changes on the BIOS by creating a config job and returns the id of the created job.
Optional parameters:
- •
- reboot: indicates whether a RebootJob should also be created or not. Defaults to False.
abandon_pending_bios_changes
Deletes all pending changes on the BIOS.
NOTE:
RAID management
list_raid_controllers
Returns the list of RAID controllers.
list_virtual_disks
Returns the list of RAID arrays.
list_physical_disks
Returns the list of physical disks.
create_virtual_disk
Creates a virtual disk and returns a dictionary containing the commit_needed key with a boolean value indicating whether a config job must be created for the values to be applied.
NOTE:
Required parameters:
- raid_controller: id of the RAID controller.
- physical_disks: ids of the physical disks.
- raid_level: RAID level of the virtual disk.
- size_mb: size of the virtual disk in megabytes.
Optional parameters:
- disk_name: name of the virtual disk.
- span_length: number of disks per span.
- span_depth: number of spans in virtual disk.
delete_virtual_disk
Deletes a virtual disk and returns a dictionary containing the commit_needed key with a boolean value indicating whether a config job must be created for the values to be applied.
NOTE:
Required parameters:
- •
- virtual_disk: id of the virtual disk.
commit_pending_raid_changes
Applies all pending changes on a RAID controller by creating a config job and returns the id of the created job.
Required parameters:
- •
- raid_controller: id of the RAID controller.
Optional parameters:
- •
- reboot: indicates whether a RebootJob should also be created or not. Defaults to False.
abandon_pending_raid_changes
Deletes all pending changes on a RAID controller.
NOTE:
Required parameters:
- •
- raid_controller: id of the RAID controller.
Inventory Management
list_cpus
Returns a list of installed CPUs.
list_memory
Returns a list of installed memory modules.
list_nics
Returns a list of NICs.
Job management
list_jobs
Returns a list of jobs from the job queue.
Optional parameters:
- •
- only_unfinished: indicates whether only unfinished jobs should be returned. Defaults to False.
get_job
Returns a job from the job queue.
Required parameters:
- •
- job_id: id of the job.
create_config_job
Creates a config job and returns the id of the created job.
NOTE:
Required parameters:
- resource_uri: URI of resource to invoke.
- cim_creation_class_name: creation class name of the CIM object.
- cim_name: name of the CIM object.
- target: target device.
Optional parameters:
- cim_system_creation_class_name: creation class name of the scoping system. Defaults to DCIM_ComputerSystem.
- cim_system_name: name of the scoping system. Defaults to DCIM:ComputerSystem.
- reboot: indicates whether a RebootJob should also be created or not. Defaults to False.
delete_pending_config
Cancels pending configuration.
NOTE:
NOTE:
Required parameters:
- resource_uri: URI of resource to invoke.
- cim_creation_class_name: creation class name of the CIM object.
- cim_name: name of the CIM object.
- target: target device.
Optional parameters:
- cim_system_creation_class_name: creation class name of the scoping system. Defaults to DCIM_ComputerSystem.
- cim_system_name: name of the scoping system. Defaults to DCIM:ComputerSystem.
- reboot: indicates whether a RebootJob should also be created or not. Defaults to False.
Lifecycle controller management
get_lifecycle_controller_version
Returns the Lifecycle controller version as a tuple of integers.
HOW TO CONTRIBUTE
If you would like to contribute to the development of OpenStack, you must follow the steps in this page:
If you already have a good understanding of how the system works and your OpenStack accounts are set up, you can skip to the development workflow section of this documentation to learn how changes to OpenStack should be submitted for review via the Gerrit tool:
Pull requests submitted through GitHub will be ignored.
Bugs should be filed on Launchpad, not GitHub:
- Index
- Module Index
- Search Page
AUTHOR
unknown
COPYRIGHT
OpenStack Foundation
| January 26, 2024 | 8.0.0 |
